ICG 2
Electric Boogaloo
Value.hpp
Go to the documentation of this file.
1 #ifndef VALUE_H
2 #define VALUE_H
3 
4 #include <string>
5 
9 class Value {
10 
11  public:
12 
16  virtual ~Value() {};
17 
21  virtual void print(std::ostream &s) const = 0;
22 
26  virtual std::string toString() const = 0;
27 
28  enum ValueType {
32  POINTER
33  };
34 
35  virtual ValueType getValueType() const = 0;
36 
37 };
38 #endif
Value is an abstract base-class that represents a value on the right-hand-side of an assignment.
Definition: Value.hpp:9
virtual void print(std::ostream &s) const =0
ValueType
Definition: Value.hpp:28
@ POINTER
Definition: Value.hpp:32
@ INTEGER
Definition: Value.hpp:30
@ STRING
Definition: Value.hpp:29
@ FLOATING_POINT
Definition: Value.hpp:31
virtual ValueType getValueType() const =0
virtual std::string toString() const =0
virtual ~Value()
Definition: Value.hpp:16