|
|
|
|
Documentation |
|
Main Page Namespace List Class Hierarchy Alphabetical List Compound List File List Namespace Members Compound Members File Members Related Pages Search
NLGEORGES::CType Class ReferenceThis class is a basic type used by atomic form element.
More...
#include <type.h>
Inheritance diagram for NLGEORGES::CType:
List of all members.
Public Types |
enum | TUI {
Edit,
EditSpin,
NonEditableCombo,
FileBrowser,
BigEdit,
ColorEdit,
UITypeCount
} |
Public Methods |
| CType () |
| ~CType () |
const std::string & | getDefault () const |
void | write (xmlDocPtr doc) const |
bool | getValue (std::string &result, const class CForm *form, const class CFormElmAtom *node, const class CFormDfn &parentDfn, uint parentIndex, bool evaluate, uint32 *where) const |
virtual TType | getType () const |
| Get the type. More...
|
Static Public Methods |
bool | uiCompatible (TType type, TUI ui) |
const char * | getTypeName (UType::TType type) |
const char * | getUIName (TUI type) |
Public Attributes |
CFileHeader | Header |
UType::TType | Type |
TUI | UIType |
std::string | Default |
std::string | Min |
std::string | Max |
std::string | Increment |
std::vector< CDefinition > | Definitions |
Private Methods |
void | read (xmlNodePtr root) |
Static Private Attributes |
const char * | TypeNames [] |
const char * | UITypeNames [] |
Friends |
class | CFormLoader |
Detailed Description
This class is a basic type used by atomic form element.
Definition at line 41 of file type.h.
Member Enumeration Documentation
enum NLGEORGES::CType::TUI
|
|
|
-
Enumeration values:
-
Edit |
|
EditSpin |
|
NonEditableCombo |
|
FileBrowser |
|
BigEdit |
|
ColorEdit |
|
UITypeCount |
|
Definition at line 50 of file type.h. |
Constructor & Destructor Documentation
NLGEORGES::CType::CType |
( |
|
) |
|
|
NLGEORGES::CType::~CType |
( |
|
) |
|
|
Member Function Documentation
const std::string& NLGEORGES::CType::getDefault |
( |
|
) |
const [inline] |
|
const char* NLGEORGES::CType::getTypeName |
( |
UType::TType |
type |
) |
[static] |
|
const char * NLGEORGES::CType::getUIName |
( |
TUI |
type |
) |
[static] |
|
bool NLGEORGES::CType::getValue |
( |
std::string & |
result, |
|
|
const class CForm * |
form, |
|
|
const class CFormElmAtom * |
node, |
|
|
const class CFormDfn & |
parentDfn, |
|
|
uint |
parentIndex, |
|
|
bool |
evaluate, |
|
|
uint32 * |
where |
|
) |
const |
|
void NLGEORGES::CType::read |
( |
xmlNodePtr |
root |
) |
[private] |
|
|
Definition at line 110 of file type.cpp.
References Default, Definitions, Edit, Header, Increment, Max, Min, nlassert, NLMISC::smprintf, Type, type, NLGEORGES::UType::TypeCount, TypeNames, uint, UIType, UITypeCount, and UITypeNames. |
bool NLGEORGES::CType::uiCompatible |
( |
TType |
type, |
|
|
TUI |
ui |
|
) |
[static] |
|
|
Definition at line 509 of file type.cpp.
References BigEdit, NLGEORGES::UType::Color, ColorEdit, NLGEORGES::UType::Double, Edit, EditSpin, FileBrowser, NonEditableCombo, NLGEORGES::UType::SignedInt, NLGEORGES::UType::String, type, and NLGEORGES::UType::UnsignedInt. |
void NLGEORGES::CType::write |
( |
xmlDocPtr |
doc |
) |
const |
|
|
Definition at line 61 of file type.cpp.
References Default, Definitions, Header, Increment, Max, Min, Type, TypeNames, uint, UIType, and UITypeNames. |
Friends And Related Function Documentation
friend class CFormLoader [friend]
|
|
Member Data Documentation
std::string NLGEORGES::CType::Default
|
|
std::string NLGEORGES::CType::Increment
|
|
std::string NLGEORGES::CType::Max
|
|
std::string NLGEORGES::CType::Min
|
|
const char * NLGEORGES::CType::TypeNames [static, private]
|
|
|
Initial value:
{
"UnsignedInt",
"SignedInt",
"Double",
"String",
"Color",
}
Definition at line 296 of file type.cpp.
Referenced by read, and write. |
TUI NLGEORGES::CType::UIType
|
|
const char * NLGEORGES::CType::UITypeNames [static, private]
|
|
|
Initial value:
{
"Edit",
"EditSpin",
"NonEditableCombo",
"FileBrowser",
"BigEdit",
"ColorEdit",
}
Definition at line 307 of file type.cpp.
Referenced by getUIName, read, and write. |
The documentation for this class was generated from the following files:
|
|