CGMES_3_0_0
Loading...
Searching...
No Matches
Integer.hpp
1#ifndef INTEGER_H
2#define INTEGER_H
3
4#include <istream>
5#include <ostream>
6
7namespace CIMPP
8{
12 class Integer
13 {
14 public:
15 Integer() : value(0), initialized(false) {}
16 Integer(long int value) : value(value), initialized(true) {}
17
18 Integer& operator=(long int rop);
19 operator long int();
20
21 long int value;
22 bool initialized;
23
24 static const char debugName[];
25 const char* debugString() const;
26
27 Integer& operator+=(const Integer& rhs);
28 Integer& operator-=(const Integer& rhs);
29 Integer& operator*=(const Integer& rhs);
30 Integer& operator/=(const Integer& rhs);
31
32 friend std::istream& operator>>(std::istream& lop, Integer& rop);
33 friend std::ostream& operator<<(std::ostream& os, const Integer& obj);
34 };
35}
36#endif // INTEGER_H