Main Page | Namespace List | Class Hierarchy | Alphabetical List | Class List | File List | Namespace Members | Class Members | Related Pages

ConfigCallback Class Reference

#include <callback.h>

Inheritance diagram for ConfigCallback:

Inheritance graph
[legend]
List of all members.

Detailed Description

Callback interface for config change notifications To use a config change callback, derive from this class and implement interface method, and pass object of derived class to register method in configuration repository object.

Example:

class MyConfigCallbac : public ConfigCallback { public:

virtual void ConfigValueChange( const HashString &rstrKey ) { if( rstrKey == "mycommand" ) doSomething(); } };

MyConfigCallback kCallback; Config kConfig;

kConfig.RegisterCallback( &kCallback );
Your config callback will now be called every time a configuration value is changed in the repository.
Author:
Mattias Jansson <mattias@realityrift.com>


Public Member Functions

virtual void ConfigValueChange (const HashString &rstrKey)=0


Member Function Documentation

virtual void ConfigValueChange const HashString rstrKey  )  [pure virtual]
 

Called when a value change in configuration repository

Parameters:
rstrKey Key name


The documentation for this class was generated from the following file:
Generated on Wed Jan 21 14:21:10 2004 for NeoEngine by doxygen 1.3.5