MAC address.  
 More...
#include <JMACAddress.hh>
MAC address. 
Definition at line 27 of file JMACAddress.hh.
 
| Enumerator | 
|---|
| NUMBER_OF_BYTES  | 
 number of bytes  
 | 
Definition at line 31 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 41 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 53 of file JMACAddress.hh.
   57       for (std::string::const_iterator i = buffer.begin(); i != buffer.end(); ++i) {
 
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 81 of file JMACAddress.hh.
   84         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 100 of file JMACAddress.hh.
  108       if (
in >> hex >> c) {
 
  110         object[0] = (
unsigned char) c;
 
  114             object[i] = (
unsigned char) c;
 
  116             in.setstate(ios::failbit);
 
JMACAddress()
Default constructor. 
 
static bool is_separator(const int c)
Check if given character is an allowed separator. 
 
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
 
 
 
 
  
  
      
        
          | 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 132 of file JMACAddress.hh.
  136       out << setw(2) << setfill(
'0') << hex << (int) 
object[0];
 
  140             << setw(2) << setfill(
'0') << hex << (int) 
object[i];
 
  143       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: