VR-Exchange 2.2 API Documentation
xmlEntityValuePair.h
Go to the documentation of this file.
1 /******************************************************************************
2 ** Copyright (c) 2008 MAK Technologies, Inc.
3 ** All rights reserved.
4 ******************************************************************************/
5 /******************************************************************************
6 ** $RCSfile: xmlEntityValuePair.h,v $ $Revision: 1.2 $ $State: Exp $
7 ******************************************************************************/
8 
9 #ifndef xmlEntityValuePair_H_
10 #define xmlEntityValuePair_H_
11 
12 #include <namespace.h>
13 #include "mtl/configVar.h"
14 
15 class DT_DLL_TENABROKER DtXMLEntityValuePair
16 {
17 public:
18 
20 
22  DtXMLEntityValuePair( const DtString& type, const DtTime& rate);
23 
26 
29 
31  DtXMLEntityValuePair& operator=(const DtXMLEntityValuePair& vec);
32 
34 
35  const DtString& entityType() const;
36  void setEntityType(const DtString& type);
38 
40 
41  const DtTime& rate() const;
42  void setRate(const DtTime& rate);
44 
45 
46 protected:
47 
49  DtTime myRate;
50 
51 
52 };
53 
54 template <>
55 struct DtVarType<DtXMLEntityValuePair>
56 {
57  typedef _NativeTypeToArg<DtXMLEntityValuePair>::Type ArgType;
58 
59  //Get the native type string.
60  static DtString nativeNameOfType();
61 
62  //Get the CmdLine ARG type string.
63  static DtString argNameOfType();
64 
65  //Get the XML schema type string.
66  static DtString xsNameOfType();
67 
68  //To and from CmdLine Argument types.
69  static ArgType convertToArgType(DtXMLEntityValuePair value);
70  static DtXMLEntityValuePair convertFromArgType(ArgType value);
71 
72  //To and From String conversions
73  static DtString convertToString(DtXMLEntityValuePair value);
74  static DtXMLEntityValuePair convertFromString(const DtString& value);
75 
76  //Get Schema Type
77  static DtEnvValueSP createSchemaType(DtEnvironment);
78 
79  //To and From Environment Value
80  static void convertToEnvironmentValue(DtEnvironment env,DtXMLEntityValuePair value);
81  static DtXMLEntityValuePair convertFromEnvironmentValue(DtEnvironment env);
82 };
83 
84 
85 
86 #endif //xmlEntityValuePair_H_

Document ID: Generated on Mon Apr 15 17:15:50 EDT 2013 from SVN revision 126154
Copyright © 2005-2012 VT MÄK. All Rights Reserved (www.mak.com)