StreamData Class Reference

#include <metadata.h>

List of all members.


Detailed Description

Object describing an audio/video stream.

Definition at line 35 of file metadata.h.


Public Member Functions

 StreamData ()
 Default constructor.
 StreamData (const std::string &codec, uint32_t bitrate, uint32_t len=0)
 Construct with pre-set values.
 StreamData (std::istream &i)
 Load from input stream.
 ~StreamData ()
 Destructor.
Setters
void setBitrate (uint32_t bitrate)
void setCodec (const std::string &codec)
Getters
uint32_t getBitrate () const
std::string getCodec () const

Private Attributes

uint32_t m_bitrate
 Bitrate.
std::string m_codec
 Codec used.
uint32_t m_length
 Length of stream.

Friends

std::ostream & operator<< (std::ostream &o, const StreamData &s)
 Output operator for streams.

Constructor & Destructor Documentation

StreamData::StreamData  ) 
 

Default constructor.

Definition at line 29 of file metadata.cpp.

StreamData::StreamData const std::string &  codec,
uint32_t  bitrate,
uint32_t  len = 0
 

Construct with pre-set values.

Definition at line 30 of file metadata.cpp.

StreamData::StreamData std::istream &  i  ) 
 

Load from input stream.

Definition at line 32 of file metadata.cpp.

References m_bitrate, m_codec, and m_length.

StreamData::~StreamData  ) 
 

Destructor.

Definition at line 37 of file metadata.cpp.


Member Function Documentation

uint32_t StreamData::getBitrate  )  const [inline]
 

Definition at line 61 of file metadata.h.

std::string StreamData::getCodec  )  const [inline]
 

Definition at line 62 of file metadata.h.

void StreamData::setBitrate uint32_t  bitrate  )  [inline]
 

Definition at line 53 of file metadata.h.

void StreamData::setCodec const std::string &  codec  )  [inline]
 

Definition at line 54 of file metadata.h.


Friends And Related Function Documentation

std::ostream& operator<< std::ostream &  o,
const StreamData s
[friend]
 

Output operator for streams.

Definition at line 39 of file metadata.cpp.


Member Data Documentation

uint32_t StreamData::m_bitrate [private]
 

Bitrate.

Definition at line 65 of file metadata.h.

Referenced by StreamData().

std::string StreamData::m_codec [private]
 

Codec used.

Definition at line 66 of file metadata.h.

Referenced by StreamData().

uint32_t StreamData::m_length [private]
 

Length of stream.

Definition at line 67 of file metadata.h.

Referenced by StreamData().


The documentation for this class was generated from the following files: