-
Notifications
You must be signed in to change notification settings - Fork 0
/
calculator_types.h
177 lines (128 loc) · 4.47 KB
/
calculator_types.h
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
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
/**
* Autogenerated by Thrift Compiler (1.0.0-dev)
*
* DO NOT EDIT UNLESS YOU ARE SURE THAT YOU KNOW WHAT YOU ARE DOING
* @generated
*/
#ifndef calculator_TYPES_H
#define calculator_TYPES_H
#include <thrift/Thrift.h>
#include <thrift/TApplicationException.h>
#include <thrift/protocol/TProtocol.h>
#include <thrift/transport/TTransport.h>
#include <thrift/cxxfunctional.h>
namespace foo { namespace bar { namespace baz {
struct OperationType {
enum type {
ADD = 0,
SUBTRACT = 1,
MULTIPLY = 2,
DIVIDE = 3
};
};
extern const std::map<int, const char*> _OperationType_VALUES_TO_NAMES;
class Operation;
class ArithmeticException;
class IllegalArgumentException;
typedef struct _Operation__isset {
_Operation__isset() : type(false), op1(false), op2(false) {}
bool type;
bool op1;
bool op2;
} _Operation__isset;
class Operation {
public:
static const char* ascii_fingerprint; // = "BDDE057032F8705658D01BF0018FBBF5";
static const uint8_t binary_fingerprint[16]; // = {0xBD,0xDE,0x05,0x70,0x32,0xF8,0x70,0x56,0x58,0xD0,0x1B,0xF0,0x01,0x8F,0xBB,0xF5};
Operation(const Operation&);
Operation& operator=(const Operation&);
Operation() : type((OperationType::type)0), op1(0), op2(0) {
}
virtual ~Operation() throw();
OperationType::type type;
double op1;
double op2;
_Operation__isset __isset;
void __set_type(const OperationType::type val);
void __set_op1(const double val);
void __set_op2(const double val);
bool operator == (const Operation & rhs) const
{
if (!(type == rhs.type))
return false;
if (!(op1 == rhs.op1))
return false;
if (!(op2 == rhs.op2))
return false;
return true;
}
bool operator != (const Operation &rhs) const {
return !(*this == rhs);
}
bool operator < (const Operation & ) const;
uint32_t read(::apache::thrift::protocol::TProtocol* iprot);
uint32_t write(::apache::thrift::protocol::TProtocol* oprot) const;
};
void swap(Operation &a, Operation &b);
typedef struct _ArithmeticException__isset {
_ArithmeticException__isset() : message(false) {}
bool message;
} _ArithmeticException__isset;
class ArithmeticException : public ::apache::thrift::TException {
public:
static const char* ascii_fingerprint; // = "EFB929595D312AC8F305D5A794CFEDA1";
static const uint8_t binary_fingerprint[16]; // = {0xEF,0xB9,0x29,0x59,0x5D,0x31,0x2A,0xC8,0xF3,0x05,0xD5,0xA7,0x94,0xCF,0xED,0xA1};
ArithmeticException(const ArithmeticException&);
ArithmeticException& operator=(const ArithmeticException&);
ArithmeticException() : message() {
}
virtual ~ArithmeticException() throw();
std::string message;
_ArithmeticException__isset __isset;
void __set_message(const std::string& val);
bool operator == (const ArithmeticException & rhs) const
{
if (!(message == rhs.message))
return false;
return true;
}
bool operator != (const ArithmeticException &rhs) const {
return !(*this == rhs);
}
bool operator < (const ArithmeticException & ) const;
uint32_t read(::apache::thrift::protocol::TProtocol* iprot);
uint32_t write(::apache::thrift::protocol::TProtocol* oprot) const;
};
void swap(ArithmeticException &a, ArithmeticException &b);
typedef struct _IllegalArgumentException__isset {
_IllegalArgumentException__isset() : message(false) {}
bool message;
} _IllegalArgumentException__isset;
class IllegalArgumentException : public ::apache::thrift::TException {
public:
static const char* ascii_fingerprint; // = "EFB929595D312AC8F305D5A794CFEDA1";
static const uint8_t binary_fingerprint[16]; // = {0xEF,0xB9,0x29,0x59,0x5D,0x31,0x2A,0xC8,0xF3,0x05,0xD5,0xA7,0x94,0xCF,0xED,0xA1};
IllegalArgumentException(const IllegalArgumentException&);
IllegalArgumentException& operator=(const IllegalArgumentException&);
IllegalArgumentException() : message() {
}
virtual ~IllegalArgumentException() throw();
std::string message;
_IllegalArgumentException__isset __isset;
void __set_message(const std::string& val);
bool operator == (const IllegalArgumentException & rhs) const
{
if (!(message == rhs.message))
return false;
return true;
}
bool operator != (const IllegalArgumentException &rhs) const {
return !(*this == rhs);
}
bool operator < (const IllegalArgumentException & ) const;
uint32_t read(::apache::thrift::protocol::TProtocol* iprot);
uint32_t write(::apache::thrift::protocol::TProtocol* oprot) const;
};
void swap(IllegalArgumentException &a, IllegalArgumentException &b);
}}} // namespace
#endif