RavEngine
Loading...
Searching...
No Matches
OmniPvdReader.h
1// Redistribution and use in source and binary forms, with or without
2// modification, are permitted provided that the following conditions
3// are met:
4// * Redistributions of source code must retain the above copyright
5// notice, this list of conditions and the following disclaimer.
6// * Redistributions in binary form must reproduce the above copyright
7// notice, this list of conditions and the following disclaimer in the
8// documentation and/or other materials provided with the distribution.
9// * Neither the name of NVIDIA CORPORATION nor the names of its
10// contributors may be used to endorse or promote products derived
11// from this software without specific prior written permission.
12//
13// THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS ''AS IS'' AND ANY
14// EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
15// IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR
16// PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT OWNER OR
17// CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL,
18// EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO,
19// PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR
20// PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY
21// OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
22// (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE
23// OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
24//
25// Copyright (c) 2008-2022 NVIDIA Corporation. All rights reserved.
26// Copyright (c) 2004-2008 AGEIA Technologies, Inc. All rights reserved.
27// Copyright (c) 2001-2004 NovodeX AG. All rights reserved.
28
29#ifndef OMNI_PVD_READER_H
30#define OMNI_PVD_READER_H
31
32#include "OmniPvdDefines.h"
33#include "OmniPvdCommands.h"
34#include "OmniPvdReadStream.h"
35
45{
46public:
47 virtual ~OmniPvdReader()
48 {
49 }
50
56 virtual void OMNI_PVD_CALL setLogFunction(OmniPvdLogFunction logFunction) = 0;
57
63 virtual void OMNI_PVD_CALL setReadStream(OmniPvdReadStream* stream) = 0;
64
73 virtual bool OMNI_PVD_CALL startReading(OmniPvdVersionType* majorVersion, OmniPvdVersionType* minorVersion, OmniPvdVersionType* patch) = 0;
74
80 virtual OmniPvdCommandEnum::Enum OMNI_PVD_CALL getNextCommand() = 0;
81
87 virtual OmniPvdCommandEnum::Enum OMNI_PVD_CALL getCommandType() = 0;
88
94 virtual OmniPvdVersionType OMNI_PVD_CALL getMajorVersion() = 0;
95
101 virtual OmniPvdVersionType OMNI_PVD_CALL getMinorVersion() = 0;
102
108 virtual OmniPvdVersionType OMNI_PVD_CALL getPatch() = 0;
109
115 virtual OmniPvdContextHandle OMNI_PVD_CALL getContextHandle() = 0;
116
122 virtual OmniPvdObjectHandle OMNI_PVD_CALL getObjectHandle() = 0;
123
129 virtual OmniPvdClassHandle OMNI_PVD_CALL getClassHandle() = 0;
130
136 virtual OmniPvdClassHandle OMNI_PVD_CALL getBaseClassHandle() = 0;
137
143 virtual OmniPvdAttributeHandle OMNI_PVD_CALL getAttributeHandle() = 0;
144
150 virtual char* OMNI_PVD_CALL getClassName() = 0;
151
157 virtual char* OMNI_PVD_CALL getAttributeName() = 0;
158
164 virtual char* OMNI_PVD_CALL getObjectName() = 0;
165
171 virtual uint8_t* OMNI_PVD_CALL getAttributeDataPointer() = 0;
172
178 virtual OmniPvdAttributeDataType OMNI_PVD_CALL getAttributeDataType() = 0;
179
185 virtual uint32_t OMNI_PVD_CALL getAttributeDataLength() = 0;
186
192 virtual uint32_t OMNI_PVD_CALL getAttributeNumberElements() = 0;
193
199 virtual OmniPvdClassHandle OMNI_PVD_CALL getAttributeClassHandle() = 0;
200
206 virtual uint64_t OMNI_PVD_CALL getFrameTimeStart() = 0;
207
213 virtual uint64_t OMNI_PVD_CALL getFrameTimeStop() = 0;
214
220 virtual OmniPvdClassHandle OMNI_PVD_CALL getEnumClassHandle() = 0;
221
227 virtual uint32_t OMNI_PVD_CALL getEnumValue() = 0;
228};
229
230#endif
Used to abstract a memory read stream.
Definition OmniPvdReadStream.h:40
Used to read debug information from an OmniPvdReadStream.
Definition OmniPvdReader.h:45
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 len...
virtual OmniPvdVersionType OMNI_PVD_CALL getMinorVersion()=0
Returns the minor version of the stream.
virtual uint64_t OMNI_PVD_CALL getFrameTimeStart()=0
Returns the frame start value.
virtual uint8_t *OMNI_PVD_CALL getAttributeDataPointer()=0
Returns the attribute data pointer, the data is undefined if the last command did not contain attribu...
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 ...
virtual OmniPvdContextHandle OMNI_PVD_CALL getContextHandle()=0
Returns the context handle of the latest commmnd, if it had one, else 0.
virtual OmniPvdAttributeDataType OMNI_PVD_CALL getAttributeDataType()=0
Returns the attribute data type, the data is undefined if the last command did not contain attribute ...
virtual uint64_t OMNI_PVD_CALL getFrameTimeStop()=0
Returns the frame stop value.
virtual OmniPvdCommandEnum::Enum OMNI_PVD_CALL getCommandType()=0
Returns the command type as an enumerator of the latest command.
virtual OmniPvdObjectHandle OMNI_PVD_CALL getObjectHandle()=0
Returns the object handle of the latest commmnd, if it had one, else 0.
virtual void OMNI_PVD_CALL setReadStream(OmniPvdReadStream *stream)=0
Sets the read stream that contains the OmniPVD API command stream.
virtual OmniPvdVersionType OMNI_PVD_CALL getPatch()=0
Returns the patch number of the stream.
virtual OmniPvdVersionType OMNI_PVD_CALL getMajorVersion()=0
Returns the major version of the stream.
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 OmniPvdAttributeHandle OMNI_PVD_CALL getAttributeHandle()=0
Returns the attribute handle of the latest commmnd, if it had one, else 0.
virtual OmniPvdClassHandle OMNI_PVD_CALL getEnumClassHandle()=0
Returns the class handle containing the enum values.
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 O...
virtual OmniPvdClassHandle OMNI_PVD_CALL getBaseClassHandle()=0
Returns the base class handle of the latest commmnd, if it had one, else 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...
virtual OmniPvdClassHandle OMNI_PVD_CALL getAttributeClassHandle()=0
Returns the numberclass handle of the attribute class.
virtual uint32_t OMNI_PVD_CALL getEnumValue()=0
Returns the enum value for a specific flag.
virtual OmniPvdClassHandle OMNI_PVD_CALL getClassHandle()=0
Returns the class handle of the latest commmnd, if it had one, else 0.
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 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...