42 #ifndef _DWMMPLSLABELSTACK_HH_ 43 #define _DWMMPLSLABELSTACK_HH_ 63 const std::vector<MplsLabel> &
Labels()
const;
68 std::vector<MplsLabel> &
Labels();
78 std::istream &
Read(std::istream & is);
83 std::ostream &
Write(std::ostream & os)
const;
95 ssize_t
Write(
int fd)
const;
101 size_t Read(FILE *f);
107 size_t Write(FILE *f)
const;
113 int Read(gzFile gzf);
119 int Write(gzFile gzf)
const;
131 int BZWrite(BZFILE *bzf)
const;
142 friend std::ostream &
146 std::vector<MplsLabel> _labels;
151 #endif // _DWMMPLSLABELSTACK_HH_ This class is a pure virtual class, defining an interface for classes that can write their contents t...
Definition: DwmGZWritable.hh:57
std::istream & Read(std::istream &is)
Reads the label stack from an istream. Returns the istream.
This class is a pure virtual class, defining an interface for classes that can read their contents fr...
Definition: DwmBZ2Readable.hh:57
uint32_t StreamedLength() const
Returns the number of bytes that should be written if we call one of the Write() members.
Dwm::MplsLabel class definition.
friend std::ostream & operator<<(std::ostream &os, const MplsLabelStack &labelStack)
Prints the label stack to an ostream in human-readable form.
const std::vector< MplsLabel > & Labels() const
Returns a const reference to the contained MPLS labels.
Definition: DwmBZ2IO.hh:67
int BZWrite(BZFILE *bzf) const
Writes the label stack to the given BZFILE bzf.
std::ostream & Write(std::ostream &os) const
Writes the label stack to an ostream. Returns the ostream.
This class is a pure virtual class, defining an interface for classes that can read their contents fr...
Definition: DwmGZReadable.hh:57
bool operator==(const MplsLabelStack &labelStack) const
operator ==
Encapsulates an MPLS label stack.
Definition: DwmMplsLabelStack.hh:54
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
This class defines an interface for classes that can read their contents from an istream, file descriptor or FILE pointer.
Definition: DwmReadable.hh:58
int BZRead(BZFILE *bzf)
Reads the label stack from the given BZFILE bzf.