]> git.jsancho.org Git - lugaru.git/commitdiff
and removing useless Setting files.
authorCôme BERNIGAUD <come.bernigaud@gmail.com>
Sat, 5 Jun 2010 20:14:40 +0000 (22:14 +0200)
committerCôme BERNIGAUD <come.bernigaud@gmail.com>
Sat, 5 Jun 2010 20:14:40 +0000 (22:14 +0200)
Source/Setting.cpp [deleted file]
Source/Setting.h [deleted file]

diff --git a/Source/Setting.cpp b/Source/Setting.cpp
deleted file mode 100644 (file)
index 65f0f9a..0000000
+++ /dev/null
@@ -1,27 +0,0 @@
-#include "Setting.h"
-
-template <class T>
-Setting::Setting(const char* key, T& value) {
-    sKey = string(key);
-    sValue = v;
-}
-
-string Setting::getKey() const {
-    return sKey;
-}
-
-template <class T>
-T Setting::getValue() const {
-    return sValue;
-}
-
-template <class T>
-void Setting::setValue(T& value) {
-    sValue = value;
-}
-
-template <class T>
-stream operator<<(stream& str, const Setting<T>& set) {
-    str << set.sKey << endl;
-    str << set.sValue << endl;
-}
diff --git a/Source/Setting.h b/Source/Setting.h
deleted file mode 100644 (file)
index 093dbac..0000000
+++ /dev/null
@@ -1,25 +0,0 @@
-#ifndef SETTINGS_H_
-#define SETTINGS_H_
-
-#include <iostream>
-#include <string>
-
-using namespace std;
-
-template<class T>
-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<T>& s);
-private:
-    string sKey;
-    T sValue;    
-};
-
-#endif /* SETTINGS_H_ */
\ No newline at end of file