Planet
navi homePPSaboutscreenshotsdownloaddevelopmentforum

source: orxonox.OLD/branches/mount_points/src/lib/graphics/importer/oif/resource_oif.h @ 10051

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

added the oif ground classes including their resource management system

File size: 1.1 KB
Line 
1/*!
2 * @file resource_oif.h
3 * @brief Contains the ResourceOIF class, that handles the Resource-specific loading part of the OIF.
4 *
5 */
6
7#ifndef _RESOURCE_OIF_H
8#define _RESOURCE_OIF_H
9
10#include "util/loading/resource.h"
11#include "object_information_file.h"
12
13
14class ResourceOIF : public ObjectInformationFile, public Resources::Resource
15{
16public:
17  ResourceOIF(const std::string& modelName,
18              const Resources::KeepLevel& keepLevel = Resources::KeepLevel());
19  static ResourceOIF createFromString(const std::string& loadString, const Resources::KeepLevel& keepLevel = Resources::KeepLevel());
20  static std::string loadString(const std::string& modelName);
21
22private:
23class OIFResourcePointer : public Resources::StorePointer
24  {
25  public:
26    OIFResourcePointer(const std::string& loadString, const Resources::KeepLevel& keepLevel, const OIFData::Pointer& data);
27    inline const OIFData::Pointer& ptr() const { return pointer; }
28    virtual bool last() const { return pointer.count() == 1; }
29  private:
30    OIFData::Pointer pointer;
31  };
32
33private:
34  static Resources::tType<ResourceOIF> type;
35};
36
37
38#endif /* _RESOURCE_OIF_H */
Note: See TracBrowser for help on using the repository browser.