2005/5/9

     
 

class SysField

artefaktur
Modules   Namespace List   Class Hierarchy   Alphabetical List   Compound List   Namespace Members   Compound Members   Related Pages  

acdk::lang::dmi::SysField Class Reference

#include <SysFields.h>

List of all members.


Detailed Description

Representing internal accessor to classes fields.

Must not exported with ACDK_CORE_PUBLIC, because is template


Public Types

enum  FieldType {
  FT_Void, FT_Bool, FT_Char, FT_UcChar,
  FT_Byte, FT_Short, FT_Int, FT_JLong,
  FT_Float, FT_Double, FT_Object
}

Public Member Functions

ACDK_CORE_PUBLIC SysField ()
ACDK_CORE_PUBLIC SysField (ClazzFieldInfo *fi, const bool *ptr)
ACDK_CORE_PUBLIC SysField (ClazzFieldInfo *fi, const char *ptr)
ACDK_CORE_PUBLIC SysField (ClazzFieldInfo *fi, const ucchar *ptr)
ACDK_CORE_PUBLIC SysField (ClazzFieldInfo *fi, const byte *ptr)
ACDK_CORE_PUBLIC SysField (ClazzFieldInfo *fi, const short *ptr)
ACDK_CORE_PUBLIC SysField (ClazzFieldInfo *fi, const int *ptr)
ACDK_CORE_PUBLIC SysField (ClazzFieldInfo *fi, const jlong *ptr)
ACDK_CORE_PUBLIC SysField (ClazzFieldInfo *fi, const float *ptr)
ACDK_CORE_PUBLIC SysField (ClazzFieldInfo *fi, const double *ptr)
template<class T>  SysField (ClazzFieldInfo *fi, const RefHolder< T > *ptr, FieldType typ=FT_Object)
template<class T>  SysField (ClazzFieldInfo *fi, const InterfaceHolder< T > *ptr, FieldType typ=FT_Object)
ACDK_CORE_PUBLIC void set (bool val)
 this group set the the value in the field.

ACDK_CORE_PUBLIC void set (char val)
ACDK_CORE_PUBLIC void set (ucchar val)
ACDK_CORE_PUBLIC void set (byte val)
ACDK_CORE_PUBLIC void set (short val)
ACDK_CORE_PUBLIC void set (int val)
ACDK_CORE_PUBLIC void set (jlong val)
ACDK_CORE_PUBLIC void set (float val)
ACDK_CORE_PUBLIC void set (double val)
ACDK_CORE_PUBLIC void set (IN(RObject) val)
ACDK_CORE_PUBLIC ScriptVar getScriptVar (int flags)
ACDK_CORE_PUBLIC void setScriptVar (const ScriptVar &var)

Static Public Member Functions

ACDK_CORE_PUBLIC SysField getField (const ClazzFieldInfo *fieldinfo, ScriptVar &sv)

Public Attributes

FieldType type
FieldContent cont
ClazzFieldInfofieldInfo


Member Enumeration Documentation

enum acdk::lang::dmi::SysField::FieldType
 

Enumeration values:
FT_Void 
FT_Bool 
FT_Char 
FT_UcChar 
FT_Byte 
FT_Short 
FT_Int 
FT_JLong 
FT_Float 
FT_Double 
FT_Object 


Constructor & Destructor Documentation

ACDK_CORE_PUBLIC acdk::lang::dmi::SysField::SysField  )  [inline]
 

ACDK_CORE_PUBLIC acdk::lang::dmi::SysField::SysField ClazzFieldInfo fi,
const bool *  ptr
[inline]
 

ACDK_CORE_PUBLIC acdk::lang::dmi::SysField::SysField ClazzFieldInfo fi,
const char *  ptr
[inline]
 

ACDK_CORE_PUBLIC acdk::lang::dmi::SysField::SysField ClazzFieldInfo fi,
const ucchar ptr
[inline]
 

ACDK_CORE_PUBLIC acdk::lang::dmi::SysField::SysField ClazzFieldInfo fi,
const byte ptr
[inline]
 

ACDK_CORE_PUBLIC acdk::lang::dmi::SysField::SysField ClazzFieldInfo fi,
const short *  ptr
[inline]
 

ACDK_CORE_PUBLIC acdk::lang::dmi::SysField::SysField ClazzFieldInfo fi,
const int *  ptr
[inline]
 

ACDK_CORE_PUBLIC acdk::lang::dmi::SysField::SysField ClazzFieldInfo fi,
const jlong ptr
[inline]
 

ACDK_CORE_PUBLIC acdk::lang::dmi::SysField::SysField ClazzFieldInfo fi,
const float *  ptr
[inline]
 

ACDK_CORE_PUBLIC acdk::lang::dmi::SysField::SysField ClazzFieldInfo fi,
const double *  ptr
[inline]
 

template<class T>
acdk::lang::dmi::SysField::SysField ClazzFieldInfo fi,
const RefHolder< T > *  ptr,
FieldType  typ = FT_Object
[inline]
 

template<class T>
acdk::lang::dmi::SysField::SysField ClazzFieldInfo fi,
const InterfaceHolder< T > *  ptr,
FieldType  typ = FT_Object
[inline]
 


Member Function Documentation

ACDK_CORE_PUBLIC SysField acdk::lang::dmi::SysField::getField const ClazzFieldInfo fieldinfo,
ScriptVar sv
[static]
 

Returns:
an initialized SysField using ClazzFieldInfo as type and ScriptVar as value

ACDK_CORE_PUBLIC ScriptVar acdk::lang::dmi::SysField::getScriptVar int  flags  ) 
 

Returns:
the current field
Parameters:
flags can be MiAiOut [| Modifier::inParam ] to to retrieve LValue

ACDK_CORE_PUBLIC void acdk::lang::dmi::SysField::set IN(RObject val  ) 
 

ACDK_CORE_PUBLIC void acdk::lang::dmi::SysField::set double  val  ) 
 

ACDK_CORE_PUBLIC void acdk::lang::dmi::SysField::set float  val  ) 
 

ACDK_CORE_PUBLIC void acdk::lang::dmi::SysField::set jlong  val  ) 
 

ACDK_CORE_PUBLIC void acdk::lang::dmi::SysField::set int  val  ) 
 

ACDK_CORE_PUBLIC void acdk::lang::dmi::SysField::set short  val  ) 
 

ACDK_CORE_PUBLIC void acdk::lang::dmi::SysField::set byte  val  ) 
 

ACDK_CORE_PUBLIC void acdk::lang::dmi::SysField::set ucchar  val  ) 
 

ACDK_CORE_PUBLIC void acdk::lang::dmi::SysField::set char  val  ) 
 

ACDK_CORE_PUBLIC void acdk::lang::dmi::SysField::set bool  val  ) 
 

this group set the the value in the field.

if type is wrong or no instance pointer throws exception

ACDK_CORE_PUBLIC void acdk::lang::dmi::SysField::setScriptVar const ScriptVar var  ) 
 


Member Data Documentation

FieldContent acdk::lang::dmi::SysField::cont
 

ClazzFieldInfo* acdk::lang::dmi::SysField::fieldInfo
 

FieldType acdk::lang::dmi::SysField::type