diff options
| author | Gaspard Coulet <gaspard.coulet@mines-ales.org> | 2021-04-28 23:12:36 +0200 |
|---|---|---|
| committer | Gaspard Coulet <gaspard.coulet@mines-ales.org> | 2021-04-28 23:12:36 +0200 |
| commit | b4c345e6a5fa929ba20eac19183b9c777055f52d (patch) | |
| tree | 23a0232f2526c5ab7f53391609a8a0a5960865f0 /Option/Type.h | |
Initial commit
Diffstat (limited to 'Option/Type.h')
| -rw-r--r-- | Option/Type.h | 24 |
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 |
