Last change
on this file since 10201 was
10147,
checked in by patrick, 18 years ago
|
merged the mount_point branche back to trunk to use the new std::* based obj file importer
|
File size:
1.0 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 | |
---|
14 | class ResourceOIF : public ObjectInformationFile, public Resources::Resource |
---|
15 | { |
---|
16 | public: |
---|
17 | ResourceOIF(const std::string& fileName, const Resources::KeepLevel& keepLevel = Resources::KeepLevel()); |
---|
18 | static ResourceOIF createFromString(const std::string& loadString, const Resources::KeepLevel& keepLevel = Resources::KeepLevel()); |
---|
19 | |
---|
20 | |
---|
21 | private: |
---|
22 | class OIFResourcePointer : public Resources::StorePointer |
---|
23 | { |
---|
24 | public: |
---|
25 | OIFResourcePointer(const std::string& loadString, const Resources::KeepLevel& keepLevel, const OIFData::Pointer& data); |
---|
26 | inline const OIFData::Pointer& ptr() const { return pointer; } |
---|
27 | virtual bool last() const { return pointer.count() == 1; } |
---|
28 | private: |
---|
29 | OIFData::Pointer pointer; |
---|
30 | }; |
---|
31 | |
---|
32 | private: |
---|
33 | static Resources::tType<ResourceOIF> type; |
---|
34 | }; |
---|
35 | |
---|
36 | |
---|
37 | #endif /* _RESOURCE_OIF_H */ |
---|
Note: See
TracBrowser
for help on using the repository browser.