blob: eff732b1e316d6034f57cf846c2f51da4af961d6 (
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
|
#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
|