]> git.stg.codes - stg.git/blobdiff - projects/stargazer/plugins/store/mysql/mysql_store.h
При записи детальной статистики данные теперь передаются не по указателю
[stg.git] / projects / stargazer / plugins / store / mysql / mysql_store.h
index 83a30e6a20a49cb33ef8bb4d160f75ab85ee486d..7b48712f10771829961b870da22f7374534b0529 100644 (file)
@@ -1,18 +1,19 @@
  /*
- $Revision: 1.4 $
- $Date: 2010/01/19 11:07:57 $
+ $Revision: 1.5 $
+ $Date: 2010/10/07 19:45:52 $
  */
 
 
-#ifndef FILE_STORE_H
-#define FILE_STORE_H
+#ifndef MYSQL_STORE_H
+#define MYSQL_STORE_H
+
+#include <mysql/mysql.h>
 
 #include <string>
 
 #include "base_settings.h"
 #include "base_store.h"
 #include "user_traff.h"
-#include <mysql/mysql.h>
 
 using namespace std;
 //-----------------------------------------------------------------------------
@@ -77,7 +78,7 @@ public:
                                     double freeMb,
                                     const std::string & reason) const;
 
-    virtual int WriteDetailedStat(const map<IP_DIR_PAIR, STAT_NODE> * statTree,
+    virtual int WriteDetailedStat(const map<IP_DIR_PAIR, STAT_NODE> & statTree,
                                   time_t lastStat,
                                   const string & login) const;