From: Côme BERNIGAUD Date: Sat, 5 Jun 2010 20:14:40 +0000 (+0200) Subject: and removing useless Setting files. X-Git-Url: https://git.jsancho.org/?a=commitdiff_plain;h=d4888de6f5fd3bb6e8cfabee735e007f4371b5f6;p=lugaru.git and removing useless Setting files. --- diff --git a/Source/Setting.cpp b/Source/Setting.cpp deleted file mode 100644 index 65f0f9a..0000000 --- a/Source/Setting.cpp +++ /dev/null @@ -1,27 +0,0 @@ -#include "Setting.h" - -template -Setting::Setting(const char* key, T& value) { - sKey = string(key); - sValue = v; -} - -string Setting::getKey() const { - return sKey; -} - -template -T Setting::getValue() const { - return sValue; -} - -template -void Setting::setValue(T& value) { - sValue = value; -} - -template -stream operator<<(stream& str, const Setting& set) { - str << set.sKey << endl; - str << set.sValue << endl; -} diff --git a/Source/Setting.h b/Source/Setting.h deleted file mode 100644 index 093dbac..0000000 --- a/Source/Setting.h +++ /dev/null @@ -1,25 +0,0 @@ -#ifndef SETTINGS_H_ -#define SETTINGS_H_ - -#include -#include - -using namespace std; - -template -class Setting { -public: - Setting(const char* key, T& value); - - string getKey() const; - T getValue() const; - - void setValue(T& value); - - stream operator<<(stream& s, const Setting& s); -private: - string sKey; - T sValue; -}; - -#endif /* SETTINGS_H_ */ \ No newline at end of file