18 #ifndef AGXDATA_FILE_TRACK_H 19 #define AGXDATA_FILE_TRACK_H 21 #include <agx/config/AGX_USE_AIO.h> 55 virtual bool jumpToFrame(
agx::UInt frameIndex)
override;
56 virtual bool jumpToTime(
agx::Real time)
override;
77 void setEnableUseAio(
bool useAio );
78 bool getEnableUseAio()
const;
85 virtual void endSequence()
override;
91 virtual Frame* readFrame(
agx::UInt frameIndex)
override;
92 using DiskFrameReader::readFrame;
99 void removeUnwantedBuffers( agx::TiXmlElement* eElement,
const agxData::Frame::DataBindingRefVector& bindings,
const agx::String& path );
107 PreloadedFrameRef m_preloadedFrame;
112 std::ifstream m_journalFile;
114 bool m_activeMergeSequence;
148 bool hasQueuedRead()
const;
157 bool waitForCurrentReadToComplete();
159 virtual ~PreloadedFrame();
161 struct aiocb m_aioHandle;
163 size_t m_frameDataSize;
164 size_t m_alignmentRequirement;
182 virtual void writeFrame(
const agxData::Frame* frame)
override;
183 virtual const JournalArchive::Session* getSession()
const override;
184 virtual void endOfStream()
override;
Helper class for the FrameReaders that are backed by a file on disk.
AGXTERRAIN_EXPORT void clear()
Session(const agx::Name &name)
Base class for the FrameReaders that are backed by a file on disk.
#define AGX_DECLARE_POINTER_TYPES(type)
Base class providing referencing counted objects.
The agx namespace contains the dynamics/math part of the AGX Dynamics API.
Contains classes for low level data storage for AGX.
Frame reader that supports the files-and-foldes prototype format.
BinaryReadStrategy
Controls how the binary data of a frame is read from disk.