RavEngine
Loading...
Searching...
No Matches
OmniPvdReader Class Referenceabstract

Used to read debug information from an OmniPvdReadStream. More...

#include <OmniPvdReader.h>

Inheritance diagram for OmniPvdReader:
[legend]

Public Member Functions

virtual void OMNI_PVD_CALL setLogFunction (OmniPvdLogFunction logFunction)=0
 Sets the log function to print the internal debug messages of the OmniPVD Reader instance.
 
virtual void OMNI_PVD_CALL setReadStream (OmniPvdReadStream *stream)=0
 Sets the read stream that contains the OmniPVD API command stream.
 
virtual bool OMNI_PVD_CALL startReading (OmniPvdVersionType *majorVersion, OmniPvdVersionType *minorVersion, OmniPvdVersionType *patch)=0
 Extracts the versions from the binary file ro read and tests if the file is older or equal to that of the reader.
 
virtual OmniPvdCommandEnum::Enum OMNI_PVD_CALL getNextCommand ()=0
 The heartbeat function of the reader class. As long as the command that is returned is not equal to OmniPvdCommandEnum::eOmniPvdInvalid, then one can safely extract the data fields from the command.
 
virtual OmniPvdCommandEnum::Enum OMNI_PVD_CALL getCommandType ()=0
 Returns the command type as an enumerator of the latest command.
 
virtual OmniPvdVersionType OMNI_PVD_CALL getMajorVersion ()=0
 Returns the major version of the stream.
 
virtual OmniPvdVersionType OMNI_PVD_CALL getMinorVersion ()=0
 Returns the minor version of the stream.
 
virtual OmniPvdVersionType OMNI_PVD_CALL getPatch ()=0
 Returns the patch number of the stream.
 
virtual OmniPvdContextHandle OMNI_PVD_CALL getContextHandle ()=0
 Returns the context handle of the latest commmnd, if it had one, else 0.
 
virtual OmniPvdObjectHandle OMNI_PVD_CALL getObjectHandle ()=0
 Returns the object handle of the latest commmnd, if it had one, else 0.
 
virtual OmniPvdClassHandle OMNI_PVD_CALL getClassHandle ()=0
 Returns the class handle of the latest commmnd, if it had one, else 0.
 
virtual OmniPvdClassHandle OMNI_PVD_CALL getBaseClassHandle ()=0
 Returns the base class handle of the latest commmnd, if it had one, else 0.
 
virtual OmniPvdAttributeHandle OMNI_PVD_CALL getAttributeHandle ()=0
 Returns the attribute handle of the latest commmnd, if it had one, else 0.
 
virtual char *OMNI_PVD_CALL getClassName ()=0
 Returns the class name of the latest commmnd, if it had one, else a null terminated string of length 0.
 
virtual char *OMNI_PVD_CALL getAttributeName ()=0
 Returns the attribute name of the latest commmnd, if it had one, else a null terminated string of length 0.
 
virtual char *OMNI_PVD_CALL getObjectName ()=0
 Returns the object name of the latest commmnd, if it had one, else a null terminated string of length 0.
 
virtual uint8_t *OMNI_PVD_CALL getAttributeDataPointer ()=0
 Returns the attribute data pointer, the data is undefined if the last command did not contain attribute data.
 
virtual OmniPvdAttributeDataType OMNI_PVD_CALL getAttributeDataType ()=0
 Returns the attribute data type, the data is undefined if the last command did not contain attribute data.
 
virtual uint32_t OMNI_PVD_CALL getAttributeDataLength ()=0
 Returns the attribute data length, the data length of the last command.
 
virtual uint32_t OMNI_PVD_CALL getAttributeNumberElements ()=0
 Returns the number of elements contained in the last set operation.
 
virtual OmniPvdClassHandle OMNI_PVD_CALL getAttributeClassHandle ()=0
 Returns the numberclass handle of the attribute class.
 
virtual uint64_t OMNI_PVD_CALL getFrameTimeStart ()=0
 Returns the frame start value.
 
virtual uint64_t OMNI_PVD_CALL getFrameTimeStop ()=0
 Returns the frame stop value.
 
