Changeset 828 in dev for trunk/ab5.0/abdev/ab_common/include/ResourceManager
- Timestamp:
- Mar 19, 2012, 1:59:48 AM (13 years ago)
- Location:
- trunk
- Files:
-
- 3 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk
-
Property svn:mergeinfo
set to
/branches/egtra merged eligible
-
Property svn:mergeinfo
set to
-
trunk/ab5.0/abdev
-
Property svn:ignore
set to
*.opensdf
*.sdf
*.suo
*.user
int
ipch
out
-
Property svn:ignore
set to
-
trunk/ab5.0/abdev/ab_common/include/ResourceManager/ResourceManager.h
r622 r828 11 11 // IDEのみで使う 12 12 HTREEITEM hTreeItem; 13 14 ResourceItem() 15 : idName() 16 , filepath() 17 , hTreeItem() {} 18 19 ResourceItem(ResourceItem&& y) 20 : idName(std::move(y.idName)) 21 , filepath(std::move(y.filepath)) 22 , hTreeItem(std::move(y.hTreeItem)) {} 23 24 ResourceItem(ResourceItem const& y) 25 : idName(y.idName) 26 , filepath(y.filepath) 27 , hTreeItem(y.hTreeItem) {} 28 29 ResourceItem& operator =(ResourceItem&& y) 30 { 31 idName = std::move(y.idName); 32 filepath= std::move(y.filepath); 33 hTreeItem = std::move(y.hTreeItem); 34 return *this; 35 } 36 37 ResourceItem& operator =(ResourceItem const& y) 38 { 39 return *this = std::move(ResourceItem(y)); 40 } 13 41 }; 42 14 43 typedef std::vector<ResourceItem> ResourceItems; 15 44 … … 18 47 { 19 48 public: 49 ResourceManager() {} 50 20 51 void Clear(); 21 52 bool Load( const std::string &resourceFilePath ); … … 28 59 ResourceItems iconResources; 29 60 std::string manifestFilePath; 61 62 private: 63 ResourceManager(ResourceManager const&); 64 ResourceManager operator =(ResourceManager const&); 30 65 }; 31 66
Note:
See TracChangeset
for help on using the changeset viewer.