VR-Forces 5.0.1 Developer's Guide
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Groups Pages
DtCDBSpeedTree.h
Go to the documentation of this file.
1 /******************************************************************************
2 ** Copyright(c) 2016 MAK Technologies, Inc.
3 ** All rights reserved.
4 ******************************************************************************/
5 
9 
10 #pragma once
11 #include <osgDB/XmlParser>
12 #include <string>
13 #include <map>
14 
15 namespace makVrv { namespace oe { namespace CDB {
16 
18  class DtCDBSpeedTreeTable : public osg::Referenced
19  {
20  public:
21 
25  void add(const std::string& GTmodel, const std::string& speedTree);
27  void clear();
29  int size();
31  bool getSpeedTree(const std::string& GTmodel, std::string& speedTree) const;
32 
33  private:
34 
36  typedef std::map < std::string, std::string > SpeedTreeMapType;
37 
40 
41  };
42 
46  {
47 
48  public:
50  static void loadSpeedTreeTableFromXML(const std::string& fileName, DtCDBSpeedTreeTable& speedTreeTable);
51 
52  };
53 
54 } } } // namespace makVrv::oe::CDB
SpeedTreeMapType mySpeedTreeMap
CDB GT tree model filename to speedtree map.
Definition: DtCDBSpeedTree.h:39
CDB Speed Tree information class.
Definition: DtCDBSpeedTree.h:18
void clear()
Clear the table.
int size()
number of speed tree mapping
Speed Tree Utility Class.
Definition: DtCDBSpeedTree.h:45
std::map< std::string, std::string > SpeedTreeMapType
type definition for speedtree map
Definition: DtCDBSpeedTree.h:36
bool getSpeedTree(const std::string &GTmodel, std::string &speedTree) const
return the speedtree name if found
void add(const std::string &GTmodel, const std::string &speedTree)
Add a speedtree mapping.
static void loadSpeedTreeTableFromXML(const std::string &fileName, DtCDBSpeedTreeTable &speedTreeTable)
Load the xxx_SpeedTrees.xml configuration file.

Document ID: Generated on Mon Jun 20 00:38:30 EDT 2022 from SVN revision 244029
Copyright © 2005-2021 MAK Technologies. All Rights Reserved (www.mak.com)