summaryrefslogtreecommitdiff
path: root/Option/Option.h
diff options
context:
space:
mode:
authorGaspard Coulet <gaspard.coulet@mines-ales.org>2021-04-28 23:12:36 +0200
committerGaspard Coulet <gaspard.coulet@mines-ales.org>2021-04-28 23:12:36 +0200
commitb4c345e6a5fa929ba20eac19183b9c777055f52d (patch)
tree23a0232f2526c5ab7f53391609a8a0a5960865f0 /Option/Option.h
Initial commit
Diffstat (limited to 'Option/Option.h')
-rw-r--r--Option/Option.h25
1 files changed, 25 insertions, 0 deletions
diff --git a/Option/Option.h b/Option/Option.h
new file mode 100644
index 0000000..f30d5de
--- /dev/null
+++ b/Option/Option.h
@@ -0,0 +1,25 @@
+#ifndef _OPTION_H_
+#define _OPTION_H_
+#include<string>
+#include"Type.h"
+class Option {
+ private :
+ int m_id;
+ std::string m_intitul;
+ std::string m_rac;
+ Type m_type;
+ std::string m_description;
+ public :
+ Option();
+ Option(int id, const std::string &intitul, const std::string &m_rac, const Type::TypeEnum type, const std::string &m_description);
+ int getOptionID() const;
+ Type::TypeEnum getOptionType() const;
+ std::string getOptionInt() const;
+ std::string getOptionRac() const;
+ void setOptionType(Type::TypeEnum t);
+ void setOptionInt(std::string &intitul);
+ void setOptionRac(std::string &rac);
+ void print(std::ostream& os) const;
+};
+std::ostream& operator<<(std::ostream& os, Option o);
+#endif