class Mac

Generic container for any type of MAC. More...

Definition#include <mac.hh>
Inherited byEtherMac
List of all Methods
Annotated List
Files
Globals
Hierarchy
Index

Public Methods

Protected Methods

Protected Members


Detailed Description

A class intended to carry any type of MAC. The assumption is that all current and future MAC classes will have a printable string representation and can be treated as opaque identifiers.

 Mac ()

Mac

Default constructor

 Mac (const string& s)
throw (InvalidString)

Mac

Construct MAC address from string. Mac address format must conform to one of known types.

Parameters:
sstring representation of mac.

Throws: InvalidString, if, s, is, not, recognized, Mac, type.

inline const string&  str ()

str

[const]

Returns: string representation of MAC address.

inline bool  empty ()

empty

[const]

Returns: true if MAC address value is unset.

inline void  set_rep (const string& s)

set_rep

[protected]

string _srep

_srep

[protected]


Generated by: pavlin on possum.icir.org on Thu Aug 28 12:51:57 2003, using kdoc 2.0a54+XORP.