]> git.mxchange.org Git - simgear.git/blob - simgear/scene/model/modellib.hxx
Revert the last change, MSVC still doesn't like it.
[simgear.git] / simgear / scene / model / modellib.hxx
1 // modellib.cxx - implement an SSG model library.
2
3 #ifndef _SG_MODEL_LIB_HXX
4 #define _SG_MODEL_LIB_HXX 1
5
6 #ifndef __cplusplus
7 # error This library requires C++
8 #endif
9
10 #include <simgear/compiler.h>   // for SG_USING_STD
11
12 #include <map>
13 #include STL_STRING
14
15 #include <plib/ssg.h>
16
17 #include <simgear/props/props.hxx>
18
19 SG_USING_STD(map);
20 SG_USING_STD(string);
21
22
23 /**
24  * Class for loading and managing models with XML wrappers.
25  */
26 class SGModelLib
27 {
28
29 public:
30
31     SGModelLib ();
32     virtual ~SGModelLib ();
33     virtual void flush1();
34
35     virtual ssgEntity *load_model( const string &fg_root,
36                                    const string &path,
37                                    SGPropertyNode *prop_root,
38                                    double sim_time_sec );
39 protected:
40
41     map<string,ssgBase *> _table;
42 };
43
44
45 #endif // _SG_MODEL_LIB_HXX