VR-Forces 4.3.1 Class Documentation
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Groups Pages
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 {
23  {
24  public:
25 
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 
39  std::string myName;
42  bool myRequired;
43  std::vector<DtUnicode> myEnumerationValues;
44  };
45 
46 
47  typedef boost::unordered_map<std::string,
49 
53  DtVisualizerSchema(const std::string& name,
54  const DtUnicode& humanReadableText, bool empty = false);
55 
58 
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;
87  };
88 }
89 

Document ID: Generated on Wed Jul 29 00:55:00 EDT 2015 from SVN revision 155257
Copyright © 2005-2015 VT MÄK. All Rights Reserved (www.mak.com)