SHARE
TWEET

Untitled

a guest Feb 9th, 2013 23 Never
  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. }
RAW Paste Data
Top