[ Lit Window Library at SourceForge[ Lit Window Productions Homepage ]  [ wxWidgets Tips&Tricks ]  [  wxVisualSetup ]

Main Page | Modules | Namespace List | Class Hierarchy | Class List | Directories | File List | Namespace Members | Class Members | File Members | Related Pages

Data adapters


Classes

class  accessor
 Objects of this class allow read-write access to a single property. More...
class  aggregate
 Base implementation for an aggregate (non-const) of properties. More...
class  const_accessor
 Provides basic readonly access to objects of any kind. More...
class  const_aggregate
 Base implementation for a const aggregate of properties. More...
class  typed_accessor
 typed_accessor is an accessor with additional type information and get/set functions. More...
class  typed_const_accessor
 typed_const_accessor is a const_accessor with additional get/set functions that work with the actual type of the object. More...

Functions

const_accessor litwindow::const_accessor::clone () const
 Clone the underlying object.
accessor litwindow::const_cast_accessor (const const_accessor &access)
 returns an accessor for a const_accessor.
accessor litwindow::create_object (prop_t object_type)
void litwindow::destroy_object (accessor &a)
template<class Value>
typed_const_accessor< Value > litwindow::dynamic_cast_accessor (const const_accessor &p)
template<class Value>
typed_accessor< Value > litwindow::dynamic_cast_accessor (const accessor &p)
 Cast an accessor to a typed_accessor.
aggregate litwindow::accessor::get_aggregate () const
 get an aggregate accessor for this object.
const_aggregate litwindow::const_accessor::get_aggregate () const
 Return an aggregate accessor for this object.
template<class Value>
bool litwindow::is_type (const const_accessor &p)
 tests the type of the object pointed to by accessor p.
template<class Value>
accessor litwindow::make_accessor (Value &v)
 Create an accessor for an object.
template<class Value>
aggregate litwindow::make_aggregate (Value &v)
template<class Value>
const_accessor litwindow::make_const_accessor (const Value &v)
 Create a const_accessor for an object.
template<class Value>
const_aggregate litwindow::make_const_aggregate (Value &v)

Function Documentation

const_accessor clone  )  const [inherited]
 

This function allocates a new object on the heap and copies the contents of the current object to the new object.

Returns:
an accessor to the new object.
Note:
Call const_accessor::destroy when you no longer need the clone.

Reimplemented in accessor.

accessor const_cast_accessor const const_accessor &  access  ) 
 

Removes the const'ness. Similar to const_cast<>.

accessor create_object prop_t  object_type  ) 
 

void destroy_object accessor &  a  ) 
 

typed_const_accessor<Value> dynamic_cast_accessor const const_accessor &  p  ) 
 

typed_accessor<Value> dynamic_cast_accessor const accessor &  p  ) 
 

aggregate get_aggregate  )  const [inherited]
 

Reimplemented from const_accessor.

const_aggregate get_aggregate  )  const [inherited]
 

It is valid to call get_aggregate for an object that isn't an aggregate. If thats the case, const_aggregate::is_valid() will return false for the returned aggregate accessor.

Reimplemented in accessor.

bool is_type const const_accessor &  p  ) 
 

Returns:
true if the object is of type Value. is_type<int>(p) will return true if p is an accessor for an int object. Likewise is_type<string>(p) returns true if p is an accessor for a string object.

accessor make_accessor Value &  v  ) 
 

Returns:
an accessor pointing to the object passed as parameter v. accessor objects can read and write objects they point to.
Note:
This creates a pointer to the object. The object itself is not modified in any way. Its lifetime must be longer than the lifetime of the accessor.

aggregate make_aggregate Value &  v  ) 
 

const_accessor make_const_accessor const Value &  v  ) 
 

Returns:
a const_accessor pointing to the object passed as parameter v. const_accessor object can read, but not write the object they point to.
Note:
This creates a pointer to the object. The object itself is not modified in any way. Its lifetime must be longer than the lifetime of the accessor.

const_aggregate make_const_aggregate Value &  v  ) 
 


Copyright 2004, Hajo Kirchhoff, Lit Window Productions