ChapterForge
Loading...
Searching...
No Matches
Atom Class Reference

#include <mp4_atoms.hpp>

Public Member Functions

 Atom ()=default
 
 Atom (uint32_t t)
 
 Atom (const char t[4])
 
void add (AtomPtr child)
 
std::vector< Atom * > find (const std::string &t)
 
void fix_size_recursive ()
 
uint32_t size () const
 
void write (std::ofstream &out) const
 

Static Public Member Functions

static AtomPtr create (const char t[4])
 
static AtomPtr create (uint32_t t)
 
static AtomPtr create (const std::string &t)
 

Public Attributes

uint32_t type = 0
 
std::vector< uint8_t > payload
 
std::vector< AtomPtrchildren
 
uint32_t box_size = 0
 

Constructor & Destructor Documentation

◆ Atom() [1/3]

Atom::Atom ( )
default

◆ Atom() [2/3]

Atom::Atom ( uint32_t  t)
inlineexplicit

◆ Atom() [3/3]

Atom::Atom ( const char  t[4])
inlineexplicit

Member Function Documentation

◆ add()

void Atom::add ( AtomPtr  child)

◆ create() [1/3]

static AtomPtr Atom::create ( const char  t[4])
static

◆ create() [2/3]

static AtomPtr Atom::create ( const std::string &  t)
static

◆ create() [3/3]

static AtomPtr Atom::create ( uint32_t  t)
static

◆ find()

std::vector< Atom * > Atom::find ( const std::string &  t)

◆ fix_size_recursive()

void Atom::fix_size_recursive ( )

◆ size()

uint32_t Atom::size ( ) const

◆ write()

void Atom::write ( std::ofstream &  out) const

Member Data Documentation

◆ box_size

uint32_t Atom::box_size = 0

◆ children

std::vector<AtomPtr> Atom::children

◆ payload

std::vector<uint8_t> Atom::payload

◆ type

uint32_t Atom::type = 0

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