From d4888de6f5fd3bb6e8cfabee735e007f4371b5f6 Mon Sep 17 00:00:00 2001 From: =?utf8?q?C=C3=B4me=20BERNIGAUD?= Date: Sat, 5 Jun 2010 22:14:40 +0200 Subject: [PATCH] and removing useless Setting files. --- Source/Setting.cpp | 27 --------------------------- Source/Setting.h | 25 ------------------------- 2 files changed, 52 deletions(-) delete mode 100644 Source/Setting.cpp delete mode 100644 Source/Setting.h 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 -- 2.39.2