Planet
navi homePPSaboutscreenshotsdownloaddevelopmentforum

Ignore:
Timestamp:
Mar 21, 2006, 3:13:34 PM (18 years ago)
Author:
bensch
Message:

resources: some minor implementations

File:
1 edited

Legend:

Unmodified
Added
Removed
  • branches/resources/src/lib/util/loading/resource.cc

    r7195 r7229  
    1818#include "resource.h"
    1919
    20 using namespace std;
    2120
     21namespace Loading
     22{
    2223
    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;
    2931
     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  }
    3048}
    31 
    32 /**
    33  * standard deconstructor
    34  */
    35 Resource::~Resource ()
    36 {
    37   // delete what has to be deleted here
    38 }
Note: See TracChangeset for help on using the changeset viewer.