blob: f30d5dee73dd3943173ab44dffff09d02147820d (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
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
|