Several minor bugfixes and improvements throughout.
This commit is contained in:
parent
cac5dcc9a1
commit
f3b0b36e2b
5 changed files with 125 additions and 54 deletions
|
@ -69,19 +69,24 @@ namespace DTSC{
|
|||
public:
|
||||
File(std::string filename, bool create = false);
|
||||
~File();
|
||||
std::string & getHeader();
|
||||
JSON::Value & getMeta();
|
||||
long long int getLastReadPos();
|
||||
bool writeHeader(std::string & header, bool force = false);
|
||||
long long int addHeader(std::string & header);
|
||||
void seekNext();
|
||||
std::string & getPacket();
|
||||
JSON::Value & getJSON();
|
||||
bool seek_frame(int frameno);
|
||||
bool seek_time(int seconds);
|
||||
private:
|
||||
private:
|
||||
void readHeader(int pos);
|
||||
std::string strbuffer;
|
||||
JSON::Value jsonbuffer;
|
||||
JSON::Value metadata;
|
||||
std::map<int, long> frames;
|
||||
std::map<int, long> msframes;
|
||||
long long int currtime;
|
||||
long long int lastreadpos;
|
||||
int currframe;
|
||||
FILE * F;
|
||||
unsigned long headerSize;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue