|
|
|
|
Documentation |
|
Main Page Namespace List Class Hierarchy Alphabetical List Compound List File List Namespace Members Compound Members File Members Related Pages Search
NLGEORGES::CFormDfn Class ReferenceThis class is the defnition for a familly of from.
More...
#include <form_dfn.h>
Inheritance diagram for NLGEORGES::CFormDfn:
List of all members.
Public Methods |
| CFormDfn () |
void | write (xmlDocPtr root, const char *filename, bool georges4CVS) |
uint | countParentDfn (uint32 round=0xffffffff) const |
void | getParentDfn (std::vector< CFormDfn * > &array, uint32 round=0xffffffff) |
void | getParentDfn (std::vector< const CFormDfn * > &array, uint32 round=0xffffffff) const |
uint | getNumParent () const |
void | setNumParent (uint size) |
void | setParent (uint parent, CFormLoader &loader, const char *filename) |
CFormDfn * | getParent (uint parent) const |
const std::string & | getParentFilename (uint parent) const |
uint | getNumEntry () const |
| Return the number of entry in this DFN. More...
|
void | setNumEntry (uint size) |
const CEntry & | getEntry (uint entry) const |
CEntry & | getEntry (uint entry) |
bool | getEntryType (uint entry, TEntryType &type, bool &array) const |
| Return the entry type. More...
|
bool | getEntryName (uint entry, std::string &name) const |
| Return the entry name Doesn't look in parents DFN. More...
|
bool | getEntryDfn (uint entry, UFormDfn **dfn) |
| Return the entry DFN pointer Doesn't look in parents DFN. More...
|
bool | getEntryType (uint entry, UType **type) |
| Return the entry Type pointer Doesn't look in parents DFN. More...
|
uint | getNumParents () const |
| Get the number of parent DFN. More...
|
bool | getParent (uint parent, UFormDfn **parentRet) |
| Get a parent. More...
|
const std::string & | getComment () const |
| Get the comment. More...
|
bool | getEntryFilename (uint entry, std::string &filename) const |
| Return the filename of the type or the DFN. More...
|
bool | getParentFilename (uint parent, std::string &filename) const |
| Get a parent filename. More...
|
CFormDfn * | getSubDfn (uint index, uint &dfnIndex) |
const CFormDfn * | getSubDfn (uint index, uint &dfnIndex) const |
void | warning (bool exception, const char *function, const char *format,...) const |
Public Attributes |
CFileHeader | Header |
Private Methods |
void | read (xmlNodePtr doc, CFormLoader &loader, bool forceLoad, const char *filename) |
Private Attributes |
std::vector< CParent > | Parents |
std::vector< CEntry > | Entries |
uint32 | Round |
std::string | _Filename |
Friends |
class | CForm |
class | CType |
class | CFormElm |
class | CFormLoader |
class | CFormElmStruct |
bool | convertDfnFile (const char *oldFileName, const char *newFileName) |
Detailed Description
This class is the defnition for a familly of from.
Definition at line 46 of file form_dfn.h.
Constructor & Destructor Documentation
NLGEORGES::CFormDfn::CFormDfn |
( |
|
) |
[inline] |
|
Member Function Documentation
uint NLGEORGES::CFormDfn::countParentDfn |
( |
uint32 |
round = 0xffffffff |
) |
const |
|
const std::string & NLGEORGES::CFormDfn::getComment |
( |
|
) |
const [virtual] |
|
bool NLGEORGES::CFormDfn::getEntryDfn |
( |
uint |
entry, |
|
|
UFormDfn ** |
dfn |
|
) |
[virtual] |
|
bool NLGEORGES::CFormDfn::getEntryFilename |
( |
uint |
entry, |
|
|
std::string & |
filename |
|
) |
const [virtual] |
|
bool NLGEORGES::CFormDfn::getEntryName |
( |
uint |
entry, |
|
|
std::string & |
name |
|
) |
const [virtual] |
|
|
Return the entry name Doesn't look in parents DFN.
-
Parameters:
-
entry |
is the entry id to get the dfn pointer. |
name |
will be filled with the entry name. |
-
Returns:
-
true if successed, false if the entry doesn't exist.
Implements NLGEORGES::UFormDfn.
Definition at line 689 of file form_dfn.cpp.
References Entries, and warning. |
bool NLGEORGES::CFormDfn::getEntryType |
( |
uint |
entry, |
|
|
UType ** |
type |
|
) |
[virtual] |
|
bool NLGEORGES::CFormDfn::getEntryType |
( |
uint |
entry, |
|
|
TEntryType & |
type, |
|
|
bool & |
array |
|
) |
const [virtual] |
|
|
Return the entry type.
Doesn't look in parents DFN. -
Parameters:
-
entry |
is the entry id to get the type. |
type |
will be filled with the entry type. |
array |
is true if the entry is an array, else false. |
-
Returns:
-
true if successed, false if the entry doesn't exist.
Implements NLGEORGES::UFormDfn.
Definition at line 657 of file form_dfn.cpp.
References Entries, type, and warning. |
uint NLGEORGES::CFormDfn::getNumEntry |
( |
|
) |
const [virtual] |
|
uint NLGEORGES::CFormDfn::getNumParent |
( |
|
) |
const |
|
uint NLGEORGES::CFormDfn::getNumParents |
( |
|
) |
const [virtual] |
|
bool NLGEORGES::CFormDfn::getParent |
( |
uint |
parent, |
|
|
UFormDfn ** |
parentRet |
|
) |
[virtual] |
|
|
Get a parent.
-
Parameters:
-
entry |
is the entry id to get the dfn pointer. |
parent |
will be filled with the parent pointer. |
-
Returns:
-
true if successed, false if the parent doesn't exist.
Implements NLGEORGES::UFormDfn.
Definition at line 745 of file form_dfn.cpp.
References Parents, and warning. |
CFormDfn * NLGEORGES::CFormDfn::getParent |
( |
uint |
parent |
) |
const |
|
void NLGEORGES::CFormDfn::getParentDfn |
( |
std::vector< const CFormDfn * > & |
array, |
|
|
uint32 |
round = 0xffffffff |
|
) |
const |
|
void NLGEORGES::CFormDfn::getParentDfn |
( |
std::vector< CFormDfn * > & |
array, |
|
|
uint32 |
round = 0xffffffff |
|
) |
|
|
bool NLGEORGES::CFormDfn::getParentFilename |
( |
uint |
parent, |
|
|
std::string & |
filename |
|
) |
const [virtual] |
|
|
Get a parent filename.
-
Parameters:
-
entry |
is the entry id to get the dfn pointer. |
parent |
will be filled with the parent pointer. |
-
Returns:
-
true if successed, false if the parent doesn't exist.
Implements NLGEORGES::UFormDfn.
Definition at line 759 of file form_dfn.cpp.
References Parents, and warning. |
const string & NLGEORGES::CFormDfn::getParentFilename |
( |
uint |
parent |
) |
const |
|
const CFormDfn * NLGEORGES::CFormDfn::getSubDfn |
( |
uint |
index, |
|
|
uint & |
dfnIndex |
|
) |
const |
|
CFormDfn * NLGEORGES::CFormDfn::getSubDfn |
( |
uint |
index, |
|
|
uint & |
dfnIndex |
|
) |
|
|
void NLGEORGES::CFormDfn::read |
( |
xmlNodePtr |
doc, |
|
|
CFormLoader & |
loader, |
|
|
bool |
forceLoad, |
|
|
const char * |
filename |
|
) |
[private] |
|
void NLGEORGES::CFormDfn::setNumEntry |
( |
uint |
size |
) |
|
|
void NLGEORGES::CFormDfn::setNumParent |
( |
uint |
size |
) |
|
|
void NLGEORGES::CFormDfn::setParent |
( |
uint |
parent, |
|
|
CFormLoader & |
loader, |
|
|
const char * |
filename |
|
) |
|
|
void NLGEORGES::CFormDfn::warning |
( |
bool |
exception, |
|
|
const char * |
function, |
|
|
const char * |
format, |
|
|
... |
|
|
) |
const |
|
|
Definition at line 793 of file form_dfn.cpp.
References _Filename, format, and NLGEORGES::warning.
Referenced by countParentDfn, getEntryDfn, getEntryFilename, getEntryName, getEntryType, getParent, getParentDfn, getParentFilename, and read. |
void NLGEORGES::CFormDfn::write |
( |
xmlDocPtr |
root, |
|
|
const char * |
filename, |
|
|
bool |
georges4CVS |
|
) |
|
|
Friends And Related Function Documentation
friend class CForm [friend]
|
|
friend class CFormElm [friend]
|
|
friend class CFormElmStruct [friend]
|
|
friend class CFormLoader [friend]
|
|
bool convertDfnFile |
( |
const char * |
oldFileName, |
|
|
const char * |
newFileName |
|
) |
[friend] |
|
friend class CType [friend]
|
|
Member Data Documentation
std::string NLGEORGES::CFormDfn::_Filename [private]
|
|
std::vector<CEntry> NLGEORGES::CFormDfn::Entries [private]
|
|
std::vector<CParent> NLGEORGES::CFormDfn::Parents [private]
|
|
uint32 NLGEORGES::CFormDfn::Round [private]
|
|
The documentation for this class was generated from the following files:
|
|