MistServer
2.5.3-Pro-19-gf5e75b1 ( Generic_64)
|
Class for storage of meta data. More...
#include <dtsc.h>
Public Member Functions | |
Meta () | |
Creates an empty meta object. More... | |
Meta () | |
Meta (const DTSC::Packet &source) | |
Meta (const DTSC::Packet &source) | |
Meta (JSON::Value &meta) | |
Meta (JSON::Value &meta) | |
Creates a meta object from a JSON::Value. More... | |
unsigned int | getSendLen () |
Determines the "packed" size of a meta object. More... | |
unsigned int | getSendLen () |
operator bool () const | |
operator bool () const | |
void | reinit (const DTSC::Packet &source) |
void | reinit (const DTSC::Packet &source) |
void | reset () |
Resets a meta object, removes all unimportant meta values. More... | |
void | reset () |
void | send (Socket::Connection &conn) |
Writes a meta object to a socket. More... | |
void | send (Socket::Connection &conn) |
JSON::Value | toJSON () |
JSON::Value | toJSON () |
Converts a meta object to a JSON::Value. More... | |
void | toPrettyString (std::ostream &str, int indent=0, int verbosity=0) |
void | toPrettyString (std::ostream &str, int indent=0, int verbosity=0) |
Converts a meta object to a human readable string. More... | |
void | update (DTSC::Packet &pack, unsigned long segment_size=5000) |
void | update (DTSC::Packet &pack, unsigned long segment_size=5000) |
Updates a meta object given a DTSC::Packet. More... | |
void | update (JSON::Value &pack, unsigned long segment_size=5000) |
Updates a meta object given a JSON::Value. More... | |
void | update (JSON::Value &pack, unsigned long segment_size=5000) |
void | update (long long packTime, long long packOffset, long long packTrack, long long packDataSize, long long packBytePos, bool isKeyframe, long long packSendSize=0, unsigned long segment_size=5000, const char *iVec=0) |
void | update (long long packTime, long long packOffset, long long packTrack, long long packDataSize, long long packBytePos, bool isKeyframe, long long packSendSize=0, unsigned long segment_size=5000, const char *iVec=0) |
void | updatePosOverride (DTSC::Packet &pack, unsigned long bpos) |
Updates a meta object given a DTSC::Packet with byte position override. More... | |
void | updatePosOverride (DTSC::Packet &pack, unsigned long bpos) |
void | writeTo (char *p) |
void | writeTo (char *p) |
Writes a meta object to a pointer. More... | |
Data Fields | |
long long int | bufferWindow |
bool | live |
bool | merged |
long long int | moreheader |
std::map< unsigned int, Track > | tracks |
bool | vod |
Class for storage of meta data.
DTSC::Meta::Meta | ( | const DTSC::Packet & | source | ) |
DTSC::Meta::Meta | ( | JSON::Value & | meta | ) |
Creates a meta object from a JSON::Value.
DTSC::Meta::Meta | ( | const DTSC::Packet & | source | ) |
DTSC::Meta::Meta | ( | JSON::Value & | meta | ) |
unsigned int DTSC::Meta::getSendLen | ( | ) |
Determines the "packed" size of a meta object.
unsigned int DTSC::Meta::getSendLen | ( | ) |
|
inline |
|
inline |
void DTSC::Meta::reinit | ( | const DTSC::Packet & | source | ) |
void DTSC::Meta::reinit | ( | const DTSC::Packet & | source | ) |
void DTSC::Meta::reset | ( | ) |
Resets a meta object, removes all unimportant meta values.
void DTSC::Meta::reset | ( | ) |
void DTSC::Meta::send | ( | Socket::Connection & | conn | ) |
Writes a meta object to a socket.
void DTSC::Meta::send | ( | Socket::Connection & | conn | ) |
JSON::Value DTSC::Meta::toJSON | ( | ) |
Converts a meta object to a JSON::Value.
JSON::Value DTSC::Meta::toJSON | ( | ) |
void DTSC::Meta::toPrettyString | ( | std::ostream & | str, |
int | indent = 0 , |
||
int | verbosity = 0 |
||
) |
void DTSC::Meta::toPrettyString | ( | std::ostream & | str, |
int | indent = 0 , |
||
int | verbosity = 0 |
||
) |
Converts a meta object to a human readable string.
str | The stringstream to append to |
indent | the amount of indentation needed |
verbosity | How verbose the output needs to be |
void DTSC::Meta::update | ( | DTSC::Packet & | pack, |
unsigned long | segment_size = 5000 |
||
) |
Updates a meta object given a DTSC::Packet.
void DTSC::Meta::update | ( | DTSC::Packet & | pack, |
unsigned long | segment_size = 5000 |
||
) |
void DTSC::Meta::update | ( | JSON::Value & | pack, |
unsigned long | segment_size = 5000 |
||
) |
void DTSC::Meta::update | ( | JSON::Value & | pack, |
unsigned long | segment_size = 5000 |
||
) |
Updates a meta object given a JSON::Value.
void DTSC::Meta::update | ( | long long | packTime, |
long long | packOffset, | ||
long long | packTrack, | ||
long long | packDataSize, | ||
long long | packBytePos, | ||
bool | isKeyframe, | ||
long long | packSendSize = 0 , |
||
unsigned long | segment_size = 5000 , |
||
const char * | iVec = 0 |
||
) |
void DTSC::Meta::update | ( | long long | packTime, |
long long | packOffset, | ||
long long | packTrack, | ||
long long | packDataSize, | ||
long long | packBytePos, | ||
bool | isKeyframe, | ||
long long | packSendSize = 0 , |
||
unsigned long | segment_size = 5000 , |
||
const char * | iVec = 0 |
||
) |
void DTSC::Meta::updatePosOverride | ( | DTSC::Packet & | pack, |
unsigned long | bpos | ||
) |
void DTSC::Meta::updatePosOverride | ( | DTSC::Packet & | pack, |
unsigned long | bpos | ||
) |
Updates a meta object given a DTSC::Packet with byte position override.
void DTSC::Meta::writeTo | ( | char * | p | ) |
Writes a meta object to a pointer.
void DTSC::Meta::writeTo | ( | char * | p | ) |
long long int DTSC::Meta::bufferWindow |
bool DTSC::Meta::live |
bool DTSC::Meta::merged |
long long int DTSC::Meta::moreheader |
std::map< unsigned int, Track > DTSC::Meta::tracks |
bool DTSC::Meta::vod |