28 #ifndef __TYPEDFIELD_H__
29 #define __TYPEDFIELD_H__
35 using namespace TypedFieldTypeCheck;
81 template<
class BaseField,
82 class RequiredArgTypes,
83 class OptionalArgTypes =
void >
88 checkTemplateArguments();
91 s << e <<
" in definition of field named \"" << this->getFullName()
108 TypedFieldCheck< RequiredArgTypes,
109 OptionalArgTypes >::checkFieldType( f, index, 0 );
113 <<
"\". Destination field: \"" << this->getFullName()
125 TypedFieldCheck< RequiredArgTypes,
126 OptionalArgTypes >::checkTemplateArguments();
Contains a lot of help template classes for checking the types of a field given a TypedField template...
The Field class.
Definition: Field.h:46
string getFullName()
Get the full name of the field including the name of the owner node if it exists (ownername....
Definition: Field.cpp:406
An exception thrown when the field does not conform to the type specification from a TypedField.
Definition: TypedFieldCheck.h:45
InvalidTemplateArguments An exception thrown when the template argument list does not follow the rule...
Definition: TypedFieldCheck.h:57
A template modifier class for adding type checking on the routes to any Field class.
Definition: TypedField.h:84
void checkTemplateArguments()
Function for checking that a field given TypedField type specification is valid.
Definition: TypedField.h:124
void checkFieldType(Field *f, int index)
Function for checking that a field is of a correct type given type specification according to the Typ...
Definition: TypedField.h:106
H3D API namespace.
Definition: Anchor.h:38