+++ /dev/null
-#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;
-}
+++ /dev/null
-#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