VR-Forces 4.1.1 Class Documentation
DtVisualizerSchemaManager.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>
18 #include <boost/unordered_map.hpp>
19 
20 namespace makVrv
21 {
22  class DtDe;
23  class DtVisualizerSchema;
24 
27  {
28  public:
29 
31  typedef boost::unordered_map<std::string,
33 
35  typedef boost::unordered_map<unsigned int,
37 
39  static DtVisualizerSchemaManager& instance(DtDe&);
40 
42  virtual ~DtVisualizerSchemaManager();
43 
45  void registerVisualizerSchema(DtStateVisualizer::Type type,
46  const DtVisualizerSchema* entry);
47 
51  const DtVisualizerSchema* findSchemaEntry( DtStateVisualizer::Type type,
52  const std::string& schemaName ) const;
53 
56  const DtVisualizerSchema* findSchemaEntry(
57  const std::string& schemaName ) const;
58 
60  void getSchemaEntriesForType(DtStateVisualizer::Type type,
61  std::vector<const DtVisualizerSchema*>& entries ) const;
62 
64  void loadDefaults();
65 
68  static std::string newSchemaNameFromOld(const std::string& oldSchemaName);
69 
70  protected:
71 
73  template <typename ManagerClass>
74  friend ManagerClass& defaultManagerInstanceFunction(DtDe&,bool);
75 
77  template <typename ManagerClass>
78  friend void defaultManagerRegisterInstanceFunction(DtDe&, ManagerClass*);
79 
82 
83  protected:
84 
87  };
88 }
89 

Document ID: Generated on Mon Apr 8 19:24:01 EDT 2013 from SVN revision 125877
Copyright © 2005-2013 VT MÄK. All Rights Reserved (www.mak.com)