1 #ifndef __JDETECTOR__JLOCATION__
2 #define __JDETECTOR__JLOCATION__
71 return static_cast<const JLocation&
>(*this);
93 static_cast<JLocation&
>(*this) = location;
118 std::string
toString(
const std::string& fmt,
const std::string target =
"%")
const
122 buffer.
replace(target,
string, 1);
176 in >> location.
floor;
193 out << setw(4) << location.
string;
195 out << setw(2) << location.
floor;
211 in >> location.
floor;
227 out << location.
floor;
I/O formatting auxiliaries.
#define MAKE_STRING(A)
Make string.
Logical location of module.
JLocation()
Default constructor.
friend JWriter & operator<<(JWriter &out, const JLocation &location)
Write module location to output.
std::string toString(const std::string &fmt, const std::string target="%") const
Convert module loation to string.
friend std::istream & operator>>(std::istream &in, JLocation &location)
Read module location from input.
JLocation & getLocation()
Get location.
int getFloor() const
Get floor number.
JLocation(const int string, const int floor)
Constructor.
std::string toString() const
Convert module location to string.
int getString() const
Get string number.
friend std::ostream & operator<<(std::ostream &out, const JLocation &location)
Write module location to output.
bool less(const JLocation &location) const
Less than method.
const JLocation & getLocation() const
Get location.
void setLocation(const JLocation &location)
Set location.
friend JReader & operator>>(JReader &in, JLocation &location)
Read module location from input.
Interface for binary input.
Interface for binary output.
Wrapper class around STL string class.
JString & replace(const char target, const char replacement, const std::size_t max=std::numeric_limits< std::size_t >::max())
Replace characters.
file Auxiliary data structures and methods for detector calibration.
std::string getLabel(const JLocation &location)
Get module label for monitoring and other applications.
This name space includes all other name spaces (except KM3NETDAQ, KM3NET and ANTARES).
Auxiliary data structure for sequence of same character.
Template definition of auxiliary base class for comparison of data structures.