Functions | |
| H3D_VALUE_EXCEPTION (const string, X3DFieldConversionError) | |
| H3D_VALUE_EXCEPTION (const string, UnimplementedConversionType) | |
| const char * | skipWhitespaces (const char *s) |
| Skip whitespaces at the beginning of a string. | |
| const char * | skipWhitespacesAndCommas (const char *s) |
| Skip whitespaces and commas at the beginning of a string. | |
| string | getQuoteEnclosedStringValue (const char *s, const char *&rest) |
| Works the same way as getValue<string>() but with the exception that the string given is within double quotes. | |
| template<class Type> | |
| Type | getValue (const char *s, const char *&rest) |
| Function that reads characters from a char * and converts them to a given type. | |
| template<> | |
| string | getValue< string > (const char *s, const char *&rest) |
| Template specialization to handle the type 'string'. | |
| template<> | |
| bool | getValue< bool > (const char *s, const char *&rest) |
| Template specialization to handle the type 'bool'. | |
| template<> | |
| double | getValue< double > (const char *s, const char *&rest) |
| Template specialization to handle the type 'double'. | |
| template<> | |
| float | getValue< float > (const char *s, const char *&rest) |
| Template specialization to handle the type 'float'. | |
| template<> | |
| int | getValue< int > (const char *s, const char *&rest) |
| Template specialization to handle the type 'int'. | |
| template<> | |
| RGB | getValue< RGB > (const char *s, const char *&rest) |
| Template specialization to handle the type 'RGB'. | |
| template<> | |
| RGBA | getValue< RGBA > (const char *s, const char *&rest) |
| Template specialization to handle the type 'RGBA'. | |
| template<> | |
| Rotation | getValue< Rotation > (const char *s, const char *&rest) |
| Template specialization to handle the type 'Rotation'. | |
| template<> | |
| Quaternion | getValue< Quaternion > (const char *s, const char *&rest) |
| Template specialization to handle the type 'Quaternion'. | |
| template<> | |
| Matrix4f | getValue< Matrix4f > (const char *s, const char *&rest) |
| Template specialization to handle the type 'Matrix4f'. | |
| template<> | |
| Matrix3f | getValue< Matrix3f > (const char *s, const char *&rest) |
| Template specialization to handle the type 'Matrix3f'. | |
| template<> | |
| Matrix4d | getValue< Matrix4d > (const char *s, const char *&rest) |
| Template specialization to handle the type 'Matrix4d'. | |
| template<> | |
| Matrix3d | getValue< Matrix3d > (const char *s, const char *&rest) |
| Template specialization to handle the type 'Matrix3f'. | |
| template<> | |
| Vec4f | getValue< Vec4f > (const char *s, const char *&rest) |
| Template specialization to handle the type 'Vec4f'. | |
| template<> | |
| Vec4d | getValue< Vec4d > (const char *s, const char *&rest) |
| Template specialization to handle the type 'Vec4d'. | |
| template<> | |
| Vec3f | getValue< Vec3f > (const char *s, const char *&rest) |
| Template specialization to handle the type 'Vec3f'. | |
| template<> | |
| Vec3d | getValue< Vec3d > (const char *s, const char *&rest) |
| Template specialization to handle the type 'Vec3d'. | |
| template<> | |
| Vec2f | getValue< Vec2f > (const char *s, const char *&rest) |
| Template specialization to handle the type 'Vec2f'. | |
| template<> | |
| Vec2d | getValue< Vec2d > (const char *s, const char *&rest) |
| Template specialization to handle the type 'Vec2d'. | |
| unsigned char * | readImageData (const char *s, int width, int height, int depth, int nr_components) |
|
||||||||||||
|
Works the same way as getValue<string>() but with the exception that the string given is within double quotes. The resulting value will be the string inside the quotes. |
|
||||||||||||||||
|
Function that reads characters from a char * and converts them to a given type. It will use as many characters from the char * as possible to build the value. Used by H3D::X3D::X3DStringToVector and H3D::X3D::X3DStringToValue to read values. The default implementation just returns an exception. Each type that is supported must have a template specialization handling it.
|
|
||||||||||||||||
|
Template specialization to handle the type 'bool'.
|
|
||||||||||||||||
|
Template specialization to handle the type 'double'.
|
|
||||||||||||||||
|
Template specialization to handle the type 'float'.
|
|
||||||||||||||||
|
Template specialization to handle the type 'int'.
|
|
||||||||||||||||
|
Template specialization to handle the type 'Matrix3f'.
|
|
||||||||||||||||
|
Template specialization to handle the type 'Matrix3f'.
|
|
||||||||||||||||
|
Template specialization to handle the type 'Matrix4d'.
|
|
||||||||||||||||
|
Template specialization to handle the type 'Matrix4f'.
|
|
||||||||||||||||
|
Template specialization to handle the type 'Quaternion'.
|
|
||||||||||||||||
|
Template specialization to handle the type 'RGB'.
|
|
||||||||||||||||
|
Template specialization to handle the type 'RGBA'.
|
|
||||||||||||||||
|
Template specialization to handle the type 'Rotation'.
|
|
||||||||||||||||
|
Template specialization to handle the type 'string'.
|
|
||||||||||||||||
|
Template specialization to handle the type 'Vec2d'.
|
|
||||||||||||||||
|
Template specialization to handle the type 'Vec2f'.
|
|
||||||||||||||||
|
Template specialization to handle the type 'Vec3d'.
|
|
||||||||||||||||
|
Template specialization to handle the type 'Vec3f'.
|
|
||||||||||||||||
|
Template specialization to handle the type 'Vec4d'.
|
|
||||||||||||||||
|
Template specialization to handle the type 'Vec4f'.
|
|
|
Skip whitespaces at the beginning of a string.
|
|
|
Skip whitespaces and commas at the beginning of a string.
|
1.4.5