42#ifndef _DWMMPLSLABELSTACK_HH_
43#define _DWMMPLSLABELSTACK_HH_
60 const std::vector<MplsLabel> &
Labels()
const;
75 std::istream &
Read(std::istream & is);
80 std::ostream &
Write(std::ostream & os)
const;
139 friend std::ostream &
143 std::vector<MplsLabel> _labels;
Dwm::MplsLabel class definition.
Encapsulates an MPLS label stack.
Definition DwmMplsLabelStack.hh:55
std::istream & Read(std::istream &is)
Reads the label stack from an istream. Returns the istream.
friend std::ostream & operator<<(std::ostream &os, const MplsLabelStack &labelStack)
Prints the label stack to an ostream in human-readable form.
int BZRead(BZFILE *bzf)
Reads the label stack from the given BZFILE bzf.
ssize_t Write(int fd) const
Writes the label stack to a file descriptor.
int Read(gzFile gzf)
Reads the label stack from the given gzFile gzf.
std::vector< MplsLabel > & Labels()
Returns a mutable reference to the contained MPLS labels.
int BZWrite(BZFILE *bzf) const
Writes the label stack to the given BZFILE bzf.
size_t Write(FILE *f) const
Writes the label stack to a FILE.
int Write(gzFile gzf) const
Writes the label stack to the given gzFile gzf.
bool operator==(const MplsLabelStack &labelStack) const
operator ==
uint64_t StreamedLength() const
Returns the number of bytes that should be written if we call one of the Write() members.
size_t Read(FILE *f)
Reads the label stack from a FILE.
const std::vector< MplsLabel > & Labels() const
Returns a const reference to the contained MPLS labels.
ssize_t Read(int fd)
Reads the label stack from a file descriptor.
std::ostream & Write(std::ostream &os) const
Writes the label stack to an ostream. Returns the ostream.