OpenGLPrakt --> events --> cEvent --> cIntEvent

class cIntEvent
    extends cEvent as public

a cNamedEvent with a payload (an integer)

Source:
../src/cIntEvent.hh:19

Constructors Index

cIntEvent
[public] constructor which takes the event's name
cIntEvent
[public] copy constructor
~cIntEvent
[public] destructor


Variables Index

mValue
[protected] the integer to transport


Methods Index

Clone
[public] clone function
GetValue
[public] allow accessing the payload


Constructors

cIntEvent

public cIntEvent ( const string & name = "cIntEvent" ,
                   int value = 0 ) ;

constructor which takes the event's name

Parameters:
name string which contains the event's name
value value to transport

cIntEvent

public cIntEvent ( const cIntEvent & e ) ;

copy constructor

cIntEvent

public virtual ~ cIntEvent ( ) ;

destructor


Variables

mValue

protected int mValue

the integer to transport


Methods

Clone

public virtual cIntEvent * Clone ( ) const ;

clone function

Return:
pointer to new allocated cIntEvent

GetValue

public virtual int GetValue ( ) const ;

allow accessing the payload

Return:
transported value

This documentation was generated automatically by the ccdoc tool (version 0.7a).
Click here to submit a bug report or feature request.

Click here to return to the top of the page.