1#ifndef __JDATABASE__JMACADDRESS__ 
    2#define __JDATABASE__JMACADDRESS__ 
   60      for (std::string::const_iterator i = buffer.begin(); i != buffer.end(); ++i) {
 
 
   87        if ((*
this)[i] != address[i]) {
 
 
  111      if (in >> hex >> c) {
 
  113        object[0] = (
unsigned char) c;
 
  117            object[i] = (
unsigned char) c;
 
  119            in.setstate(ios::failbit);
 
 
  139      out << setw(2) << setfill(
'0') << hex << (int) 
object[0];
 
  143            << setw(2) << setfill(
'0') << hex << (int) 
object[i];
 
  146      return out << setfill(
' ') << dec;
 
 
 
Auxiliary classes and methods for database I/O.
 
This name space includes all other name spaces (except KM3NETDAQ, KM3NET and ANTARES).
 
friend std::ostream & operator<<(std::ostream &out, const JMACAddress &object)
Write MAC address to output stream.
 
static bool is_separator(const int c)
Check if given character is an allowed separator.
 
static const char * get_separator()
Get list of allowed separators.
 
JMACAddress()
Default constructor.
 
@ NUMBER_OF_BYTES
number of bytes
 
friend std::istream & operator>>(std::istream &in, JMACAddress &object)
Read MAC address from input stream.
 
bool equal(const JMACAddress &address) const
Equal method.
 
ClassDefNV(JMACAddress, 1)
 
Template definition of auxiliary base class for comparison of data structures.