17 #ifndef AGXDATA_FILEJOURNAL_H
18 #define AGXDATA_FILEJOURNAL_H
73 virtual agx::String getCustomFilesPath(
bool create =
true)
const override;
77 virtual agx::String getCustomFilesPath(
const agx::Name& sessionName,
bool create =
true )
const override;
100 void readJournalContent();
130 virtual agx::String getScenePath(
bool create =
true)
const override;
135 virtual bool unpackSceneFile()
override;
139 virtual bool packSceneData(std::stringstream& sceneData)
override;
142 virtual bool unpackSceneData(std::stringstream& sceneData)
override;
146 virtual bool packSceneData(std::istream& sceneData)
override;
149 virtual bool unpackSceneData(std::ostream& sceneData)
override;
153 virtual bool truncate(
agx::UInt firstFrameToRemove )
override;
161 virtual agxData::Frame::Header getFrameHeader(
agx::UInt frameIndex )
const override;
171 virtual agx::String getCustomFilesPath(
bool create =
true)
const override;
178 virtual void savePlot(
const PlotData* plot)
override;
179 virtual void removePlot(
const agx::String& plotName)
override;
180 virtual PlotData* getPlot(
const agx::String& plotName)
override;
181 virtual void getAllPlots(PlotDataRefVector& result)
override;
184 virtual void writeHeader()
override;
185 virtual void finalizeHeader()
override;
223 agx::TiXmlElement* generateHeader();
230 agx::TiXmlText* getTextNode(agx::TiXmlElement*
root,
const agx::String& key,
bool create);
232 bool unpackSceneDataToStream(std::ostream& sceneData);
233 void createFrameTable();
234 void printFileStatistics();
235 void readExtraData(agx::TiXmlElement* eExtraData);
236 void readPlotData(agx::TiXmlElement* ePlotData);
265 PlotTable m_plotTable;
Helper class for the FrameReaders that are backed by a file on disk.
The FileJournal provides a way to inspect and manipulate a journal created by the FileFrameWriter and...
Session(const agx::Name &name)
Base class for the FrameReaders that are backed by a file on disk.
agx::UInt64 dataSegmentOffset
The JournalArchive provides an abstract class for inspecting and manipulating the contents of a creat...
#define AGX_DECLARE_POINTER_TYPES(type)
Representation of a name string.
Representation of a session on disk created by the FileFrameWriter.
AGXCORE_EXPORT Component * root()
Inheritance with partial specialization due to bug with ref_ptr containers.
agx::UInt64 sequenceIndex