CEL

Public API Reference

celPcCommon Class Reference

This is a common implementation for a property class from which all other property classes can inherit. More...

#include <celtool/stdpcimp.h>

Inheritance diagram for celPcCommon:

List of all members.

Protected Member Functions

void AddAction (int idx, const char *id)
 Helper function to setup an action.
void AddProperty (size_t idx, const char *id, celDataType type, bool readonly, const char *desc, void *prop)
 Helper function to setup properties.


Detailed Description

This is a common implementation for a property class from which all other property classes can inherit.

This makes it easier to write a property class.

Definition at line 87 of file stdpcimp.h.


Member Function Documentation

void celPcCommon::AddAction ( int  idx,
const char *  id 
) [inline, protected]

Helper function to setup an action.

Definition at line 115 of file stdpcimp.h.

void celPcCommon::AddProperty ( size_t  idx,
const char *  id,
celDataType  type,
bool  readonly,
const char *  desc,
void *  prop 
) [inline, protected]

Helper function to setup properties.

Parameters:
idx is a numerical index for the property starting at 0.
id is the id string ('cel.property.bla').
type is the type for the property.
readonly 
desc is the description.
pointer is the pointer of the field this property corresponds with or 0 if it requires manual intervention.

Definition at line 132 of file stdpcimp.h.


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

Generated for CEL: Crystal Entity Layer 1.4.0 by doxygen 1.5.8