![]() |
VR-Link API Documentation for HLA 1516
|
Go to the source code of this file.
Classes | |
| struct | _NativeTypeToArg< T > |
| struct | DtVarType< T > |
| A template function for providing the necessary conversion functions for native types to the command line and environment. More... | |
Defines | |
| #define | DtDeclareVarType(NativeType, CmdLineType) |
| #define | DtDefineVarTypeNames(NativeType, ArgNameStr, xsTypeStr) |
| #define | DtDefineVarTypeArgFunctions(NativeType, ToStrFunction, FromStrFunction, ToArgFunction, FromArgFunction) |
| #define | DtDefineVarTypeEnvFunctions(NativeType, SchemaTypeFunction, ToEnvironmentFunction, FromEnvironmentFunction) |
| #define DtDeclareVarType | ( | NativeType, | |
| CmdLineType | |||
| ) |
template <>\ struct _NativeTypeToArg<NativeType>\ {\ typedef CmdLineType Type;\ };\ template <>\ DtString DtVarType<NativeType>::nativeNameOfType();\ template <>\ DtString DtVarType<NativeType>::argNameOfType();\ template <>\ DtString DtVarType<NativeType>::xsNameOfType();\ template <>\ DtVarType<NativeType>::ArgType DtVarType<NativeType>::convertToArgType(NativeType);\ template <>\ NativeType DtVarType<NativeType>::convertFromArgType(DtVarType<NativeType>::ArgType);\ template <>\ DtString DtVarType<NativeType>::convertToString(NativeType);\ template <>\ NativeType DtVarType<NativeType>::convertFromString(const DtString&);\ template <>\ DtEnvValueSP DtVarType<NativeType>::createSchemaType(DtEnvironment);\ template <>\ void DtVarType<NativeType>::convertToEnvironmentValue(DtEnvironment env,NativeType value);\ template <>\ NativeType DtVarType<NativeType>::convertFromEnvironmentValue(DtEnvironment env);\
| #define DtDefineVarTypeArgFunctions | ( | NativeType, | |
| ToStrFunction, | |||
| FromStrFunction, | |||
| ToArgFunction, | |||
| FromArgFunction | |||
| ) |
template<>\ DtVarType<NativeType>::ArgType DtVarType<NativeType>::convertToArgType(NativeType value)\ {\ return ToArgFunction;\ }\ template<>\ NativeType DtVarType<NativeType>::convertFromArgType(DtVarType<NativeType>::ArgType value)\ {\ return FromArgFunction;\ }\ template<>\ DtString DtVarType<NativeType>::convertToString(NativeType value)\ {\ return ToStrFunction;\ }\ template<>\ NativeType DtVarType<NativeType>::convertFromString(const DtString& value)\ {\ return FromStrFunction;\ }
| #define DtDefineVarTypeEnvFunctions | ( | NativeType, | |
| SchemaTypeFunction, | |||
| ToEnvironmentFunction, | |||
| FromEnvironmentFunction | |||
| ) |
template <>\ DtEnvValueSP DtVarType<NativeType>::createSchemaType(DtEnvironment env)\ {\ return SchemaTypeFunction;\ }\ template <>\ void DtVarType<NativeType>::convertToEnvironmentValue(DtEnvironment env,NativeType value)\ {\ ToEnvironmentFunction;\ }\ template <>\ NativeType DtVarType<NativeType>::convertFromEnvironmentValue(DtEnvironment env)\ {\ return FromEnvironmentFunction;\ }\
| #define DtDefineVarTypeNames | ( | NativeType, | |
| ArgNameStr, | |||
| xsTypeStr | |||
| ) |
template<>\ DtString DtVarType<NativeType>::nativeNameOfType()\ {\ return #NativeType;\ };\ template<>\ DtString DtVarType<NativeType>::argNameOfType()\ {\ return ArgNameStr;\ }\ template<>\ DtString DtVarType<NativeType>::xsNameOfType()\ {\ return xsTypeStr;\ }\