/**
* Autogenerated by Thrift
*
* DO NOT EDIT UNLESS YOU ARE SURE THAT YOU KNOW WHAT YOU ARE DOING
*/
#ifndef employee_TYPES_H
#define employee_TYPES_H
#include <Thrift.h>
#include <protocol/TProtocol.h>
#include <transport/TTransport.h>
namespace com { namespace XXXX { namespace thrift { namespace employee {
class SavingsInfo {
public:
static const char* ascii_fingerprint; // = "C712EF0DA8599E55DF4D0F13415232EF";
static const uint8_t binary_fingerprint[16]; // = {0xC7,0x12,0xEF,0x0D,0xA8,0x59,0x9E,0x55,0xDF,0x4D,0x0F,0x13,0x41,0x52,0x32,0xEF};
SavingsInfo() : name(""), amount(0) {
}
virtual ~SavingsInfo() throw() {}
std::string name;
double amount;
struct __isset {
__isset() : name(false), amount(false) {}
bool name;
bool amount;
} __isset;
bool operator == (const SavingsInfo & rhs) const
{
if (!(name == rhs.name))
return false;
if (!(amount == rhs.amount))
return false;
return true;
}
bool operator != (const SavingsInfo &rhs) const {
return !(*this == rhs);
}
bool operator < (const SavingsInfo & ) const;
uint32_t read(::apache::thrift::protocol::TProtocol* iprot);
uint32_t write(::apache::thrift::protocol::TProtocol* oprot) const;
};
class EmployeeInfo {
public:
static const char* ascii_fingerprint; // = "A4FF48ACFB0D366A1E3031B5F13B70F0";
static const uint8_t binary_fingerprint[16]; // = {0xA4,0xFF,0x48,0xAC,0xFB,0x0D,0x36,0x6A,0x1E,0x30,0x31,0xB5,0xF1,0x3B,0x70,0xF0};
EmployeeInfo() : id(0), name(""), salary(0), contract(0) {
}
virtual ~EmployeeInfo() throw() {}
int32_t id;
std::string name;
double salary;
bool contract;
std::set<std::string> dependents;
std::set<SavingsInfo> savings;
struct __isset {
__isset() : id(false), name(false), salary(false), contract(false), dependents(false), savings(false) {}
bool id;
bool name;
bool salary;
bool contract;
bool dependents;
bool savings;
} __isset;
bool operator == (const EmployeeInfo & rhs) const
{
if (!(id == rhs.id))
return false;
if (!(name == rhs.name))
return false;
if (!(salary == rhs.salary))
return false;
if (!(contract == rhs.contract))
return false;
if (!(dependents == rhs.dependents))
return false;
if (!(savings == rhs.savings))
return false;
return true;
}
bool operator != (const EmployeeInfo &rhs) const {
return !(*this == rhs);
}
bool operator < (const EmployeeInfo & ) const;
uint32_t read(::apache::thrift::protocol::TProtocol* iprot);
uint32_t write(::apache::thrift::protocol::TProtocol* oprot) const;
};
}}}} // namespace
#endif