NLGEORGES::UType Class Reference

#include <u_type.h>

Inheritance diagram for NLGEORGES::UType:

NLMISC::CRefCount NLGEORGES::CType

Detailed Description

Georges type interface

Author:
Cyril 'Hulud' Corvazier

Nevrax France

Date:
2002

Definition at line 42 of file u_type.h.

Public Types

enum  TType {
  UnsignedInt = 0, SignedInt, Double, String,
  Color, TypeCount
}

Public Member Functions

virtual const std::string & getComment () const=0
virtual const std::string & getDefault () const=0
virtual bool getDefinition (uint index, std::string &label, std::string &value) const=0
virtual void getDependencies (std::set< std::string > &dependencies) const=0
virtual const std::string & getIncrement () const=0
virtual const std::string & getMax () const=0
virtual const std::string & getMin () const=0
virtual uint getNumDefinition () const=0
const sintgetRefCount () const
virtual TType getType () const=0
virtual ~UType ()

Data Fields

sint crefs
CPtrInfo * pinfo

Static Public Attributes

CPtrInfo NullPtrInfo

Friends

struct CPtrInfo


Member Enumeration Documentation

enum NLGEORGES::UType::TType
 

Enumeration values:
UnsignedInt 
SignedInt 
Double 
String 
Color 
TypeCount 

Definition at line 49 of file u_type.h.

00050         {
00051                 UnsignedInt=0,
00052                 SignedInt,
00053                 Double,
00054                 String,
00055                 Color,
00056                 TypeCount
00057         };


Constructor & Destructor Documentation

virtual NLGEORGES::UType::~UType  )  [inline, virtual]
 

Definition at line 46 of file u_type.h.

00046 { }


Member Function Documentation

virtual const std::string& NLGEORGES::UType::getComment  )  const [pure virtual]
 

Get theh comments of type.

Implemented in NLGEORGES::CType.

virtual const std::string& NLGEORGES::UType::getDefault  )  const [pure virtual]
 

Get the default value of this type.

Implemented in NLGEORGES::CType.

virtual bool NLGEORGES::UType::getDefinition uint  index,
std::string &  label,
std::string &  value
const [pure virtual]
 

Get a definition for this type.

index is the index of the defnition you want to get. If the method returns true, label will be filled with the definition label and value will be filled with the defnition value. The method returns false if the index is invalid. In this case, label and value are not changed.

Implemented in NLGEORGES::CType.

virtual void NLGEORGES::UType::getDependencies std::set< std::string > &  dependencies  )  const [pure virtual]
 

Get dependency files

Implemented in NLGEORGES::CType.

virtual const std::string& NLGEORGES::UType::getIncrement  )  const [pure virtual]
 

Get the increment value of this type.

Implemented in NLGEORGES::CType.

virtual const std::string& NLGEORGES::UType::getMax  )  const [pure virtual]
 

Get the max value of this type.

Implemented in NLGEORGES::CType.

virtual const std::string& NLGEORGES::UType::getMin  )  const [pure virtual]
 

Get the min value of this type.

Implemented in NLGEORGES::CType.

virtual uint NLGEORGES::UType::getNumDefinition  )  const [pure virtual]
 

Get the definition count for this type.

Implemented in NLGEORGES::CType.

const sint& NLMISC::CRefCount::getRefCount  )  const [inline, inherited]
 

Definition at line 70 of file smart_ptr.h.

References NLMISC::CRefCount::crefs, and sint.

00071         {
00072                 return  crefs;
00073         }

virtual TType NLGEORGES::UType::getType  )  const [pure virtual]
 

Get the type of this type.

Implemented in NLGEORGES::CType.


Friends And Related Function Documentation

friend struct CPtrInfo [friend, inherited]
 

Definition at line 67 of file smart_ptr.h.


Field Documentation

sint NLMISC::CRefCount::crefs [mutable, inherited]
 

Definition at line 79 of file smart_ptr.h.

Referenced by NLMISC::CRefCount::CRefCount(), NLMISC::CRefCount::getRefCount(), and NLMISC::CRefCount::~CRefCount().

CRefCount::CPtrInfo NLMISC::CRefCount::NullPtrInfo [static, inherited]
 

Referenced by NLMISC::CRefCount::CRefCount().

CPtrInfo* NLMISC::CRefCount::pinfo [mutable, inherited]
 

Definition at line 80 of file smart_ptr.h.

Referenced by NLMISC::CRefCount::CRefCount(), and NLMISC::CRefCount::~CRefCount().


The documentation for this class was generated from the following file:
Generated on Tue Mar 16 12:47:07 2004 for NeL by doxygen 1.3.6