NSXLoader::TXLoader Class Reference

This class loads X file and hierarchically stores its content. More...

#include <XLoader.h>

Inheritance diagram for NSXLoader::TXLoader:

Inheritance graph
[legend]
Collaboration diagram for NSXLoader::TXLoader:

Collaboration graph
[legend]
List of all members.

Public Member Functions

 TXLoader (void)
 Constructor.
 ~TXLoader (void)
 Destructor.
BOOL LoadFile (const TString &filename)
 Load X-file into this object.
DWORD GetFramesCount (void) const
 Returns number of Frames in top level of file.
const TXFrameGetFrame (DWORD index) const
 Returns pointer to frame or NULL if frame with specified index doesnt exist.
const TXFrameGetFrameByName (TString &frameName) const
 Returns frame with specified name or NULL if given frame doesn't exist.

Detailed Description

This class loads X file and hierarchically stores its content.

Definition at line 523 of file XLoader.h.


Constructor & Destructor Documentation

TXLoader::TXLoader void   ) 
 

Constructor.

Definition at line 338 of file XLoader.cpp.

TXLoader::~TXLoader void   ) 
 

Destructor.

Definition at line 344 of file XLoader.cpp.

References TFile::Close(), and TFile::IsOpened().

Here is the call graph for this function:


Member Function Documentation

const TXFrame* NSXLoader::TXLoader::GetFrame DWORD  index  )  const [inline]
 

Returns pointer to frame or NULL if frame with specified index doesnt exist.

Parameters:
index [in] index of specified frame in main level

Definition at line 548 of file XLoader.h.

References TArrayPtrs< T, size, step >::GetItem().

Here is the call graph for this function:

const TXFrame * TXLoader::GetFrameByName TString frameName  )  const
 

Returns frame with specified name or NULL if given frame doesn't exist.

Parameters:
frameName [in] name of frame to find

Definition at line 1524 of file XLoader.cpp.

References NSXLoader::TXFrame::GetFrameByName(), TArrayPtrs< T, size, step >::GetItem(), and TArrayPtrs< T, size, step >::GetSize().

Here is the call graph for this function:

DWORD NSXLoader::TXLoader::GetFramesCount void   )  const [inline]
 

Returns number of Frames in top level of file.

Definition at line 543 of file XLoader.h.

References TArrayPtrs< T, size, step >::GetSize().

Here is the call graph for this function:

BOOL TXLoader::LoadFile const TString filename  ) 
 

Load X-file into this object.

If loading is successfull TRUE is returned and information are stored inside this object. You can use public methods to getting this information.

THIS METHOD DO NOT USE VIRTUAL FILE SYSTEM (VFS) because it will be used only in tools and no in main applications.

Parameters:
filename [in] name of file in X-format to load

Definition at line 607 of file XLoader.cpp.

References TArrayPtrs< T, size, step >::Clear(), TFile::Close(), DBGTEXTF, FALSE, TFile::IsOpened(), and TFile::Open().

Here is the call graph for this function:


The documentation for this class was generated from the following files:
Generated on Wed Nov 28 23:10:22 2007 for Joy4D by  doxygen 1.4.6-NO