VR-Link API Documentation for DIS
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Groups Pages
Classes | Macros
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...
 

Macros

#define DtDeclareVarType(NativeType, CmdLineType)
 
#define DtDefineVarTypeNames(NativeType, ArgNameStr, xsTypeStr)
 
#define DtDefineVarTypeArgFunctions(NativeType, ToStrFunction, FromStrFunction, ToArgFunction, FromArgFunction)
 
#define DtDefineVarTypeEnvFunctions(NativeType, SchemaTypeFunction, ToEnvironmentFunction, FromEnvironmentFunction)
 

Macro Definition Documentation

#define DtDeclareVarType (   NativeType,
  CmdLineType 
)
Value:
template <>\
{\
typedef CmdLineType Type;\
};\
template <>\
template <>\
template <>\
template <>\
DtVarType<NativeType>::ArgType DtVarType<NativeType>::convertToArgType(NativeType);\
template <>\
template <>\
template <>\
template <>\
template <>\
template <>\
DtBoost::shared_ptr< DtEnvValue > DtEnvValueSP
Definition: envValue.h:29
static DtString argNameOfType()
static DtEnvValueSP createSchemaType(DtEnvironment)
static T convertFromArgType(ArgType value)
static DtString xsNameOfType()
static void convertToEnvironmentValue(DtEnvironment env, T value)
A Flyweight class for manipulating objects and their hierarchy The DtEnvironment wraps a DtEnvValuSP ...
Definition: environment.h:29
static T convertFromString(const DtString &value)
static ArgType convertToArgType(T value)
static DtString nativeNameOfType()
static DtString convertToString(T value)
Definition: varType.h:20
Instances of DtString are used to represent strings.
Definition: vlString.h:29
static T convertFromEnvironmentValue(DtEnvironment env)
#define DtDefineVarTypeArgFunctions (   NativeType,
  ToStrFunction,
  FromStrFunction,
  ToArgFunction,
  FromArgFunction 
)
Value:
template<>\
DtVarType<NativeType>::ArgType DtVarType<NativeType>::convertToArgType(NativeType value)\
{\
return ToArgFunction;\
}\
template<>\
{\
return FromArgFunction;\
}\
template<>\
DtString DtVarType<NativeType>::convertToString(NativeType value)\
{\
return ToStrFunction;\
}\
template<>\
{\
return FromStrFunction;\
}
static T convertFromArgType(ArgType value)
static T convertFromString(const DtString &value)
static ArgType convertToArgType(T value)
static DtString convertToString(T value)
Instances of DtString are used to represent strings.
Definition: vlString.h:29
#define DtDefineVarTypeEnvFunctions (   NativeType,
  SchemaTypeFunction,
  ToEnvironmentFunction,
  FromEnvironmentFunction 
)
Value:
template <>\
{\
return SchemaTypeFunction;\
}\
template <>\
{\
ToEnvironmentFunction;\
}\
template <>\
{\
return FromEnvironmentFunction;\
}\
DtBoost::shared_ptr< DtEnvValue > DtEnvValueSP
Definition: envValue.h:29
static DtEnvValueSP createSchemaType(DtEnvironment)
static void convertToEnvironmentValue(DtEnvironment env, T value)
A Flyweight class for manipulating objects and their hierarchy The DtEnvironment wraps a DtEnvValuSP ...
Definition: environment.h:29
static T convertFromEnvironmentValue(DtEnvironment env)
#define DtDefineVarTypeNames (   NativeType,
  ArgNameStr,
  xsTypeStr 
)
Value:
template<>\
{\
return #NativeType;\
};\
template<>\
{\
return ArgNameStr;\
}\
template<>\
{\
return xsTypeStr;\
}\
static DtString argNameOfType()
static DtString xsNameOfType()
static DtString nativeNameOfType()

Document ID: Generated on Tue Feb 2 21:02:17 EST 2021 from SVN revision 223668
Copyright © 2005-2021 MAK Technologies. All Rights Reserved (www.mak.com)