1 #ifndef __JDATABASE__JMACADDRESS__
2 #define __JDATABASE__JMACADDRESS__
16 namespace JDATABASE {}
17 namespace JPP {
using namespace JDATABASE; }
57 for (std::string::const_iterator i = buffer.begin(); i != buffer.end(); ++i) {
84 if ((*
this)[i] != address[i]) {
108 if (in >> hex >> c) {
110 object[0] = (
unsigned char) c;
114 object[i] = (
unsigned char) c;
116 in.setstate(ios::failbit);
136 out << setw(2) << setfill(
'0') << hex << (int)
object[0];
140 << setw(2) << setfill(
'0') << hex << (int)
object[i];
143 return out << setfill(
' ') << dec;
friend std::istream & operator>>(std::istream &in, JMACAddress &object)
Read MAC address from input stream.
JMACAddress()
Default constructor.
Template definition of auxiliary base class for comparison of data structures.
ClassDefNV(JMACAddress, 1)
static bool is_separator(const int c)
Check if given character is an allowed separator.
bool equal(const JMACAddress &address) const
Equal method.
static const char * get_separator()
Get list of allowed separators.
then fatal Wrong number of arguments fi set_variable DETECTOR $argv[1] set_variable INPUT_FILE $argv[2] eval JPrintDetector a $DETECTOR O IDENTIFIER eval JPrintDetector a $DETECTOR O SUMMARY source JAcoustics sh $DETECTOR_ID typeset A TRIPODS get_tripods $WORKDIR tripod txt TRIPODS for EMITTER in
friend std::ostream & operator<<(std::ostream &out, const JMACAddress &object)
Write MAC address to output stream.