]> Dogcows Code - chaz/openbox/blobdiff - src/Resource.h
gcc 3 compatibility, converted strstreams to stringstreams
[chaz/openbox] / src / Resource.h
index 90b86d315ca06fd12c89c46d2aa073bbc9ce398e..e75b87185dbec898bd88519401380373c6f47f72 100644 (file)
 #include <X11/Xlib.h>
 #include <X11/Xresource.h>
 
-class obResource {
+class Resource {
 public:
-  obResource(const std::string &file);
-  virtual ~obResource();
+  explicit Resource(const std::string &file);
+  Resource();
+  virtual ~Resource();
 
-  // 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);
   }
@@ -50,8 +50,10 @@ public:
 
   void save();
   bool load();
+  void create();
 
   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 +66,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.02676 seconds and 4 git commands to generate.