# 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::CType Class Reference

This class is a basic type used by atomic form element. More...

#include <type.h>

Inheritance diagram for NLGEORGES::CType:

NLGEORGES::UType NLMISC::CRefCount 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< CDefinitionDefinitions

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  
 

Definition at line 46 of file type.cpp.

References Edit, Type, UIType, and NLGEORGES::UType::UnsignedInt.

NLGEORGES::CType::~CType  
 

Definition at line 54 of file type.cpp.


Member Function Documentation

const std::string& NLGEORGES::CType::getDefault   const [inline]
 

Definition at line 65 of file type.h.

References Default.

UType::TType NLGEORGES::CType::getType   const [virtual]
 

Get the type.

Implements NLGEORGES::UType.

Definition at line 502 of file type.cpp.

References Type.

const char* NLGEORGES::CType::getTypeName UType::TType    type [static]
 

const char * NLGEORGES::CType::getUIName TUI    type [static]
 

Definition at line 326 of file type.cpp.

References type, and UITypeNames.

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]
 

Definition at line 43 of file type.h.


Member Data Documentation

std::string NLGEORGES::CType::Default
 

Definition at line 83 of file type.h.

Referenced by getDefault, read, and write.

std::vector<CDefinition> NLGEORGES::CType::Definitions
 

Definition at line 110 of file type.h.

Referenced by read, and write.

CFileHeader NLGEORGES::CType::Header
 

Definition at line 74 of file type.h.

Referenced by read, and write.

std::string NLGEORGES::CType::Increment
 

Definition at line 92 of file type.h.

Referenced by read, and write.

std::string NLGEORGES::CType::Max
 

Definition at line 89 of file type.h.

Referenced by read, and write.

std::string NLGEORGES::CType::Min
 

Definition at line 86 of file type.h.

Referenced by read, and write.

UType::TType NLGEORGES::CType::Type
 

Definition at line 77 of file type.h.

Referenced by CType, getType, read, and write.

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
 

Definition at line 80 of file type.h.

Referenced by CType, read, and write.

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: