]> Dogcows Code - chaz/openbox/blobdiff - src/Resource.h
Added Util.h, which contains only an ASSERT macro for now
[chaz/openbox] / src / Resource.h
index 90b86d315ca06fd12c89c46d2aa073bbc9ce398e..912ae75377b725604159f51789799dbfbf89be9f 100644 (file)
@@ -30,9 +30,9 @@
 class obResource {
 public:
   obResource(const std::string &file);
+  obResource();
   virtual ~obResource();
 
-  // an empty string is an invalid value for the file and will cause an assert
   inline const std::string &file() const {
     return static_cast<const std::string &>(m_file);
   }
@@ -52,6 +52,7 @@ public:
   bool load();
 
   void setValue(const std::string &rname, bool value);
+  void setValue(const std::string &rname, int value);
   void setValue(const std::string &rname, long value);
   void setValue(const std::string &rname, const std::string &value);
   void setValue(const std::string &rname, const char *value);
@@ -64,6 +65,7 @@ public:
                 std::string &value) const;
 
 private:
+  static bool m_initialized;
   std::string m_file;
   bool m_modified;
   bool m_autosave;
This page took 0.021145 seconds and 4 git commands to generate.