MAC address.
More...
#include <JMACAddress.hh>
MAC address.
Definition at line 28 of file JMACAddress.hh.
Enumerator |
---|
NUMBER_OF_BYTES |
number of bytes
|
Definition at line 32 of file JMACAddress.hh.
JDATABASE::JMACAddress::JMACAddress |
( |
| ) |
|
|
inline |
static const char* JDATABASE::JMACAddress::get_separator |
( |
| ) |
|
|
inlinestatic |
Get list of allowed separators.
- Returns
- allowed separators
Definition at line 42 of file JMACAddress.hh.
static bool JDATABASE::JMACAddress::is_separator |
( |
const int |
c | ) |
|
|
inlinestatic |
Check if given character is an allowed separator.
- Parameters
-
- Returns
- true if separator; else false
Definition at line 54 of file JMACAddress.hh.
58 for (std::string::const_iterator
i = buffer.begin();
i != buffer.end(); ++
i) {
$WORKDIR ev_configure_dqsimulator txt echo process $DQ_SIMULATOR $i $SOURCE_HOST[$index] csh c(setenv ROOTSYS $ROOTSYS &&source $JPP_DIR/setenv.csh $JPP_DIR &&($DQ_SIMULATOR\-u\$NAME\$\-H\$SERVER\$\-M\$LOGGER\$\-d $DEBUG</dev/null > &/dev/null &))'
static const char * get_separator()
Get list of allowed separators.
bool JDATABASE::JMACAddress::equal |
( |
const JMACAddress & |
address | ) |
const |
|
inline |
Equal method.
- Parameters
-
- Returns
- true if this MAC address and given MAC address are equal; else false
Definition at line 82 of file JMACAddress.hh.
85 if ((*
this)[
i] != address[
i]) {
std::istream& operator>> |
( |
std::istream & |
in, |
|
|
JMACAddress & |
object |
|
) |
| |
|
friend |
Read MAC address from input stream.
- Parameters
-
in | input stream |
object | MAC address |
- Returns
- input stream
Definition at line 101 of file JMACAddress.hh.
109 if (
in >> hex >>
c) {
111 object[0] = (
unsigned char)
c;
115 object[
i] = (
unsigned char)
c;
117 in.setstate(ios::failbit);
JMACAddress()
Default constructor.
$WORKDIR ev_configure_dqsimulator txt echo process $DQ_SIMULATOR $i $SOURCE_HOST[$index] csh c(setenv ROOTSYS $ROOTSYS &&source $JPP_DIR/setenv.csh $JPP_DIR &&($DQ_SIMULATOR\-u\$NAME\$\-H\$SERVER\$\-M\$LOGGER\$\-d $DEBUG</dev/null > &/dev/null &))'
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 JAcoustics sh $DETECTOR_ID source JAcousticsToolkit sh CHECK_EXIT_CODE typeset A EMITTERS get_tripods $WORKDIR tripod txt EMITTERS get_transmitters $WORKDIR transmitter txt EMITTERS for EMITTER in
static bool is_separator(const int c)
Check if given character is an allowed separator.
std::ostream& operator<< |
( |
std::ostream & |
out, |
|
|
const JMACAddress & |
object |
|
) |
| |
|
friend |
Write MAC address to output stream.
- Parameters
-
out | output stream |
object | MAC address |
- Returns
- output stream
Definition at line 133 of file JMACAddress.hh.
137 out << setw(2) << setfill(
'0') << hex << (int)
object[0];
141 << setw(2) << setfill(
'0') << hex << (int)
object[
i];
144 return out << setfill(
' ') << dec;
static const char * get_separator()
Get list of allowed separators.
The documentation for this struct was generated from the following file: