1 #ifndef __JACOUSTICS__JEMITTERID__
2 #define __JACOUSTICS__JEMITTERID__
50 const_iterator p = this->find(
id);
83 while (is >> waveform >> emitter) {
84 object[waveform] = emitter;
102 out <<
object.comment;
104 for (JEmitterID::const_iterator i =
object.begin(); i !=
object.end(); ++i) {
105 out << setw(3) << i->first <<
' ' << setw(2) << i->second << endl;
#define THROW(JException_t, A)
Marco for throwing exception with std::ostream compatible message.
Wrapper class around STL stringstream class to facilitate optional loading of data from file.
void load()
Load data from file with name corresponding to current contents.
Exception for accessing a value in a collection that is outside of its range.
Auxiliary classes and methods for acoustic position calibration.
static JEmitterID getEmitterID
Function object for emitter identification.
This name space includes all other name spaces (except KM3NETDAQ, KM3NET and ANTARES).
static JStat getFileStatus
Function object for file status.
Auxiliary class for emitter identification.
friend std::istream & operator>>(std::istream &in, JEmitterID &object)
Read emitter data from input.
int operator()(const int id) const
Get emitter identifier for given waveform identifier.
friend std::ostream & operator<<(std::ostream &out, const JEmitterID &object)
Write emitter data to output.