Planet
navi homePPSaboutscreenshotsdownloaddevelopmentforum

source: orxonox.OLD/trunk/src/lib/graphics/importer/oif/resource_oif.h @ 10763

Last change on this file since 10763 was 10314, checked in by patrick, 18 years ago

merged branche mount_point to trunk. this will add mount point abilities, bsp transparency fix and some other smaller stuff to this trunk

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.