Pastebin launched a little side project called HostCabi.net, check it out ;-)Don't like ads? PRO users don't see any ads ;-)
Guest

Untitled

By: a guest on Feb 9th, 2013  |  syntax: None  |  size: 0.52 KB  |  hits: 22  |  expires: Never
download  |  raw  |  embed  |  report abuse  |  print
Text below is selected. Please press Ctrl+C to copy to your clipboard. (⌘+C on Mac)
  1. class Log
  2. {
  3.     public:
  4.         void    encode(Encoder& encoder) const;
  5.         int     decode(Decoder& decoder);
  6.     private:
  7.         std::string sql_cmd;
  8. }
  9.        
  10. class LogHelper
  11. {
  12. public:
  13.         static void LogItemChange(const GameShare::GameItem& item, const PackageChangeDetails& pcd);
  14.         {
  15.                 Log log(get_item_change_sql(item,pcd);
  16.                 send_to_log_server();
  17.         }
  18.  
  19.  
  20. private:
  21.         static std::string get_item_change_sql(const GameShare::GameItem& item, const PackageChangeDetails& pcd);
  22. }