Last change
on this file since 657 was 622, checked in by dai_9181, 17 years ago |
ResourceManagerクラスを追加。既存のリソース管理モジュールの置き換えを行った。
|
File size:
562 bytes
|
Line | |
---|
1 | #pragma once
|
---|
2 |
|
---|
3 | namespace ActiveBasic{ namespace Common{
|
---|
4 |
|
---|
5 |
|
---|
6 | struct ResourceItem
|
---|
7 | {
|
---|
8 | std::string idName;
|
---|
9 | std::string filepath;
|
---|
10 |
|
---|
11 | // IDEのみで使う
|
---|
12 | HTREEITEM hTreeItem;
|
---|
13 | };
|
---|
14 | typedef std::vector<ResourceItem> ResourceItems;
|
---|
15 |
|
---|
16 |
|
---|
17 | class ResourceManager
|
---|
18 | {
|
---|
19 | public:
|
---|
20 | void Clear();
|
---|
21 | bool Load( const std::string &resourceFilePath );
|
---|
22 | bool Save( const std::string &resourceFilePath );
|
---|
23 |
|
---|
24 | bool HasManifest() const;
|
---|
25 |
|
---|
26 | ResourceItems cursorResources;
|
---|
27 | ResourceItems bitmapResources;
|
---|
28 | ResourceItems iconResources;
|
---|
29 | std::string manifestFilePath;
|
---|
30 | };
|
---|
31 |
|
---|
32 |
|
---|
33 | }}
|
---|
Note:
See
TracBrowser
for help on using the repository browser.