VR-Vantage API Documentation
Home
Modules
Namespaces
Classes
Files
Examples
Tutorials
File List
File Members
include
vrvCore
DtVisualizerSchema.h
Go to the documentation of this file.
1
/******************************************************************************
2
** Copyright (c) 2011 MAK Technologies, Inc.
3
** All rights reserved.
4
******************************************************************************/
5
/******************************************************************************
6
** $RCSfile: $ $Revision: $ $State: $
7
******************************************************************************/
8
12
13
#pragma once
14
#include <
vrvCore/vrvCore.h
>
15
#include <
vrvUtil/DtUnicode.h
>
16
#include <vector>
17
#include <boost/unordered_map.hpp>
18
19
namespace
makVrv
20
{
22
class
DT_DLL_VRVCORE
DtVisualizerSchema
23
{
24
public
:
25
26
struct
DT_DLL_VRVCORE
Parameter
27
{
29
Parameter
();
30
32
Parameter(
const
std::string& typeInfoName,
33
const
std::string& name,
34
const
DtUnicode
& screenName,
35
const
DtUnicode
& desc,
36
bool
required);
37
38
std::string
myVisualizerAttributeTypeInfoName
;
39
std::string
myName
;
40
DtUnicode
myScreenName
;
41
DtUnicode
myDescription
;
42
bool
myRequired
;
43
std::vector<DtUnicode>
myEnumerationValues
;
44
};
45
46
47
typedef
boost::unordered_map<std::string,
48
Parameter
>
SchemaParameters
;
49
53
DtVisualizerSchema
(
const
std::string& name,
54
const
DtUnicode
& humanReadableText,
bool
empty =
false
);
55
57
DtVisualizerSchema
(
const
DtVisualizerSchema
& rhs);
58
60
~
DtVisualizerSchema
();
61
63
const
std::string& name()
const
;
64
66
const
DtUnicode
& screenName()
const
;
67
69
void
addParameter(
const
Parameter
& param);
70
72
void
removeParameter(
const
std::string& name);
73
75
Parameter
* findParameter(
const
std::string& name);
76
78
const
Parameter
* findParameter(
const
std::string& name)
const
;
79
81
const
SchemaParameters
& parameters()
const
;
82
83
protected
:
84
std::string
myName
;
85
DtUnicode
myScreenName
;
86
SchemaParameters
myParameters
;
87
};
88
}
89
Copyright © 2005-2013 VT MÄK Inc. All Rights Reserved (
www.mak.com
)