WpcMacAddr Class Reference
[Classes hierarchy]

Ethernet MAC address wrapper class. More...

List of all members.

Public Member Functions

 WpcMacAddr ()
 Default constructor.
 WpcMacAddr (WpcMacAddr const &copy)
 Copy constructor.
WpcMacAddroperator= (WpcMacAddr &copy)
 Assigns another MacAddr object's contents to this one.
string & ToString ()
 Converts MAC address to string.
unsigned char & at (unsigned int pos)
 Provides direct access to the address octet.
 operator unsigned char * ()
 Returns pointer to octets.

Protected Attributes

unsigned char m_addr [WPC_ETH_ADDR_SIZE]
 MAC address itself.


Detailed Description

Ethernet MAC address wrapper class.

Implements Ethernet hardware address storage and operations This class usefull for the WpcPacket operations

Examples:

wpcGetMac.cpp, wpcInit.cpp, and wpcPacket.cpp.


Constructor & Destructor Documentation

WpcMacAddr::WpcMacAddr (  )  [inline]

Default constructor.

WpcMacAddr::WpcMacAddr ( WpcMacAddr const &  copy  )  [inline]

Copy constructor.

Creates object as the copy from another one.


Member Function Documentation

unsigned char & WpcMacAddr::at ( unsigned int  pos  ) 

Provides direct access to the address octet.

Exceptions:
WpcError if octet index is out of bound
Examples:
wpcPacket.cpp.

WpcMacAddr::operator unsigned char * (  )  [inline]

Returns pointer to octets.

WpcMacAddr& WpcMacAddr::operator= ( WpcMacAddr copy  )  [inline]

Assigns another MacAddr object's contents to this one.

string & WpcMacAddr::ToString (  ) 

Converts MAC address to string.

Examples:
wpcGetMac.cpp, wpcInit.cpp, and wpcPacket.cpp.


Member Data Documentation

unsigned char WpcMacAddr::m_addr[WPC_ETH_ADDR_SIZE] [protected]

MAC address itself.



 
©2009 Positive Technologies
 
Generated on Fri May 22 18:17:01 2009 for wpcObj by 
 
 
1.5.7
 
Get wpcObj at SourceForge.net. Fast, secure and Free Open Source software downloads