DUNE: Uniform Navigational Environment  2016.09.0
DUNE::Media::MJPG::List Class Reference

Detailed Description

Class representing an AVI list chunk.

Public Member Functions

 List (const Properties &properties, const char *id, const char *name="LIST")
 
void add (Chunk *chunk)
 
void writeData (std::ostream &os)
 
- Public Member Functions inherited from DUNE::Media::MJPG::Chunk
 Chunk (const Properties &properties, const char *id)
 
virtual ~Chunk (void)
 
void write (std::ostream &os)
 
void setData (const uint8_t *data, uint32_t data_size)
 
uint32_t getSize (void) const
 
void setDataSize (size_t size)
 
uint32_t getDataSize (void) const
 

Additional Inherited Members

- Protected Member Functions inherited from DUNE::Media::MJPG::Chunk
void writeShort (const uint16_t &value, std::ostream &os)
 
void writeWord (const uint32_t &value, std::ostream &os)
 
void writeFourCC (const char *value, std::ostream &os)
 
void writeString (const std::string &value, std::ostream &os)
 
- Protected Attributes inherited from DUNE::Media::MJPG::Chunk
const Propertiesm_properties
 

Constructor & Destructor Documentation

DUNE::Media::MJPG::List::List ( const Properties properties,
const char *  id,
const char *  name = "LIST" 
)
inline

Constructor.

Parameters
[in]propertiesstream properties.
[in]idlist name.
[in]namechunk name.

References DUNE::Media::MJPG::Chunk::setDataSize().

Member Function Documentation

void DUNE::Media::MJPG::List::add ( Chunk chunk)
inline
void DUNE::Media::MJPG::List::writeData ( std::ostream &  os)
inlinevirtual

Write chunk data to output stream.

Parameters
[in]osoutput stream.

Reimplemented from DUNE::Media::MJPG::Chunk.

References DUNE::Media::MJPG::Chunk::write(), and DUNE::Media::MJPG::Chunk::writeFourCC().

Collaboration diagram for DUNE::Media::MJPG::List:
Collaboration graph