|
libflute
|
A class for parsing and creating FLUTE FDTs (File Delivery Tables). More...
#include <FileDeliveryTable.h>
Classes | |
| struct | FileEntry |
| An entry for a file in the FDT. More... | |
Public Member Functions | |
| FileDeliveryTable (uint32_t instance_id, FecOti fec_oti) | |
| Create an empty FDT. More... | |
| FileDeliveryTable (uint32_t instance_id, char *buffer, size_t len) | |
| Parse an XML string and create a FDT class from it. More... | |
| virtual | ~FileDeliveryTable () |
| Default destructor. More... | |
| uint32_t | instance_id () |
| Get the FDT instance ID. More... | |
| void | set_expires (uint64_t exp) |
| Set the expiry value. More... | |
| void | add (const FileEntry &entry) |
| Add a file entry. More... | |
| void | remove (uint32_t toi) |
| Remove a file entry. More... | |
| std::string | to_string () const |
| Serialize the FDT to an XML string. More... | |
| std::vector< FileEntry > | file_entries () |
| Get all current file entries. More... | |
A class for parsing and creating FLUTE FDTs (File Delivery Tables).
Definition at line 29 of file FileDeliveryTable.h.
| LibFlute::FileDeliveryTable::FileDeliveryTable | ( | uint32_t | instance_id, |
| FecOti | fec_oti | ||
| ) |
Create an empty FDT.
| instance_id | FDT instance ID to set |
| fec_oti | Global FEC OTI parameters |
Definition at line 25 of file FileDeliveryTable.cpp.
| LibFlute::FileDeliveryTable::FileDeliveryTable | ( | uint32_t | instance_id, |
| char * | buffer, | ||
| size_t | len | ||
| ) |
Parse an XML string and create a FDT class from it.
| instance_id | FDT instance ID (from ALC headers) |
| buffer | String containing the FDT XML |
| len | Length of the buffer |
Definition at line 31 of file FileDeliveryTable.cpp.
|
inlinevirtual |
| auto LibFlute::FileDeliveryTable::add | ( | const FileEntry & | entry | ) |
Add a file entry.
Definition at line 142 of file FileDeliveryTable.cpp.
|
inline |
Get all current file entries.
Definition at line 94 of file FileDeliveryTable.h.
|
inline |
Get the FDT instance ID.
Definition at line 56 of file FileDeliveryTable.h.
| auto LibFlute::FileDeliveryTable::remove | ( | uint32_t | toi | ) |
Remove a file entry.
Definition at line 148 of file FileDeliveryTable.cpp.
|
inline |
| auto LibFlute::FileDeliveryTable::to_string | ( | ) | const |
Serialize the FDT to an XML string.
Definition at line 160 of file FileDeliveryTable.cpp.