VR-Exchange 2.1 API Documentation
Home
Modules
Namespaces
Classes
Files
Examples
Libraries
File List
File Members
include
tenaBroker
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
19
DtXMLEntityValuePair
();
20
22
DtXMLEntityValuePair
(
const
DtString
& type,
const
DtTime& rate);
23
25
~
DtXMLEntityValuePair
();
26
28
DtXMLEntityValuePair
(
const
DtXMLEntityValuePair
& vec);
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
48
DtString
myEntityType
;
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 Tue Aug 7 22:07:13 EDT 2012 from SVN revision 117874
Copyright © 2005-2012 VT MÄK Inc. All Rights Reserved (
www.mak.com
)