Planet
navi homePPSaboutscreenshotsdownloaddevelopmentforum

source: orxonox.OLD/branches/mount_points/src/lib/graphics/importer/oif/object_information_file.h @ 10228

Last change on this file since 10228 was 10228, checked in by patrick, 17 years ago

some more work on the mounting points. should soon be finished

File size: 1.1 KB
Line 
1/*!
2 * @file object_information_file.h
3 * @brief Definition of a class that helps defining mount point connections
4*/
5
6#ifndef _OBJECT_INFORMATION_FILE_H
7#define _OBJECT_INFORMATION_FILE_H
8
9#include "base_object.h"
10
11#include "count_pointer.h"
12
13
14//! A class for object informations
15class OIFData : BaseObject
16{
17public:
18  typedef CountPointer<OIFData>    Pointer;
19
20
21public:
22  OIFData(const std::string& fileName);
23  virtual ~OIFData() {}
24
25  void load(const std::string& fileName);
26
27  inline TiXmlElement* root() { return this->_root; }
28
29
30private:
31  TiXmlElement* _root;           //!< root of the xml file
32};
33
34//! A class for object informations
35class ObjectInformationFile : BaseObject
36{
37
38public:
39  ObjectInformationFile();
40  ObjectInformationFile(const ObjectInformationFile& oif);
41  ObjectInformationFile(const std::string& fileName);
42  virtual ~ObjectInformationFile();
43
44  ObjectInformationFile& operator=(const ObjectInformationFile& oif);
45
46//   void initMountPoint(MountPoint* mountPoint);
47
48  private:
49    void init();
50
51
52private:
53  CountPointer<OIFData>          data;                           //!< the oif data pointer
54
55};
56
57#endif /* _OBJECT_INFORMATION_FILE_H */
Note: See TracBrowser for help on using the repository browser.