MistServer
2.5.3-Pro-19-gf5e75b1 ( Generic_64)
|
Basic class for storage of data associated with keyframes. More...
#include <dtsc.h>
Public Member Functions | |
unsigned long long | getBpos () |
Returns the byteposition of a keyframe. More... | |
unsigned long long | getBpos () |
char * | getData () |
Returns the data of this keyframe struct. More... | |
char * | getData () |
unsigned long | getLength () |
unsigned long | getLength () |
unsigned long | getNumber () |
unsigned long | getNumber () |
Returns the number of a keyframe. More... | |
unsigned short | getParts () |
unsigned short | getParts () |
Returns the number of parts of a keyframe. More... | |
unsigned long long | getTime () |
Returns the timestamp of a keyframe. More... | |
unsigned long long | getTime () |
void | setBpos (unsigned long long newBpos) |
void | setBpos (unsigned long long newBpos) |
void | setLength (unsigned long newLength) |
void | setLength (unsigned long newLength) |
void | setNumber (unsigned long newNumber) |
void | setNumber (unsigned long newNumber) |
Sets the number of a keyframe. More... | |
void | setParts (unsigned short newParts) |
void | setParts (unsigned short newParts) |
Sets the number of parts of a keyframe. More... | |
void | setTime (unsigned long long newTime) |
Sets the timestamp of a keyframe. More... | |
void | setTime (unsigned long long newTime) |
void | toPrettyString (std::ostream &str, int indent=0) |
Converts a keyframe to a human readable string. More... | |
void | toPrettyString (std::ostream &str, int indent=0) |
Private Attributes | |
char | data [PACKED_KEY_SIZE] |
Data storage for this Key. More... | |
Basic class for storage of data associated with keyframes.
When deleting this object, make sure to remove all DTSC::Part associated with it, if any. If you fail doing this, it will cause data corruption.
unsigned long long DTSC::Key::getBpos | ( | ) |
Returns the byteposition of a keyframe.
unsigned long long DTSC::Key::getBpos | ( | ) |
char * DTSC::Key::getData | ( | ) |
Returns the data of this keyframe struct.
char* DTSC::Key::getData | ( | ) |
unsigned long DTSC::Key::getLength | ( | ) |
unsigned long DTSC::Key::getLength | ( | ) |
unsigned long DTSC::Key::getNumber | ( | ) |
unsigned long DTSC::Key::getNumber | ( | ) |
Returns the number of a keyframe.
unsigned short DTSC::Key::getParts | ( | ) |
unsigned short DTSC::Key::getParts | ( | ) |
Returns the number of parts of a keyframe.
unsigned long long DTSC::Key::getTime | ( | ) |
Returns the timestamp of a keyframe.
unsigned long long DTSC::Key::getTime | ( | ) |
void DTSC::Key::setBpos | ( | unsigned long long | newBpos | ) |
void DTSC::Key::setBpos | ( | unsigned long long | newBpos | ) |
void DTSC::Key::setLength | ( | unsigned long | newLength | ) |
void DTSC::Key::setLength | ( | unsigned long | newLength | ) |
void DTSC::Key::setNumber | ( | unsigned long | newNumber | ) |
void DTSC::Key::setNumber | ( | unsigned long | newNumber | ) |
Sets the number of a keyframe.
void DTSC::Key::setParts | ( | unsigned short | newParts | ) |
void DTSC::Key::setParts | ( | unsigned short | newParts | ) |
Sets the number of parts of a keyframe.
void DTSC::Key::setTime | ( | unsigned long long | newTime | ) |
Sets the timestamp of a keyframe.
void DTSC::Key::setTime | ( | unsigned long long | newTime | ) |
void DTSC::Key::toPrettyString | ( | std::ostream & | str, |
int | indent = 0 |
||
) |
Converts a keyframe to a human readable string.
str | The stringstream to append to |
indent | the amount of indentation needed |
void DTSC::Key::toPrettyString | ( | std::ostream & | str, |
int | indent = 0 |
||
) |
|
private |
Data storage for this Key.