summaryrefslogtreecommitdiff
path: root/Option/Type.h
diff options
context:
space:
mode:
Diffstat (limited to 'Option/Type.h')
-rw-r--r--Option/Type.h24
1 files changed, 24 insertions, 0 deletions
diff --git a/Option/Type.h b/Option/Type.h
new file mode 100644
index 0000000..eff732b
--- /dev/null
+++ b/Option/Type.h
@@ -0,0 +1,24 @@
+#ifndef _TYPE_H
+#define _TYPE_H
+#include<string>
+#include<iostream>
+
+class Type {
+public:
+ enum TypeEnum {
+ NONE,
+ INT,
+ FLOAT,
+ STRING
+ };
+ private :
+ Type::TypeEnum m_type;
+ public :
+ Type();
+ Type(Type::TypeEnum type);
+ void print(std::ostream& os) const;
+ void setType(Type::TypeEnum type);
+ Type::TypeEnum getType() const;
+};
+std::ostream& operator<<(std::ostream& os, Type t);
+#endif