virtual OmniPvdClassHandle OMNI_PVD_CALL getEnumClassHandle ()=0
 Returns the class handle containing the enum values.
 
virtual uint32_t OMNI_PVD_CALL getEnumValue ()=0
 Returns the enum value for a specific flag.
 

Detailed Description

Used to read debug information from an OmniPvdReadStream.

Using the getNextCommand function in a while loop for example one can traverse the stream one command after another. Given the command, different functions below will be available.

Using the OmniPvdCommandEnum one can determine the type of command and like that use the appropriate get functions to extract the payload from the command.

Member Function Documentation

◆ getAttributeClassHandle()

virtual OmniPvdClassHandle OMNI_PVD_CALL OmniPvdReader::getAttributeClassHandle ( )
pure virtual

Returns the numberclass handle of the attribute class.

Returns
The attibute class handle

Implemented in OmniPvdReaderImpl.

◆ getAttributeDataLength()

virtual uint32_t OMNI_PVD_CALL OmniPvdReader::getAttributeDataLength ( )
pure virtual

Returns the attribute data length, the data length of the last command.

Returns
The attribute data length

Implemented in OmniPvdReaderImpl.

◆ getAttributeDataPointer()

virtual uint8_t *OMNI_PVD_CALL OmniPvdReader::getAttributeDataPointer ( )
pure virtual

Returns the attribute data pointer, the data is undefined if the last command did not contain attribute data.

Returns
The array containing the attribute data

Implemented in OmniPvdReaderImpl.

◆ getAttributeDataType()

virtual OmniPvdAttributeDataType OMNI_PVD_CALL OmniPvdReader::getAttributeDataType ( )
pure virtual

Returns the attribute data type, the data is undefined if the last command did not contain attribute data.

Returns
The attribute data type

Implemented in OmniPvdReaderImpl.

◆ getAttributeHandle()

virtual OmniPvdAttributeHandle OMNI_PVD_CALL OmniPvdReader::getAttributeHandle ( )
pure virtual

Returns the attribute handle of the latest commmnd, if it had one, else 0.

Returns
The attribute handle of the latest command

Implemented in OmniPvdReaderImpl.

◆ getAttributeName()

virtual char *OMNI_PVD_CALL OmniPvdReader::getAttributeName ( )
pure virtual

Returns the attribute name of the latest commmnd, if it had one, else a null terminated string of length 0.

Returns
The string containing the attribute name

Implemented in OmniPvdReaderImpl.

◆ getAttributeNumberElements()

virtual uint32_t OMNI_PVD_CALL OmniPvdReader::getAttributeNumberElements ( )
pure virtual

Returns the number of elements contained in the last set operation.

Returns
The number of elements

Implemented in OmniPvdReaderImpl.

◆ getBaseClassHandle()

virtual OmniPvdClassHandle OMNI_PVD_CALL OmniPvdReader::getBaseClassHandle ( )
pure virtual

Returns the base class handle of the latest commmnd, if it had one, else 0.

Returns
The base class handle of the latest command

Implemented in OmniPvdReaderImpl.

◆ getClassHandle()

virtual OmniPvdClassHandle OMNI_PVD_CALL OmniPvdReader::getClassHandle ( )
pure virtual

Returns the class handle of the latest commmnd, if it had one, else 0.

Returns
The class handle of the latest command

Implemented in OmniPvdReaderImpl.

◆ getClassName()

virtual char *OMNI_PVD_CALL OmniPvdReader::getClassName ( )
pure virtual

Returns the class name of the latest commmnd, if it had one, else a null terminated string of length 0.

Returns
The string containing the class name

Implemented in OmniPvdReaderImpl.

◆ getCommandType()

virtual OmniPvdCommandEnum::Enum OMNI_PVD_CALL OmniPvdReader::getCommandType ( )
pure virtual

Returns the command type as an enumerator of the latest command.

Returns
The latest command enum type

Implemented in OmniPvdReaderImpl.

◆ getContextHandle()

virtual OmniPvdContextHandle OMNI_PVD_CALL OmniPvdReader::getContextHandle ( )
pure virtual

Returns the context handle of the latest commmnd, if it had one, else 0.

Returns
The context handle of the latest command

