MAC address.  
 More...
#include <JMACAddress.hh>
MAC address. 
Definition at line 30 of file JMACAddress.hh.
 
◆ anonymous enum
| Enumerator | 
|---|
| NUMBER_OF_BYTES  | number of bytes  
 | 
Definition at line 34 of file JMACAddress.hh.
@ NUMBER_OF_BYTES
number of bytes
 
 
 
 
◆ JMACAddress()
  
  
      
        
          | JDATABASE::JMACAddress::JMACAddress  | 
          ( | 
           | ) | 
           | 
         
       
   | 
  
inline   | 
  
 
 
◆ get_separator()
  
  
      
        
          | static const char* JDATABASE::JMACAddress::get_separator  | 
          ( | 
           | ) | 
           | 
         
       
   | 
  
inlinestatic   | 
  
 
Get list of allowed separators. 
- Returns
 - allowed separators 
 
Definition at line 44 of file JMACAddress.hh.
 
 
◆ is_separator()
  
  
      
        
          | 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 56 of file JMACAddress.hh.
   60       for (std::string::const_iterator i = buffer.begin(); i != buffer.end(); ++i) {
 
static const char * get_separator()
Get list of allowed separators.
 
 
 
 
◆ equal()
  
  
      
        
          | 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 84 of file JMACAddress.hh.
   87         if ((*
this)[i] != address[i]) {
 
 
 
 
◆ ClassDefNV()
◆ operator>>
  
  
      
        
          | 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 103 of file JMACAddress.hh.
  111       if (in >> hex >> c) {
 
  113         object[0] = (
unsigned char) c;
 
  117             object[i] = (
unsigned char) c;
 
  119             in.setstate(ios::failbit);
 
static bool is_separator(const int c)
Check if given character is an allowed separator.
 
JMACAddress()
Default constructor.
 
 
 
 
◆ operator<<
  
  
      
        
          | 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 135 of file JMACAddress.hh.
  139       out << setw(2) << setfill(
'0') << hex << (int) 
object[0];
 
  143             << setw(2) << setfill(
'0') << hex << (int) 
object[i];
 
  146       return out << setfill(
' ') << dec;
 
 
 
 
The documentation for this struct was generated from the following file: