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

Document ID: Generated on Mon Apr 19 15:55:22 EDT 2021 from SVN revision 227909
Copyright © 2005-2021 MAK Technologies. All Rights Reserved (www.mak.com)