VR-Exchange 2.9 API Documentation
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Groups Pages
ddsBroker/ddsBroker/xmlEntityValuePair.h
Go to the documentation of this file.
1 /****************************************************************************
2  * Copyright (c) 2013 MAK Technologies, Inc.
3  * All rights reserved.
4  ****************************************************************************/
5 
9 
10 #pragma once
11 
12 #include <ddsBroker/dllExport.h>
13 #include <mtl/configVariable.h>
14 
16 {
17 public:
18 
21 
23  DtXMLEntityValuePair( const DtString& type, const DtTime& rate );
24 
27 
30 
32  DtXMLEntityValuePair& operator = ( const DtXMLEntityValuePair& vec );
33 
36 
37  const DtString& entityType() const;
38  void setEntityType( const DtString& type );
39 
41 
44 
45  const DtTime& rate() const;
46  void setRate( const DtTime& rate );
47 
49 
50 protected:
51 
53  DtTime myRate;
54 
55 };
56 
57 
58 template <>
59 struct DtVarType<DtXMLEntityValuePair>
60 {
61  typedef _NativeTypeToArg<DtXMLEntityValuePair>::Type ArgType;
62 
63  //Get the native type string.
64  static DtString nativeNameOfType();
65 
66  //Get the CmdLine ARG type string.
67  static DtString argNameOfType();
68 
69  //Get the XML schema type string.
70  static DtString xsNameOfType();
71 
72  //To and from CmdLine Argument types.
73  static ArgType convertToArgType( DtXMLEntityValuePair value );
74  static DtXMLEntityValuePair convertFromArgType( ArgType value );
75 
76  //To and From String conversions
77  static DtString convertToString( DtXMLEntityValuePair value );
78  static DtXMLEntityValuePair convertFromString( const DtString& value );
79 
80  //Get Schema Type
81  static DtEnvValueSP createSchemaType( DtEnvironment );
82 
83  //To and From Environment Value
84  static void convertToEnvironmentValue( DtEnvironment env, DtXMLEntityValuePair value );
85  static DtXMLEntityValuePair convertFromEnvironmentValue( DtEnvironment env );
86 
87 };
DtString myEntityType
Definition: ddsBroker/ddsBroker/xmlEntityValuePair.h:52
Definition: ddsBroker/ddsBroker/xmlEntityValuePair.h:15
DtTime myRate
Definition: ddsBroker/ddsBroker/xmlEntityValuePair.h:53
_NativeTypeToArg< DtXMLEntityValuePair >::Type ArgType
Definition: ddsBroker/ddsBroker/xmlEntityValuePair.h:61
#define DT_DLL_DDSBROKER
Definition: brokers/ddsBroker/ddsBroker/dllExport.h:20

Document ID: Generated on Tue Jun 25 16:45:35 EDT 2024 from SVN revision 267383
Copyright © 2005-2024 MAK Technologies. All Rights Reserved (www.mak.com)