1 #ifndef __JDATABASE__JMACADDRESS__
2 #define __JDATABASE__JMACADDRESS__
17 namespace JDATABASE {}
18 namespace JPP {
using namespace JDATABASE; }
58 for (std::string::const_iterator i = buffer.begin(); i != buffer.end(); ++i) {
85 if ((*
this)[i] != address[i]) {
109 if (in >> hex >> c) {
111 object[0] = (
unsigned char) c;
115 object[i] = (
unsigned char) c;
117 in.setstate(ios::failbit);
137 out << setw(2) << setfill(
'0') << hex << (int)
object[0];
141 << setw(2) << setfill(
'0') << hex << (int)
object[i];
144 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 CHECK_EXIT_CODE 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.