aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--src/FbTk/Resource.hh7
1 files changed, 4 insertions, 3 deletions
diff --git a/src/FbTk/Resource.hh b/src/FbTk/Resource.hh
index c27d9e4..c48b6ca 100644
--- a/src/FbTk/Resource.hh
+++ b/src/FbTk/Resource.hh
@@ -49,7 +49,7 @@ public:
49 /// set default value 49 /// set default value
50 virtual void setDefaultValue() = 0; 50 virtual void setDefaultValue() = 0;
51 /// get string value 51 /// get string value
52 virtual std::string getString() = 0; 52 virtual std::string getString() const = 0;
53 /// get alternative name of this resource 53 /// get alternative name of this resource
54 inline const std::string& altName() const { return m_altname; } 54 inline const std::string& altName() const { return m_altname; }
55 /// get name of this resource 55 /// get name of this resource
@@ -99,7 +99,8 @@ public:
99 } 99 }
100 100
101 Resource_base *findResource(const std::string &resourcename); 101 Resource_base *findResource(const std::string &resourcename);
102 std::string resourceValue(const std::string &resourcename); 102 const Resource_base *findResource(const std::string &resourcename) const;
103 std::string resourceValue(const std::string &resourcename) const;
103 void setResourceValue(const std::string &resourcename, const std::string &value); 104 void setResourceValue(const std::string &resourcename, const std::string &value);
104 105
105 // this marks the database as "in use" and will avoid reloading 106 // this marks the database as "in use" and will avoid reloading
@@ -164,7 +165,7 @@ public:
164 inline Resource<T>& operator = (const T& newvalue) { m_value = newvalue; return *this;} 165 inline Resource<T>& operator = (const T& newvalue) { m_value = newvalue; return *this;}
165 /// specialized, must be implemented 166 /// specialized, must be implemented
166 /// @return string value of resource 167 /// @return string value of resource
167 std::string getString(); 168 std::string getString() const;
168 169
169 inline T& operator*() { return m_value; } 170 inline T& operator*() { return m_value; }
170 inline const T& operator*() const { return m_value; } 171 inline const T& operator*() const { return m_value; }