~ubuntu-branches/debian/sid/gource/sid

« back to all changes in this revision

Viewing changes to src/core/resource.h

  • Committer: Package Import Robot
  • Author(s): Andrew Caudwell
  • Date: 2014-04-15 16:30:17 UTC
  • mfrom: (1.2.15)
  • Revision ID: package-import@ubuntu.com-20140415163017-ucdr2josj1spzrga
Tags: 0.41-1
* New upstream release
* Made VCS URIs canonical
* Changed watch file to look at Github for releases

Show diffs side-by-side

added added

removed removed

Lines of Context:
30
30
 
31
31
#include <map>
32
32
#include <string>
33
 
#include <cstring>
34
 
#include <stdexcept>
 
33
#include <exception>
35
34
 
36
35
class ResourceException : public std::exception {
37
36
protected:
50
49
    Resource() { refs =0; };
51
50
    Resource(const std::string& resource_name) : resource_name(resource_name), refs(0) {};
52
51
    virtual ~Resource() {};
53
 
    
 
52
 
54
53
    void setResourceName(const std::string& resource_name) {
55
54
        if(this->resource_name.empty()) this->resource_name = resource_name;
56
55
    };
74
73
    virtual ~ResourceManager();
75
74
 
76
75
    void purge();
77
 
 
78
76
    void release(Resource* resource);
79
 
    Resource* grab(const std::string& resource_name);
80
 
    virtual Resource* create(const std::string& name) { return 0; };
81
77
};
82
78
 
83
79
#endif