18 #ifndef AGXDATA_FILE_TRACK_H
19 #define AGXDATA_FILE_TRACK_H
55 virtual bool jumpToFrame(
agx::UInt frameIndex)
override;
56 virtual bool jumpToTime(
agx::Real time)
override;
69 void setBinaryReadStrategy( BinaryReadStrategy strategy );
70 BinaryReadStrategy getBinaryReadStrategy()
const;
77 void setEnableUseAio(
bool useAio );
78 bool getEnableUseAio()
const;
85 virtual void endSequence()
override;
91 virtual Frame* readFrame(
agx::UInt frameIndex)
override;
99 void removeUnwantedBuffers( agx::TiXmlElement* eElement,
const agxData::Frame::DataBindingRefVector& bindings,
const agx::String& path );
103 BinaryReadStrategy m_readStrategy;
107 PreloadedFrameRef m_preloadedFrame;
112 std::ifstream m_journalFile;
114 bool m_activeMergeSequence;
143 BinaryData* getFrameData();
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;
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.
agx::UInt getFrameOffset() const
Frame reader that supports the files-and-foldes prototype format.
virtual Frame * readFrame() override
Reads the next frame from disk using the virtual readFrame(UInt) method.
BinaryReadStrategy
Controls how the binary data of a frame is read from disk.