Falcon::PropEntry Struct Reference

Descriptor of single property. More...

#include <proptable.h>

List of all members.

Public Types

enum  { NO_OFFSET = 0xFFFFFFFF }

Public Member Functions

bool isWriteOnly () const
 True if this property is write-only.
void reflectFrom (CoreObject *instance, void *user_data, Item &prop) const
 Reflects a single property.
void reflectTo (CoreObject *instance, void *user_data, const Item &prop) const
 Reflects a single property Item -> user_data.

Public Attributes

bool m_bReadOnly
 True if this property is read-only.
t_reflection m_eReflectMode
 Reflection mode.
const Stringm_name
 Name of this property.
union {
   struct {
      uint32   m_getterId
      uint32   m_setterId
   }   gs
   uint32   offset
   struct {
      reflectionFunc   from
      reflectionFunc   to
   }   rfunc
m_reflection
Item m_value
 Default value of the property.
void * reflect_data
 Module-specific property reflection data.


Detailed Description

Descriptor of single property.

This structure descrbes the contents of a single property; It also stores all the data needed for reflection.


Member Enumeration Documentation

anonymous enum

Enumerator:
NO_OFFSET 


Member Function Documentation

bool Falcon::PropEntry::isWriteOnly (  )  const [inline]

True if this property is write-only.

If this property is accessed via accessors, but has only the set accessor, it cannot be read back (not even at C++ level). Doing so would cause an access error (for write-only read access).

Returns:
true if this property is write-only.

References Falcon::e_reflectSetGet, m_eReflectMode, m_reflection, and NO_OFFSET.

void Falcon::PropEntry::reflectFrom ( CoreObject instance,
void *  user_data,
Item prop 
) const

Reflects a single property.

user_data -> Item

void Falcon::PropEntry::reflectTo ( CoreObject instance,
void *  user_data,
const Item prop 
) const

Reflects a single property Item -> user_data.


Member Data Documentation

struct { ... } Falcon::PropEntry::gs

True if this property is read-only.

Referenced by Falcon::PropertyTable::append().

Reflection mode.

Referenced by Falcon::PropertyTable::append(), and isWriteOnly().

Name of this property.

Referenced by Falcon::PropertyTable::appendSafe().

Default value of the property.

Referenced by Falcon::PropertyTable::append().

Module-specific property reflection data.

struct { ... } Falcon::PropEntry::rfunc


The documentation for this struct was generated from the following file:

Generated on Mon Oct 19 10:11:40 2009 for Falcon_Core by  doxygen 1.5.8