Money Manager EX
An easy to use, money management application built with wxWidgets
Model_Budgetsplittransaction.h
Go to the documentation of this file.
1 /*******************************************************
2  Copyright (C) 2013,2014 James Higley
3 
4  This program is free software; you can redistribute it and/or modify
5  it under the terms of the GNU General Public License as published by
6  the Free Software Foundation; either version 2 of the License, or
7  (at your option) any later version.
8 
9  This program is distributed in the hope that it will be useful,
10  but WITHOUT ANY WARRANTY; without even the implied warranty of
11  MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
12  GNU General Public License for more details.
13 
14  You should have received a copy of the GNU General Public License
15  along with this program; if not, write to the Free Software
16  Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
17  ********************************************************/
18 
19 #ifndef MODEL_BUDGETSPLITTRANSACTIONS_H
20 #define MODEL_BUDGETSPLITTRANSACTIONS_H
21 
22 #include "Model.h"
24 
25 class Model_Budgetsplittransaction : public Model<DB_Table_BUDGETSPLITTRANSACTIONS_V1>
26 {
27 public:
30 
31 public:
38  static Model_Budgetsplittransaction& instance(wxSQLite3Database* db);
39 
45 
47 
48 public:
49  double get_total(const Data_Set& rows);
50  std::map<int64, Data_Set> get_all();
51  int update(Data_Set& rows, int64 transactionID);
52  bool remove(int64 id);
53 
54 public:
55  static const wxString refTypeName;
56 };
57 
58 #endif //
Model_Budgetsplittransaction()
Definition: Model_Budgetsplittransaction.cpp:24
Copyright: (c) 2013 - 2025 Guan Lisheng (guanlisheng@gmail.com) Copyright: (c) 2017 - 2018 Stefano Gi...
id
Definition: constants.h:125
std::map< int64, Data_Set > get_all()
Definition: Model_Budgetsplittransaction.cpp:68
int update(Data_Set &rows, int64 transactionID)
Definition: Model_Budgetsplittransaction.cpp:79
static const wxString refTypeName
Definition: Model_Budgetsplittransaction.h:55
Definition: Model.h:139
Definition: Model_Budgetsplittransaction.h:25
static Model_Budgetsplittransaction & instance()
Return the static instance address for Model_Budgetsplittransaction table Note: Assigning the address...
Definition: Model_Budgetsplittransaction.cpp:48
A container to hold list of Data records for the table.
Definition: DB_Table_Budgetsplittransactions_V1.h:29
~Model_Budgetsplittransaction()
Definition: Model_Budgetsplittransaction.cpp:29
double get_total(const Data_Set &rows)
Definition: Model_Budgetsplittransaction.cpp:53
wxLongLong int64
Definition: customfieldlistdialog.h:26