VR-Exchange 2.4 API Documentation
Home
Modules
Namespaces
Classes
Files
Examples
Libraries
File List
File Members
All
Classes
Namespaces
Files
Functions
Variables
Typedefs
Enumerations
Enumerator
Properties
Friends
Macros
Groups
Pages
brokers
ddsBroker
ddsBroker
ddsBroker/ddsBroker/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 <
ddsBroker/dllExport.h
>
13
#include <mtl/configVariable.h>
14
15
class
DT_DLL_DDSBROKER
DtXMLEntityValuePair
16
{
17
public
:
18
20
DtXMLEntityValuePair
();
21
23
DtXMLEntityValuePair
(
const
DtString
& type,
const
DtTime& rate );
24
26
DtXMLEntityValuePair
(
const
DtXMLEntityValuePair
& vec );
27
29
~
DtXMLEntityValuePair
();
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
52
DtString
myEntityType
;
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
};
Document ID: Generated on Thu Jul 23 10:25:22 EDT 2015 from SVN revision 155065
Copyright © 2005-2014 VT MÄK. All Rights Reserved (
www.mak.com
)