return true;
}
+void Resource::create() {
+ if (m_database != NULL)
+ XrmDestroyDatabase(m_database);
+ m_modified = false;
+ ASSERT(NULL != (m_database = XrmGetStringDatabase("")));
+}
+
void Resource::setValue(const std::string &rname, bool value) {
ASSERT(m_database != NULL);
void Resource::setValue(const std::string &rname, const char *value) {
ASSERT(m_database != NULL);
+ ASSERT(value != NULL);
std::string rc_string = rname + ": " + value;
XrmPutLineResource(&m_database, rc_string.c_str());