TypeValidator Class Reference

#include <typeValidators.h>

Inheritance diagram for TypeValidator:

Inheritance graph
[legend]
List of all members.

Public Member Functions

void consoleError (SimObject *object, const char *format,...)
 Prints a console error message for the validator.
virtual void validateType (SimObject *object, void *typePtr)=0
 validateType is called for each assigned value on the field this validator is attached to.

Public Attributes

S32 fieldIndex

Member Function Documentation

void TypeValidator::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 TypeValidator::validateType ( SimObject object,
void typePtr 
) [pure virtual]

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

Implemented in FRangeValidator, IRangeValidator, and IRangeValidatorScaled.


Member Data Documentation