Raytrix Light Field SDK  v3.0
Logo
 All Classes Namespaces Functions Variables Typedefs Enumerations Enumerator Properties Events Groups Pages
Rx::FileIO::CRxGFFReader Class Reference

Detailed Description

Raytrix General File Format Reader.

Public Member Functions

 CRxGFFReader ()
 Default constructor. More...
 
 ~CRxGFFReader ()
 Destructor. More...
 
void Close ()
 Closes the file read operation. More...
 
size_t CountContentNodes (const CRxString &sxXPath) const
 Count nodes. More...
 
unsigned GetVersion () const
 
bool Open (const CRxString &sxFilename, const CRxString &sxGUID)
 Open a file in read mode. More...
 
void ReadContent (Rx::Interop::Runtime28::IImage *pxImg, const CRxString &sxXPath)
 

Protected Attributes

xmlDocPtr m_pXML
 
xmlNodePtr m_pXmlContentNode
 
xmlNodePtr m_pXmlMetaNode
 
unsigned m_uHeaderLength
 
CFileStream m_xFile
 

Constructor & Destructor Documentation

Rx::FileIO::CRxGFFReader::CRxGFFReader ( )

Default constructor.

Rx::FileIO::CRxGFFReader::~CRxGFFReader ( )

Destructor.

Member Function Documentation

void Rx::FileIO::CRxGFFReader::Close ( )

Closes the file read operation.

size_t Rx::FileIO::CRxGFFReader::CountContentNodes ( const CRxString sxXPath) const

Count nodes.

Parameters
sxXPathXPath.
Returns
The total number of nodes.
unsigned Rx::FileIO::CRxGFFReader::GetVersion ( ) const
bool Rx::FileIO::CRxGFFReader::Open ( const CRxString sxFilename,
const CRxString sxGUID 
)

Open a file in read mode.

Parameters
sxFilenameFilename.
sxGUIDGUID of the file type.
Returns
True if file has given GUID, false if not, exception on error.
void Rx::FileIO::CRxGFFReader::ReadContent ( Rx::Interop::Runtime28::IImage pxImg,
const CRxString sxXPath 
)

Member Data Documentation

xmlDocPtr Rx::FileIO::CRxGFFReader::m_pXML
protected
xmlNodePtr Rx::FileIO::CRxGFFReader::m_pXmlContentNode
protected
xmlNodePtr Rx::FileIO::CRxGFFReader::m_pXmlMetaNode
protected
unsigned Rx::FileIO::CRxGFFReader::m_uHeaderLength
protected
CFileStream Rx::FileIO::CRxGFFReader::m_xFile
protected