Planet
navi homePPSaboutscreenshotsdownloaddevelopmentforum

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

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

much more on the resources. it's not that simple at all

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& fileName,
18              const Resources::KeepLevel& keepLevel = Resources::KeepLevel());
19  static ResourceOIF createFromString(const std::string& loadString, const Resources::KeepLevel& keepLevel = Resources::KeepLevel());
20
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.