Want more features on Pastebin? Sign Up, it's FREE!
Guest

Raghava

By: a guest on Jul 25th, 2010  |  syntax: C++  |  size: 2.73 KB  |  views: 49  |  expires: Never
download  |  raw  |  embed  |  report abuse  |  print
This paste has a previous version, view the difference. Text below is selected. Please press Ctrl+C to copy to your clipboard. (⌘+C on Mac)
  1. /**
  2.  * Autogenerated by Thrift
  3.  *
  4.  * DO NOT EDIT UNLESS YOU ARE SURE THAT YOU KNOW WHAT YOU ARE DOING
  5.  */
  6. #ifndef employee_TYPES_H
  7. #define employee_TYPES_H
  8.  
  9. #include <Thrift.h>
  10. #include <protocol/TProtocol.h>
  11. #include <transport/TTransport.h>
  12.  
  13.  
  14.  
  15. namespace com { namespace XXXX { namespace thrift { namespace employee {
  16.  
  17. class SavingsInfo {
  18.  public:
  19.  
  20.   static const char* ascii_fingerprint; // = "C712EF0DA8599E55DF4D0F13415232EF";
  21.   static const uint8_t binary_fingerprint[16]; // = {0xC7,0x12,0xEF,0x0D,0xA8,0x59,0x9E,0x55,0xDF,0x4D,0x0F,0x13,0x41,0x52,0x32,0xEF};
  22.  
  23.   SavingsInfo() : name(""), amount(0) {
  24.   }
  25.  
  26.   virtual ~SavingsInfo() throw() {}
  27.  
  28.   std::string name;
  29.   double amount;
  30.  
  31.   struct __isset {
  32.     __isset() : name(false), amount(false) {}
  33.     bool name;
  34.     bool amount;
  35.   } __isset;
  36.  
  37.   bool operator == (const SavingsInfo & rhs) const
  38.   {
  39.     if (!(name == rhs.name))
  40.       return false;
  41.     if (!(amount == rhs.amount))
  42.       return false;
  43.     return true;
  44.   }
  45.   bool operator != (const SavingsInfo &rhs) const {
  46.     return !(*this == rhs);
  47.   }
  48.  
  49.   bool operator < (const SavingsInfo & ) const;
  50.  
  51.   uint32_t read(::apache::thrift::protocol::TProtocol* iprot);
  52.   uint32_t write(::apache::thrift::protocol::TProtocol* oprot) const;
  53.  
  54. };
  55.  
  56. class EmployeeInfo {
  57.  public:
  58.  
  59.   static const char* ascii_fingerprint; // = "A4FF48ACFB0D366A1E3031B5F13B70F0";
  60.   static const uint8_t binary_fingerprint[16]; // = {0xA4,0xFF,0x48,0xAC,0xFB,0x0D,0x36,0x6A,0x1E,0x30,0x31,0xB5,0xF1,0x3B,0x70,0xF0};
  61.  
  62.   EmployeeInfo() : id(0), name(""), salary(0), contract(0) {
  63.   }
  64.  
  65.   virtual ~EmployeeInfo() throw() {}
  66.  
  67.   int32_t id;
  68.   std::string name;
  69.   double salary;
  70.   bool contract;
  71.   std::set<std::string>  dependents;
  72.   std::set<SavingsInfo>  savings;
  73.  
  74.   struct __isset {
  75.     __isset() : id(false), name(false), salary(false), contract(false), dependents(false), savings(false) {}
  76.     bool id;
  77.     bool name;
  78.     bool salary;
  79.     bool contract;
  80.     bool dependents;
  81.     bool savings;
  82.   } __isset;
  83.  
  84.   bool operator == (const EmployeeInfo & rhs) const
  85.   {
  86.     if (!(id == rhs.id))
  87.       return false;
  88.     if (!(name == rhs.name))
  89.       return false;
  90.     if (!(salary == rhs.salary))
  91.       return false;
  92.     if (!(contract == rhs.contract))
  93.       return false;
  94.     if (!(dependents == rhs.dependents))
  95.       return false;
  96.     if (!(savings == rhs.savings))
  97.       return false;
  98.     return true;
  99.   }
  100.   bool operator != (const EmployeeInfo &rhs) const {
  101.     return !(*this == rhs);
  102.   }
  103.  
  104.   bool operator < (const EmployeeInfo & ) const;
  105.  
  106.   uint32_t read(::apache::thrift::protocol::TProtocol* iprot);
  107.   uint32_t write(::apache::thrift::protocol::TProtocol* oprot) const;
  108.  
  109. };
  110.  
  111. }}}} // namespace
  112.  
  113. #endif
clone this paste RAW Paste Data