ConsoleRuleFn Class Reference

#include <ConsoleRuleFn.h>

Inheritance diagram for ConsoleRuleFn:

ConsoleRule

List of all members.

Public Member Functions

 ConsoleRuleFn (const char *name, ConsoleRuleFnI *user, ConsoleRuleType type, bool write=false)
virtual ~ConsoleRuleFn ()
virtual void runRule (Console *console, const char *wholeLine, std::vector< ConsoleRuleValue > &values)

Protected Member Functions

void setValue (ConsoleRuleValue &split)
const char * getValue ()

Protected Attributes

ConsoleRuleFnIuser_
ConsoleRuleType type_


Detailed Description

Definition at line 42 of file ConsoleRuleFn.h.


Constructor & Destructor Documentation

ConsoleRuleFn::ConsoleRuleFn ( const char *  name,
ConsoleRuleFnI user,
ConsoleRuleType  type,
bool  write = false 
)

Definition at line 52 of file ConsoleRuleFn.cpp.

ConsoleRuleFn::~ConsoleRuleFn (  )  [virtual]

Definition at line 63 of file ConsoleRuleFn.cpp.


Member Function Documentation

void ConsoleRuleFn::runRule ( Console console,
const char *  wholeLine,
std::vector< ConsoleRuleValue > &  values 
) [virtual]

Implements ConsoleRule.

Definition at line 68 of file ConsoleRuleFn.cpp.

References Console::addLine(), getValue(), and setValue().

void ConsoleRuleFn::setValue ( ConsoleRuleValue split  )  [protected]

Definition at line 81 of file ConsoleRuleFn.cpp.

References ConsoleRuleTypeBoolean, ConsoleRuleTypeNumber, ConsoleRuleTypeString, ConsoleRule::name_, ConsoleRuleFnI::setBoolParam(), ConsoleRuleFnI::setNumberParam(), ConsoleRuleFnI::setStringParam(), type_, user_, ConsoleRuleValue::valueBool, ConsoleRuleValue::valueNumber, and ConsoleRuleValue::valueString.

Referenced by runRule().

const char * ConsoleRuleFn::getValue (  )  [protected]

Definition at line 96 of file ConsoleRuleFn.cpp.

References ConsoleRuleTypeBoolean, ConsoleRuleTypeNumber, ConsoleRuleTypeString, ConsoleRuleFnI::getBoolParam(), ConsoleRuleFnI::getNumberParam(), ConsoleRuleFnI::getStringParam(), ConsoleRule::name_, snprintf, type_, and user_.

Referenced by runRule().


Member Data Documentation

ConsoleRuleFnI* ConsoleRuleFn::user_ [protected]

Definition at line 57 of file ConsoleRuleFn.h.

Referenced by getValue(), and setValue().

ConsoleRuleType ConsoleRuleFn::type_ [protected]

Definition at line 58 of file ConsoleRuleFn.h.

Referenced by getValue(), and setValue().


The documentation for this class was generated from the following files:
Generated on Mon Feb 16 15:15:01 2009 for Scorched3D by  doxygen 1.5.3