Implemented in OmniPvdReaderImpl.

◆ getEnumClassHandle()

virtual OmniPvdClassHandle OMNI_PVD_CALL OmniPvdReader::getEnumClassHandle ( )
pure virtual

Returns the class handle containing the enum values.

Returns
The enum class handle

Implemented in OmniPvdReaderImpl.

◆ getEnumValue()

virtual uint32_t OMNI_PVD_CALL OmniPvdReader::getEnumValue ( )
pure virtual

Returns the enum value for a specific flag.

Returns
The enum value

Implemented in OmniPvdReaderImpl.

◆ getFrameTimeStart()

virtual uint64_t OMNI_PVD_CALL OmniPvdReader::getFrameTimeStart ( )
pure virtual

Returns the frame start value.

Returns
The frame ID value

Implemented in OmniPvdReaderImpl.

◆ getFrameTimeStop()

virtual uint64_t OMNI_PVD_CALL OmniPvdReader::getFrameTimeStop ( )
pure virtual

Returns the frame stop value.

Returns
The frame ID value

Implemented in OmniPvdReaderImpl.

◆ getMajorVersion()

virtual OmniPvdVersionType OMNI_PVD_CALL OmniPvdReader::getMajorVersion ( )
pure virtual

Returns the major version of the stream.

Returns
The major version

Implemented in OmniPvdReaderImpl.

◆ getMinorVersion()

virtual OmniPvdVersionType OMNI_PVD_CALL OmniPvdReader::getMinorVersion ( )
pure virtual

Returns the minor version of the stream.

Returns
The minor version

Implemented in OmniPvdReaderImpl.

◆ getNextCommand()

virtual OmniPvdCommandEnum::Enum OMNI_PVD_CALL OmniPvdReader::getNextCommand ( )
pure virtual

The heartbeat function of the reader class. As long as the command that is returned is not equal to OmniPvdCommandEnum::eOmniPvdInvalid, then one can safely extract the data fields from the command.

Returns
The command enum type

Implemented in OmniPvdReaderImpl.

◆ getObjectHandle()

virtual OmniPvdObjectHandle OMNI_PVD_CALL OmniPvdReader::getObjectHandle ( )
pure virtual

Returns the object handle of the latest commmnd, if it had one, else 0.

Returns
The object handle of the latest command

Implemented in OmniPvdReaderImpl.

◆ getObjectName()

virtual char *OMNI_PVD_CALL OmniPvdReader::getObjectName ( )
pure virtual

Returns the object name of the latest commmnd, if it had one, else a null terminated string of length 0.

Returns
The string containing the object name

Implemented in OmniPvdReaderImpl.

◆ getPatch()

virtual OmniPvdVersionType OMNI_PVD_CALL OmniPvdReader::getPatch ( )
pure virtual

Returns the patch number of the stream.

Returns
The patch value

Implemented in OmniPvdReaderImpl.

◆ setLogFunction()

virtual void OMNI_PVD_CALL OmniPvdReader::setLogFunction ( OmniPvdLogFunction  logFunction)
pure virtual

Sets the log function to print the internal debug messages of the OmniPVD Reader instance.

Parameters
logFunctionThe function pointer to receive the log messages

Implemented in OmniPvdReaderImpl.

◆ setReadStream()

virtual void OMNI_PVD_CALL OmniPvdReader::setReadStream ( OmniPvdReadStream *  stream)
pure virtual

Sets the read stream that contains the OmniPVD API command stream.

Parameters
streamThe OmniPvdReadStream that holds the stream of API calls/notifications

Implemented in OmniPvdReaderImpl.

◆ startReading()

virtual bool OMNI_PVD_CALL OmniPvdReader::startReading ( OmniPvdVersionType *  majorVersion,
OmniPvdVersionType *  minorVersion,
OmniPvdVersionType *  patch 
)
pure virtual

Extracts the versions from the binary file ro read and tests if the file is older or equal to that of the reader.

Parameters
majorVersionThe major versions of the stream
minorVersionThe minor versions of the stream
patchThe patch number of the stream
Returns
If the reading was possible to start or not

Implemented in OmniPvdReaderImpl.


The documentation for this class was generated from the following file: