42 #ifndef _DWMMACADDRESS_HH_ 43 #define _DWMMACADDRESS_HH_ 91 std::istream &
Read(std::istream & is);
96 std::ostream &
Write(std::ostream & os)
const;
102 ssize_t
Read(
int fd);
108 ssize_t
Write(
int fd)
const;
114 size_t Read(FILE *f);
120 size_t Write(FILE *f)
const;
126 int Read(gzFile gzf);
132 int Write(gzFile gzf)
const;
144 int BZWrite(BZFILE *bzf)
const;
155 friend std::ostream &
161 friend std::istream &
170 #endif // _DWMMACADDRESS_HH_ friend std::ostream & operator<<(std::ostream &os, const MacAddress &addr)
Prints to an ostream in 'xx:xx:xx:xx:xx:xx' format.
friend std::istream & operator>>(std::istream &is, MacAddress &addr)
Reads from an istream in 'xx:xx:xx:xx:xx:xx' format.
This class is a pure virtual class, defining an interface for classes that can write their contents t...
Definition: DwmGZWritable.hh:57
Dwm::Writable pure virtual class definition.
Dwm::BZ2Readable pure virtual class definition.
Dwm::GZReadable pure virtual class definition.
bool operator==(const MacAddress &addr) const
operator ==
int BZRead(BZFILE *bzf)
Reads the MAC address from a BZFILE.
Dwm::Readable pure virtual class definition.
MacAddress & operator=(const MacAddress &addr)
operator =
MacAddress()
Constructor. Sets the address to 00:00:00:00:00:00.
Encapsulates a 6-byte MAC address.
Definition: DwmMacAddress.hh:57
This class is a pure virtual class, defining an interface for classes that can read their contents fr...
Definition: DwmBZ2Readable.hh:57
int BZWrite(BZFILE *bzf) const
Writes the MAC address to a BZFILE.
Dwm::BZ2Writable pure virtual class definition.
Definition: DwmBZ2IO.hh:67
This class is a pure virtual class, defining an interface for classes that can read their contents fr...
Definition: DwmGZReadable.hh:57
std::ostream & Write(std::ostream &os) const
Writes the MAC address to an ostream. Returns the ostream.
This class defines an interface for classes that can write their contents to an ostream, file descriptor or FILE pointer.
Definition: DwmWritable.hh:58
This class is a pure virtual class, defining an interface for classes that can write their contents t...
Definition: DwmBZ2Writable.hh:57
Dwm::GZWritable pure virtual class definition.
This class defines an interface for classes that can read their contents from an istream, file descriptor or FILE pointer.
Definition: DwmReadable.hh:58
uint32_t StreamedLength() const
Returns the number of bytes that should be written if we call one of the Write() members.
std::istream & Read(std::istream &is)
Reads the MAC address from an istream. Returns the istream.