# Home    # nevrax.com   
Nevrax
Nevrax.org
#News
#Mailing-list
#Documentation
#CVS
#Bugs
#License
Docs
 
Documentation  
Main Page   Namespace List   Class Hierarchy   Alphabetical List   Compound List   File List   Namespace Members   Compound Members   File Members   Related Pages   Search  

NLGEORGES::CFormLoader Class Reference

Georges form loader implementation. More...

#include <form_loader.h>

Inheritance diagram for NLGEORGES::CFormLoader:

NLGEORGES::UFormLoader List of all members.

Public Methods

UFormloadForm (const char *filename)
 Load a form, use NMISC::CPath to find the file. More...

UFormDfnloadFormDfn (const char *filename)
 Load a DFN, use NMISC::CPath to find the file. More...

UTypeloadFormType (const char *filename)
 Load a type, use NMISC::CPath to find the file. More...

CTypeloadType (const char *filename)
CFormDfnloadFormDfn (const char *filename, bool forceLoad)

Private Types

typedef std::map< std::string,
NLMISC::CRefPtr< CType > > 
TTypeMap
typedef std::map< std::string,
NLMISC::CRefPtr< CFormDfn > > 
TFormDfnMap
typedef std::map< std::string,
NLMISC::CRefPtr< CForm > > 
TFormMap

Private Methods

virtual void warning (bool exception, const char *function, const char *format,...) const

Private Attributes

TTypeMap _MapType
TFormDfnMap _MapFormDfn
TFormMap _MapForm

Detailed Description

Georges form loader implementation.

Author:
Cyril 'Hulud' Corvazier , Nevrax France
Date:
2002

Definition at line 49 of file form_loader.h.


Member Typedef Documentation

typedef std::map<std::string, NLMISC::CRefPtr<CFormDfn> > NLGEORGES::CFormLoader::TFormDfnMap [private]
 

Definition at line 68 of file form_loader.h.

typedef std::map<std::string, NLMISC::CRefPtr<CForm> > NLGEORGES::CFormLoader::TFormMap [private]
 

Definition at line 69 of file form_loader.h.

typedef std::map<std::string, NLMISC::CRefPtr<CType> > NLGEORGES::CFormLoader::TTypeMap [private]
 

Definition at line 67 of file form_loader.h.


Member Function Documentation

UForm * NLGEORGES::CFormLoader::loadForm const char *    filename [virtual]
 

Load a form, use NMISC::CPath to find the file.

The pointer on the form must be held in a CSmartPtr<UForm>. Returns NULL if the form can't be loaded.

Implements NLGEORGES::UFormLoader.

Definition at line 205 of file form_loader.cpp.

References _MapForm, file, index, loadFormDfn, and warning.

CFormDfn * NLGEORGES::CFormLoader::loadFormDfn const char *    filename,
bool    forceLoad
 

Definition at line 139 of file form_loader.cpp.

References _MapFormDfn, file, and warning.

UFormDfn * NLGEORGES::CFormLoader::loadFormDfn const char *    filename [virtual]
 

Load a DFN, use NMISC::CPath to find the file.

The pointer on the form must be held in a CSmartPtr<UFormDfn>. Returns NULL if the DFN can't be loaded.

Implements NLGEORGES::UFormLoader.

Definition at line 302 of file form_loader.cpp.

Referenced by loadForm.

UType * NLGEORGES::CFormLoader::loadFormType const char *    filename [virtual]
 

Load a type, use NMISC::CPath to find the file.

The pointer on the form must be held in a CSmartPtr<UType>. Returns NULL if the type can't be loaded.

Implements NLGEORGES::UFormLoader.

Definition at line 309 of file form_loader.cpp.

References loadType.

CType * NLGEORGES::CFormLoader::loadType const char *    filename
 

Definition at line 69 of file form_loader.cpp.

References _MapType, file, NLMISC::toto, type, and warning.

Referenced by loadFormType.

void NLGEORGES::CFormLoader::warning bool    exception,
const char *    function,
const char *    format,
...   
const [private, virtual]
 

Definition at line 316 of file form_loader.cpp.

References format, and NLGEORGES::warning.

Referenced by loadForm, loadFormDfn, and loadType.


Member Data Documentation

TFormMap NLGEORGES::CFormLoader::_MapForm [private]
 

Definition at line 78 of file form_loader.h.

Referenced by loadForm.

TFormDfnMap NLGEORGES::CFormLoader::_MapFormDfn [private]
 

Definition at line 75 of file form_loader.h.

Referenced by loadFormDfn.

TTypeMap NLGEORGES::CFormLoader::_MapType [private]
 

Definition at line 72 of file form_loader.h.

Referenced by loadType.


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