17 #ifndef AGXDATA_JOURNALARCHIVE_H 18 #define AGXDATA_JOURNALARCHIVE_H 31 class DiskFrameReader;
32 class DiskFrameWriter;
67 const SessionTable& getSessions()
const;
76 bool removeSession(
const agx::Name& name );
128 virtual agx::String getCustomFilesPath(
bool create =
true)
const = 0;
142 virtual agx::String getCustomFilesPath(
const agx::Name& sessionName,
bool create =
true )
const = 0;
148 size_t getNumSessions()
const;
180 SessionTable m_sessions;
225 virtual bool truncate(
agx::UInt firstFrameToRemove ) = 0;
247 virtual agx::String getScenePath(
bool create =
true)
const = 0;
255 virtual bool unpackSceneFile() = 0;
262 virtual bool packSceneData(std::stringstream& sceneData) = 0;
269 virtual bool unpackSceneData(std::stringstream& sceneData) = 0;
276 virtual bool packSceneData(std::istream& sceneData) = 0;
283 virtual bool unpackSceneData(std::ostream& sceneData) = 0;
294 virtual agx::String getCustomFilesPath(
bool create =
true)
const = 0;
311 virtual agxData::Frame::Header getFrameHeader(
agx::UInt frameIndex )
const = 0;
320 virtual void savePlot(
const PlotData* plot) = 0;
321 virtual void removePlot(
const agx::String& plotName) = 0;
322 virtual PlotData* getPlot(
const agx::String& plotName) = 0;
323 virtual void getAllPlots(PlotDataRefVector& result) = 0;
329 virtual void writeHeader() = 0;
330 virtual void finalizeHeader() = 0;
338 void setFirstFrameTimeStamp(
agx::Real64 startTime);
356 void setComputationTime(
agx::Real64 computationTime);
359 void setAgxVersionString(
const agx::String& version);
361 void setAgxVersionNumber(
const agx::UInt32 version);
364 bool is64BitReal()
const;
365 bool is64BitArchitecture()
const;
366 bool isLittleEndian()
const;
368 void set64BitReal(
bool flag);
369 void set64BitArchitecture(
bool flag);
370 void setLittleEndian(
bool flag);
385 void setName(
const agx::Name& newName );
397 bool m_is64BitArchitecture;
398 bool m_isLittleEndian;
422 AGX_FORCE_INLINE bool JournalArchive::Session::is64BitArchitecture()
const {
return m_is64BitArchitecture; }
423 AGX_FORCE_INLINE bool JournalArchive::Session::isLittleEndian()
const {
return m_isLittleEndian; }
Helper class for the FrameReaders that are backed by a file on disk.
Session(const agx::Name &name)
A component is an object containing other objects, enabling hierarchical structuring.
Base class for the FrameReaders that are backed by a file on disk.
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.
Base class providing referencing counted objects.
Contains classes for low level data storage for AGX.
Smart pointer for handling referenced counted objects.
agxNet::StructuredMessage PlotData
agx::Vector< PlotDataRef > PlotDataRefVector
agx::HashTable< agx::Name, agxData::JournalArchive::SessionRef > SessionTable
Inheritance with partial specialization due to bug with ref_ptr containers.
#define DOXYGEN_END_INTERNAL_BLOCK()
#define DOXYGEN_START_INTERNAL_BLOCK()
agx::ref_ptr< PlotData > PlotDataRef