X-Git-Url: https://git.brokenzipper.com/gitweb?a=blobdiff_plain;f=src%2FResource.h;h=e75b87185dbec898bd88519401380373c6f47f72;hb=63f8386dde9fb610492dd9a10d0a688f16d0dcf4;hp=985e29d8a1495837c9a780ce63dbd08fe2962f87;hpb=8d3c97389f23271c7b44a726111c97d34bc2ced2;p=chaz%2Fopenbox diff --git a/src/Resource.h b/src/Resource.h index 985e29d8..e75b8718 100644 --- a/src/Resource.h +++ b/src/Resource.h @@ -27,11 +27,11 @@ #include #include -class obResource { +class Resource { public: - obResource(const std::string &file); - obResource(); - virtual ~obResource(); + explicit Resource(const std::string &file); + Resource(); + virtual ~Resource(); inline const std::string &file() const { return static_cast(m_file); @@ -50,6 +50,7 @@ public: void save(); bool load(); + void create(); void setValue(const std::string &rname, bool value); void setValue(const std::string &rname, int value); @@ -65,6 +66,7 @@ public: std::string &value) const; private: + static bool m_initialized; std::string m_file; bool m_modified; bool m_autosave;