Sourceforge.net - The VCF's Project Host
   The VCF Website Home   |   Online Discussion Forums   |   Sourceforge.net Project Page   

VCF::Field Class Reference

The Field class allows RTTI introspection to support member variables of a class. More...

#include <vcf/FoundationKit/Field.h>

List of all members.

Public Member Functions

 Field ()
 Field (const Field &rhs)
virtual ~Field ()
String getName ()
void setName (const String &name)
virtual Fieldclone ()=0
virtual uint32 getFieldSize ()=0
virtual String getFieldTypeName ()=0
virtual VariantDataget (Object *source)=0
virtual void set (Object *source, VariantData *data)=0
virtual void setSource (Object *source)
virtual void setSource (const Object *source)
VariantDataget ()
void set (VariantData *data)

Protected Attributes

String name_
Objectsource_


Detailed Description

The Field class allows RTTI introspection to support member variables of a class.

There are some limits on how it works though, due to some features of teh C++ langauge. At the very least you cannot use it with member variables whose type is itself a class that has operator& overloaded.


Constructor & Destructor Documentation

VCF::Field::Field  )  [inline]
 

VCF::Field::Field const Field rhs  )  [inline]
 

virtual VCF::Field::~Field  )  [inline, virtual]
 


Member Function Documentation

virtual Field* VCF::Field::clone  )  [pure virtual]
 

VariantData* VCF::Field::get  )  [inline]
 

virtual VariantData* VCF::Field::get Object source  )  [pure virtual]
 

virtual uint32 VCF::Field::getFieldSize  )  [pure virtual]
 

virtual String VCF::Field::getFieldTypeName  )  [pure virtual]
 

String VCF::Field::getName  )  [inline]
 

void VCF::Field::set VariantData data  )  [inline]
 

virtual void VCF::Field::set Object source,
VariantData data
[pure virtual]
 

void VCF::Field::setName const String name  )  [inline]
 

virtual void VCF::Field::setSource const Object source  )  [inline, virtual]
 

virtual void VCF::Field::setSource Object source  )  [inline, virtual]
 


Member Data Documentation

String VCF::Field::name_ [protected]
 

Object* VCF::Field::source_ [protected]
 


The documentation for this class was generated from the following file:
   Comments or Suggestions?    License Information