8 #include <base/Time.hpp> 22 struct IndexPrologue {
32 void loadIndex(
size_t sampleNr);
47 off_t
writeIndexToFile(std::fstream &indexFile, off_t prologPos, off_t indexDataPos);
71 return prologue.numSamples;
76 return prologue.streamDescPos;
89 IndexInfo curIndexInfo;
91 std::vector<IndexInfo> buildBuffer;
92 IndexPrologue prologue;
int64_t firstSampleTime
Definition: Index.hpp:133
int64_t lastSampleTime
Definition: Index.hpp:134
const base::Time & getFirstSampleTime() const
Definition: Index.hpp:59
std::streampos getSamplePos(size_t sampleNr)
Definition: Index.cpp:113
std::string getName()
Definition: Index.hpp:79
void addSample(off_t filePosition, const base::Time &sampleTime)
Definition: Index.cpp:42
Index(std::string indexFileName, size_t streamIdx)
Definition: Index.cpp:12
struct pocolog_cpp::SampleHeader __attribute__
~Index()
Definition: Index.cpp:129
int64_t dataPos
Definition: Index.hpp:135
off_t writeIndexToFile(std::fstream &indexFile, off_t prologPos, off_t indexDataPos)
Definition: Index.cpp:64
int32_t nameCrc
Definition: Index.hpp:132
base::Time getSampleTime(size_t sampleNr)
Definition: Index.cpp:122
int16_t streamIdx
Definition: Index.hpp:131
size_t getNumSamples() const
Definition: Index.hpp:69
int64_t samplePosInLogFile
Definition: Index.hpp:130
int64_t sampleTime
Definition: Index.hpp:131
static off_t getPrologueSize()
Definition: Index.cpp:59
size_t numSamples
Definition: Index.hpp:130
Definition: FileStream.hpp:7
Definition: StreamDescription.hpp:13
std::streampos getDescriptionPos() const
Definition: Index.hpp:74
const base::Time & getLastSampleTime() const
Definition: Index.hpp:64
Definition: FileStream.hpp:22
bool matches(const StreamDescription &desc) const
Definition: Index.cpp:35
int64_t streamDescPos
Definition: Index.hpp:136