From b4c345e6a5fa929ba20eac19183b9c777055f52d Mon Sep 17 00:00:00 2001 From: Gaspard Coulet Date: Wed, 28 Apr 2021 23:12:36 +0200 Subject: Initial commit --- Option/Option.h | 25 +++++++++++++++++++++++++ 1 file changed, 25 insertions(+) create mode 100644 Option/Option.h (limited to 'Option/Option.h') 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 +#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 -- cgit v1.2.3