ToolMap
Loading...
Searching...
No Matches
tmstatsrecord.h
1/***************************************************************************
2 tmstatsrecord.h
3 -------------------
4 copyright : (C) 2011 CREALP Lucien Schreiber
5 ***************************************************************************/
6
7/***************************************************************************
8 * *
9 * This program is free software; you can redistribute it and/or modify *
10 * it under the terms of the GNU General Public License as published by *
11 * the Free Software Foundation; either version 2 of the License, or *
12 * (at your option) any later version. *
13 * *
14 ***************************************************************************/
15
16#ifndef _TMSTATSRECORD_H
17#define _TMSTATSRECORD_H
18
19// For compilers that support precompilation, includes "wx/wx.h".
20#include <wx/wxprec.h>
21
22// Include wxWidgets' headers
23#ifndef WX_PRECOMP
24#include <wx/wx.h>
25#endif
26
27#include <wx/filename.h>
28
29class DataBaseTM;
30
31class tmStatsData;
32
34 private:
35 DataBaseTM* m_pDB;
36
37 public:
38 tmStatsRecords(DataBaseTM* database);
39
40 virtual ~tmStatsRecords();
41
42 long Create(const tmStatsData& data);
43
44 bool Add(long recordid, const tmStatsData& data);
45
46 bool Load(long recordid, tmStatsData& data);
47
48 bool LoadTotal(tmStatsData& data);
49
50 bool Delete(long recordid);
51
52 bool ExportAll(const wxFileName& filename);
53
54 long GetCount();
55};
56
57#endif
Definition database_tm.h:80
Statistics data class.
Definition tmstats.h:35
Definition tmstatsrecord.h:33