VR-Link API Documentation for HLA Evolved
Classes | Defines
varType.h File Reference

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)

Detailed Description


Define Documentation

#define DtDeclareVarType (   NativeType,
  CmdLineType 
)
#define DtDefineVarTypeArgFunctions (   NativeType,
  ToStrFunction,
  FromStrFunction,
  ToArgFunction,
  FromArgFunction 
)
Value:
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 
)
Value:
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 
)
Value:
template<>\
   DtString DtVarType<NativeType>::nativeNameOfType()\
   {\
      return #NativeType;\
   };\
   template<>\
   DtString DtVarType<NativeType>::argNameOfType()\
   {\
      return ArgNameStr;\
   }\
   template<>\
   DtString DtVarType<NativeType>::xsNameOfType()\
   {\
      return xsTypeStr;\
   }\

Document ID: Generated on Mon May 14 08:06:18 EDT 2012 from SVN revision 114750
Copyright © 2005-2012 VT MÄK Inc. All Rights Reserved (www.mak.com)