Changeset 7229 in orxonox.OLD for branches/resources/src/lib/util/loading/resource.cc
- Timestamp:
- Mar 21, 2006, 3:13:34 PM (18 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
branches/resources/src/lib/util/loading/resource.cc
r7195 r7229 18 18 #include "resource.h" 19 19 20 using namespace std;21 20 21 namespace Loading 22 { 22 23 23 /** 24 * standard constructor 25 */ 26 Resource::Resource (const std::string& fileName) 27 { 28 this->setClassID(CL_RESOURCE, "Resource"); 24 /** 25 * standard constructor 26 */ 27 Resource::Resource (const std::string& fileName, ResourcePriority prio) 28 { 29 this->setClassID(CL_RESOURCE, "Resource"); 30 this->resource = NULL; 29 31 32 } 33 34 /** 35 * standard deconstructor 36 */ 37 Resource::~Resource () 38 { 39 // delete what has to be deleted here 40 } 41 42 Resource::SharedResource::SharedResource() 43 { 44 this->referenceCount = 1; 45 this->type = CL_NULL; 46 this->prio = RP_NO; 47 } 30 48 } 31 32 /**33 * standard deconstructor34 */35 Resource::~Resource ()36 {37 // delete what has to be deleted here38 }
Note: See TracChangeset
for help on using the changeset viewer.