Torque2D Reference

- Main Page
- Related Pages
- Modules
- Namespaces
- Classes

- Class List
- Class Index
- Class Hierarchy
- Class Members

Public Member Functions | Public Attributes | List of all members
ConsoleTypeValidator Class Referenceabstract

`#include <ConsoleTypeValidators.h>`

Inheritance diagram for ConsoleTypeValidator:

## Public Member Functions
| ConsoleTypeValidator ()
virtual | ~ConsoleTypeValidator ()
void | consoleError (SimObject *object, const char *format,...)
virtual void | validateType (SimObject *object, void *typePtr)=0

## Public Attributes
S32 | fieldIndex

## Constructor & Destructor Documentation

ConsoleTypeValidator | ( |  | ) |
| inline

virtual ~ConsoleTypeValidator | ( |  | ) |
| inline virtual

## Member Function Documentation

void consoleError | ( | SimObject * | object,
|  | const char * | format,
|  |  | ...
| ) |  |

Prints a console error message for the validator.

The message is prefaced with with:

className objectName (objectId) - invalid value for fieldName: msg

virtual void validateType | ( | SimObject * | object,
|  | void * | typePtr
| ) |  |
| pure virtual

validateType is called for each assigned value on the field this validator is attached to.

Implemented in IRangeValidatorScaled, IRangeValidator, and FRangeValidator.

## Member Data Documentation

S32 fieldIndex

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

- console/ConsoleTypeValidators.h
- console/ConsoleTypeValidators.cc