summaryrefslogtreecommitdiffstats
path: root/core/config/string.cc
diff options
context:
space:
mode:
Diffstat (limited to 'core/config/string.cc')
-rw-r--r--core/config/string.cc18
1 files changed, 18 insertions, 0 deletions
diff --git a/core/config/string.cc b/core/config/string.cc
new file mode 100644
index 0000000..08e8c0d
--- /dev/null
+++ b/core/config/string.cc
@@ -0,0 +1,18 @@
+#include "core/pch.hh"
+
+#include "core/config/string.hh"
+
+config::String::String(const char* default_value)
+{
+ m_value = default_value;
+}
+
+void config::String::set(const char* value)
+{
+ m_value = value;
+}
+
+const char* config::String::get(void) const
+{
+ return m_value.c_str();
+}