|
|
|
|
Documentation |
|
Main Page Namespace List Class Hierarchy Alphabetical List Compound List File List Namespace Members Compound Members File Members Related Pages Search
NLGEORGES::CFormElmStruct Class ReferenceDefine a structure of elements.
More...
#include <form_elm.h>
Inheritance diagram for NLGEORGES::CFormElmStruct:
List of all members.
Public Methods |
| CFormElmStruct (CForm *form, CFormElm *parentNode, const CFormDfn *parentDfn, uint parentIndex) |
| ~CFormElmStruct () |
void | clean () |
void | build (const CFormDfn *dfn) |
bool | isStruct () const |
| Return true if the element is a struct or a virtual struct. More...
|
bool | getStructSize (uint &size) const |
| Return the struct size. More...
|
bool | getStructNodeName (uint element, std::string &result) const |
| Return the element name. More...
|
bool | getStructNode (uint element, const UFormElm **result) const |
| Return a const element pointer. Can be NULL if the node doesn't exist. More...
|
bool | getStructNode (uint element, UFormElm **result) |
| Return a mutable element pointer. Can be NULL if the node doesn't exist. More...
|
bool | isUsed (const CForm *form) const |
xmlNodePtr | write (xmlNodePtr node, const CForm *form, const char *structName, bool forceWrite=false) const |
void | unlink (CFormElm *child) |
| Unlink a child. More...
|
void | getFormName (std::string &result, const CFormElm *child) const |
void | read (xmlNodePtr node, CFormLoader &loader, const CFormDfn *dfn, CForm *form) |
virtual void | warning (bool exception, const char *function, const char *format,...) const |
Public Attributes |
NLMISC::CSmartPtr< CFormDfn > | FormDfn |
std::vector< CFormElmStructElm > | Elements |
Detailed Description
Define a structure of elements.
This structure has pointers on named sub structures in Elements. If a sub structure is empty, its pointer is NULL.
Definition at line 259 of file form_elm.h.
Constructor & Destructor Documentation
NLGEORGES::CFormElmStruct::CFormElmStruct |
( |
CForm * |
form, |
|
|
CFormElm * |
parentNode, |
|
|
const CFormDfn * |
parentDfn, |
|
|
uint |
parentIndex |
|
) |
|
|
NLGEORGES::CFormElmStruct::~CFormElmStruct |
( |
|
) |
|
|
Member Function Documentation
void NLGEORGES::CFormElmStruct::build |
( |
const CFormDfn * |
dfn |
) |
|
|
void NLGEORGES::CFormElmStruct::clean |
( |
|
) |
|
|
void NLGEORGES::CFormElmStruct::getFormName |
( |
std::string & |
result, |
|
|
const CFormElm * |
child |
|
) |
const [virtual] |
|
bool NLGEORGES::CFormElmStruct::getStructNode |
( |
uint |
element, |
|
|
UFormElm ** |
result |
|
) |
[virtual] |
|
bool NLGEORGES::CFormElmStruct::getStructNode |
( |
uint |
element, |
|
|
const UFormElm ** |
result |
|
) |
const [virtual] |
|
bool NLGEORGES::CFormElmStruct::getStructNodeName |
( |
uint |
element, |
|
|
std::string & |
result |
|
) |
const [virtual] |
|
bool NLGEORGES::CFormElmStruct::getStructSize |
( |
uint & |
size |
) |
const [virtual] |
|
bool NLGEORGES::CFormElmStruct::isStruct |
( |
|
) |
const [virtual] |
|
bool NLGEORGES::CFormElmStruct::isUsed |
( |
const CForm * |
form |
) |
const [virtual] |
|
void NLGEORGES::CFormElmStruct::unlink |
( |
CFormElm * |
child |
) |
[virtual] |
|
void NLGEORGES::CFormElmStruct::warning |
( |
bool |
exception, |
|
|
const char * |
function, |
|
|
const char * |
format, |
|
|
... |
|
|
) |
const [virtual] |
|
xmlNodePtr NLGEORGES::CFormElmStruct::write |
( |
xmlNodePtr |
node, |
|
|
const CForm * |
form, |
|
|
const char * |
structName, |
|
|
bool |
forceWrite = false |
|
) |
const [virtual] |
|
Member Data Documentation
|
Definition at line 310 of file form_elm.h.
Referenced by build, clean, getFormName, getStructNode, getStructNodeName, getStructSize, isUsed, read, unlink, NLGEORGES::CFormElmVirtualStruct::write, and write. |
The documentation for this class was generated from the following files:
|
|