29#ifndef OMNI_PVD_RUNTIME_READER_IMPL_H
30#define OMNI_PVD_RUNTIME_READER_IMPL_H
32#include "OmniPvdReader.h"
33#include "OmniPvdLog.h"
42 bool OMNI_PVD_CALL
startReading(OmniPvdVersionType* majorVersion, OmniPvdVersionType* minorVersion, OmniPvdVersionType* patch);
48 OmniPvdVersionType OMNI_PVD_CALL
getPatch();
67 uint8_t OMNI_PVD_CALL getAttributeNumberHandles();
68 OmniPvdAttributeHandle* OMNI_PVD_CALL getAttributeHandles();
77 void readLongDataFromStream(uint32_t streamByteLen);
83 OmniPvdVersionType mMajorVersion;
84 OmniPvdVersionType mMinorVersion;
85 OmniPvdVersionType mPatch;
87 OmniPvdCommandEnum::Enum mCmdType;
89 OmniPvdVersionType mCmdMajorVersion;
90 OmniPvdVersionType mCmdMinorVersion;
91 OmniPvdVersionType mCmdPatch;
93 OmniPvdContextHandle mCmdContextHandle;
94 OmniPvdObjectHandle mCmdObjectHandle;
96 uint32_t mCmdClassHandle;
97 uint32_t mCmdBaseClassHandle;
98 uint32_t mCmdAttributeHandle;
103 char mCmdClassName[1000];
104 char mCmdAttributeName[1000];
105 char mCmdObjectName[1000];
107 uint16_t mCmdClassNameLen;
108 uint16_t mCmdAttributeNameLen;
109 uint16_t mCmdObjectNameLen;
111 uint8_t* mCmdAttributeDataPtr;
112 OmniPvdAttributeDataType mCmdAttributeDataType;
113 uint32_t mCmdAttributeDataLen;
114 uint32_t mCmdAttributeNbrFields;
115 uint32_t mCmdEnumValue;
116 OmniPvdClassHandle mCmdEnumClassHandle;
117 OmniPvdClassHandle mCmdAttributeClassHandle;
119 OmniPvdAttributeHandle mCmdAttributeHandleStack[32];
120 uint8_t mCmdAttributeHandleDepth;
122 uint64_t mCmdFrameTimeStart;
123 uint64_t mCmdFrameTimeStop;
125 uint8_t *mDataBuffer;
126 uint32_t mDataBuffAllocatedLen;
128 bool mIsReadingStarted;
129 uint8_t mReadBaseClassHandle;
Definition OmniPvdLog.h:34
Used to abstract a memory read stream.
Definition OmniPvdReadStream.h:40
Definition OmniPvdReaderImpl.h:35
OmniPvdClassHandle OMNI_PVD_CALL getAttributeClassHandle()
Returns the numberclass handle of the attribute class.
Definition OmniPvdReaderImpl.cpp:377
uint8_t *OMNI_PVD_CALL getAttributeDataPointer()
Returns the attribute data pointer, the data is undefined if the last command did not contain attribu...
Definition OmniPvdReaderImpl.cpp:361
OmniPvdCommandEnum::Enum OMNI_PVD_CALL getCommandType()
Returns the command type as an enumerator of the latest command.
Definition OmniPvdReaderImpl.cpp:306
OmniPvdCommandEnum::Enum OMNI_PVD_CALL getNextCommand()
The heartbeat function of the reader class. As long as the command that is returned is not equal to O...
Definition OmniPvdReaderImpl.cpp:123
uint32_t OMNI_PVD_CALL getAttributeNumberElements()
Returns the number of elements contained in the last set operation.
Definition OmniPvdReaderImpl.cpp:373
bool OMNI_PVD_CALL startReading(OmniPvdVersionType *majorVersion, OmniPvdVersionType *minorVersion, OmniPvdVersionType *patch)
Extracts the versions from the binary file ro read and tests if the file is older or equal to that of...
Definition OmniPvdReaderImpl.cpp:65
OmniPvdVersionType OMNI_PVD_CALL getMajorVersion()
Returns the major version of the stream.
Definition OmniPvdReaderImpl.cpp:311
OmniPvdClassHandle OMNI_PVD_CALL getClassHandle()
Returns the class handle of the latest commmnd, if it had one, else 0.
Definition OmniPvdReaderImpl.cpp:331
void OMNI_PVD_CALL setLogFunction(OmniPvdLogFunction logFunction)
Sets the log function to print the internal debug messages of the OmniPVD Reader instance.
Definition OmniPvdReaderImpl.cpp:54
OmniPvdAttributeHandle OMNI_PVD_CALL getAttributeHandle()
Returns the attribute handle of the latest commmnd, if it had one, else 0.
Definition OmniPvdReaderImpl.cpp:341
OmniPvdContextHandle OMNI_PVD_CALL getContextHandle()
Returns the context handle of the latest commmnd, if it had one, else 0.
Definition OmniPvdReaderImpl.cpp:326
uint32_t OMNI_PVD_CALL getEnumValue()
Returns the enum value for a specific flag.
Definition OmniPvdReaderImpl.cpp:402
uint64_t OMNI_PVD_CALL getFrameTimeStop()
Returns the frame stop value.
Definition OmniPvdReaderImpl.cpp:393
char *OMNI_PVD_CALL getAttributeName()
Returns the attribute name of the latest commmnd, if it had one, else a null terminated string of len...
Definition OmniPvdReaderImpl.cpp:353
uint32_t OMNI_PVD_CALL getAttributeDataLength()
Returns the attribute data length, the data length of the last command.
Definition OmniPvdReaderImpl.cpp:369
OmniPvdVersionType OMNI_PVD_CALL getPatch()
Returns the patch number of the stream.
Definition OmniPvdReaderImpl.cpp:321
char *OMNI_PVD_CALL getClassName()
Returns the class name of the latest commmnd, if it had one, else a null terminated string of length ...
Definition OmniPvdReaderImpl.cpp:349
OmniPvdClassHandle OMNI_PVD_CALL getBaseClassHandle()
Returns the base class handle of the latest commmnd, if it had one, else 0.
Definition OmniPvdReaderImpl.cpp:336
OmniPvdVersionType OMNI_PVD_CALL getMinorVersion()
Returns the minor version of the stream.
Definition OmniPvdReaderImpl.cpp:316
OmniPvdClassHandle OMNI_PVD_CALL getEnumClassHandle()
Returns the class handle containing the enum values.
Definition OmniPvdReaderImpl.cpp:397
OmniPvdAttributeDataType OMNI_PVD_CALL getAttributeDataType()
Returns the attribute data type, the data is undefined if the last command did not contain attribute ...
Definition OmniPvdReaderImpl.cpp:365
char *OMNI_PVD_CALL getObjectName()
Returns the object name of the latest commmnd, if it had one, else a null terminated string of length...
Definition OmniPvdReaderImpl.cpp:357
void OMNI_PVD_CALL setReadStream(OmniPvdReadStream *stream)
Sets the read stream that contains the OmniPVD API command stream.
Definition OmniPvdReaderImpl.cpp:59
OmniPvdObjectHandle OMNI_PVD_CALL getObjectHandle()
Returns the object handle of the latest commmnd, if it had one, else 0.
Definition OmniPvdReaderImpl.cpp:345
uint64_t OMNI_PVD_CALL getFrameTimeStart()
Returns the frame start value.
Definition OmniPvdReaderImpl.cpp:389
Used to read debug information from an OmniPvdReadStream.
Definition OmniPvdReader.h:45