From: <gua...@us...> - 2012-04-13 02:10:05
|
Revision: 2157 http://moneymanagerex.svn.sourceforge.net/moneymanagerex/?rev=2157&view=rev Author: guanlisheng Date: 2012-04-13 02:09:58 +0000 (Fri, 13 Apr 2012) Log Message: ----------- format Modified Paths: -------------- branches/lua_integration/mmex/src/mmex_db_view.h branches/lua_integration/mmex/utils/mmex.py Modified: branches/lua_integration/mmex/src/mmex_db_view.h =================================================================== --- branches/lua_integration/mmex/src/mmex_db_view.h 2012-04-13 02:02:15 UTC (rev 2156) +++ branches/lua_integration/mmex/src/mmex_db_view.h 2012-04-13 02:09:58 UTC (rev 2157) @@ -5,12 +5,12 @@ * * @file * - * @author [mmex.py] + * @author [utils/mmex.py] * * @brief * * Revision History: - * AUTO GENERATED at 2012-04-11 22:44:50.739000. + * AUTO GENERATED at 2012-04-13 10:08:49.348666. * DO NOT EDIT! */ //============================================================================= @@ -42,19 +42,19 @@ { Self* view_; - int ACCOUNTID; //primay key - wxString ACCOUNTNAME; - wxString ACCOUNTTYPE; - wxString ACCOUNTNUM; - wxString STATUS; - wxString NOTES; - wxString HELDAT; - wxString WEBSITE; - wxString CONTACTINFO; - wxString ACCESSINFO; - double INITIALBAL; - wxString FAVORITEACCT; - int CURRENCYID; + int ACCOUNTID;// primay key + wxString ACCOUNTNAME; + wxString ACCOUNTTYPE; + wxString ACCOUNTNUM; + wxString STATUS; + wxString NOTES; + wxString HELDAT; + wxString WEBSITE; + wxString CONTACTINFO; + wxString ACCESSINFO; + double INITIALBAL; + wxString FAVORITEACCT; + int CURRENCYID; int id() const { return ACCOUNTID; } void id(int id) { ACCOUNTID = id; } @@ -88,7 +88,7 @@ bool save(wxSQLite3Database* db) { - if (! view_ || !db) + if (!view_ || !db) { wxLogError(wxT("can not save")); return false; @@ -99,7 +99,7 @@ bool remove(wxSQLite3Database* db) { - if (! view_ || !db) + if (!view_ || !db) { wxLogError(wxT("can not remove")); return false; @@ -189,7 +189,7 @@ bool save(Self::Data* entity, wxSQLite3Database* db) { wxString sql = wxEmptyString; - if (entity->id() < 0) //new & insert + if (entity->id() < 0) // new & insert { sql = wxT("INSERT INTO ACCOUNTLIST_V1(ACCOUNTNAME, ACCOUNTTYPE, ACCOUNTNUM, STATUS, NOTES, HELDAT, WEBSITE, CONTACTINFO, ACCESSINFO, INITIALBAL, FAVORITEACCT, CURRENCYID) VALUES(?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?)"); } @@ -220,7 +220,7 @@ stmt.ExecuteUpdate(); stmt.Finalize(); } - catch(wxSQLite3Exception &e) + catch(const wxSQLite3Exception &e) { wxLogError(wxT("ACCOUNTLIST_V1: Exception %s"), e.GetMessage().c_str()); return false; @@ -241,7 +241,7 @@ stmt.ExecuteUpdate(); stmt.Finalize(); } - catch(wxSQLite3Exception &e) + catch(const wxSQLite3Exception &e) { wxLogError(wxT("ACCOUNTLIST_V1: Exception %s"), e.GetMessage().c_str()); return false; @@ -276,7 +276,7 @@ entity = new Self::Data(q, this); stmt.Finalize(); } - catch(wxSQLite3Exception &e) + catch(const wxSQLite3Exception &e) { wxLogError(wxT("ACCOUNTLIST_V1: Exception %s"), e.GetMessage().c_str()); } @@ -299,7 +299,7 @@ q.Finalize(); } - catch(wxSQLite3Exception &e) + catch(const wxSQLite3Exception &e) { wxLogError(wxT("ACCOUNTLIST_V1: Exception %s"), e.GetMessage().c_str()); } @@ -319,14 +319,14 @@ { Self* view_; - int ASSETID; //primay key - wxString STARTDATE; - wxString ASSETNAME; - double VALUE; - wxString VALUECHANGE; - wxString NOTES; - double VALUECHANGERATE; - wxString ASSETTYPE; + int ASSETID;// primay key + wxString STARTDATE; + wxString ASSETNAME; + double VALUE; + wxString VALUECHANGE; + wxString NOTES; + double VALUECHANGERATE; + wxString ASSETTYPE; int id() const { return ASSETID; } void id(int id) { ASSETID = id; } @@ -355,7 +355,7 @@ bool save(wxSQLite3Database* db) { - if (! view_ || !db) + if (!view_ || !db) { wxLogError(wxT("can not save")); return false; @@ -366,7 +366,7 @@ bool remove(wxSQLite3Database* db) { - if (! view_ || !db) + if (!view_ || !db) { wxLogError(wxT("can not remove")); return false; @@ -441,7 +441,7 @@ bool save(Self::Data* entity, wxSQLite3Database* db) { wxString sql = wxEmptyString; - if (entity->id() < 0) //new & insert + if (entity->id() < 0) // new & insert { sql = wxT("INSERT INTO ASSETS_V1(STARTDATE, ASSETNAME, VALUE, VALUECHANGE, NOTES, VALUECHANGERATE, ASSETTYPE) VALUES(?, ?, ?, ?, ?, ?, ?)"); } @@ -467,7 +467,7 @@ stmt.ExecuteUpdate(); stmt.Finalize(); } - catch(wxSQLite3Exception &e) + catch(const wxSQLite3Exception &e) { wxLogError(wxT("ASSETS_V1: Exception %s"), e.GetMessage().c_str()); return false; @@ -488,7 +488,7 @@ stmt.ExecuteUpdate(); stmt.Finalize(); } - catch(wxSQLite3Exception &e) + catch(const wxSQLite3Exception &e) { wxLogError(wxT("ASSETS_V1: Exception %s"), e.GetMessage().c_str()); return false; @@ -523,7 +523,7 @@ entity = new Self::Data(q, this); stmt.Finalize(); } - catch(wxSQLite3Exception &e) + catch(const wxSQLite3Exception &e) { wxLogError(wxT("ASSETS_V1: Exception %s"), e.GetMessage().c_str()); } @@ -546,7 +546,7 @@ q.Finalize(); } - catch(wxSQLite3Exception &e) + catch(const wxSQLite3Exception &e) { wxLogError(wxT("ASSETS_V1: Exception %s"), e.GetMessage().c_str()); } @@ -566,23 +566,23 @@ { Self* view_; - int BDID; //primay key - int ACCOUNTID; - int TOACCOUNTID; - int PAYEEID; - wxString TRANSCODE; - double TRANSAMOUNT; - wxString STATUS; - wxString TRANSACTIONNUMBER; - wxString NOTES; - int CATEGID; - int SUBCATEGID; - wxString TRANSDATE; - int FOLLOWUPID; - double TOTRANSAMOUNT; - double REPEATS; - wxString NEXTOCCURRENCEDATE; - double NUMOCCURRENCES; + int BDID;// primay key + int ACCOUNTID; + int TOACCOUNTID; + int PAYEEID; + wxString TRANSCODE; + double TRANSAMOUNT; + wxString STATUS; + wxString TRANSACTIONNUMBER; + wxString NOTES; + int CATEGID; + int SUBCATEGID; + wxString TRANSDATE; + int FOLLOWUPID; + double TOTRANSAMOUNT; + double REPEATS; + wxString NEXTOCCURRENCEDATE; + double NUMOCCURRENCES; int id() const { return BDID; } void id(int id) { BDID = id; } @@ -628,7 +628,7 @@ bool save(wxSQLite3Database* db) { - if (! view_ || !db) + if (!view_ || !db) { wxLogError(wxT("can not save")); return false; @@ -639,7 +639,7 @@ bool remove(wxSQLite3Database* db) { - if (! view_ || !db) + if (!view_ || !db) { wxLogError(wxT("can not remove")); return false; @@ -741,7 +741,7 @@ bool save(Self::Data* entity, wxSQLite3Database* db) { wxString sql = wxEmptyString; - if (entity->id() < 0) //new & insert + if (entity->id() < 0) // new & insert { sql = wxT("INSERT INTO BILLSDEPOSITS_V1(ACCOUNTID, TOACCOUNTID, PAYEEID, TRANSCODE, TRANSAMOUNT, STATUS, TRANSACTIONNUMBER, NOTES, CATEGID, SUBCATEGID, TRANSDATE, FOLLOWUPID, TOTRANSAMOUNT, REPEATS, NEXTOCCURRENCEDATE, NUMOCCURRENCES) VALUES(?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?)"); } @@ -776,7 +776,7 @@ stmt.ExecuteUpdate(); stmt.Finalize(); } - catch(wxSQLite3Exception &e) + catch(const wxSQLite3Exception &e) { wxLogError(wxT("BILLSDEPOSITS_V1: Exception %s"), e.GetMessage().c_str()); return false; @@ -797,7 +797,7 @@ stmt.ExecuteUpdate(); stmt.Finalize(); } - catch(wxSQLite3Exception &e) + catch(const wxSQLite3Exception &e) { wxLogError(wxT("BILLSDEPOSITS_V1: Exception %s"), e.GetMessage().c_str()); return false; @@ -832,7 +832,7 @@ entity = new Self::Data(q, this); stmt.Finalize(); } - catch(wxSQLite3Exception &e) + catch(const wxSQLite3Exception &e) { wxLogError(wxT("BILLSDEPOSITS_V1: Exception %s"), e.GetMessage().c_str()); } @@ -855,7 +855,7 @@ q.Finalize(); } - catch(wxSQLite3Exception &e) + catch(const wxSQLite3Exception &e) { wxLogError(wxT("BILLSDEPOSITS_V1: Exception %s"), e.GetMessage().c_str()); } @@ -875,11 +875,11 @@ { Self* view_; - int SPLITTRANSID; //primay key - int TRANSID; - int CATEGID; - int SUBCATEGID; - double SPLITTRANSAMOUNT; + int SPLITTRANSID;// primay key + int TRANSID; + int CATEGID; + int SUBCATEGID; + double SPLITTRANSAMOUNT; int id() const { return SPLITTRANSID; } void id(int id) { SPLITTRANSID = id; } @@ -907,7 +907,7 @@ bool save(wxSQLite3Database* db) { - if (! view_ || !db) + if (!view_ || !db) { wxLogError(wxT("can not save")); return false; @@ -918,7 +918,7 @@ bool remove(wxSQLite3Database* db) { - if (! view_ || !db) + if (!view_ || !db) { wxLogError(wxT("can not remove")); return false; @@ -984,7 +984,7 @@ bool save(Self::Data* entity, wxSQLite3Database* db) { wxString sql = wxEmptyString; - if (entity->id() < 0) //new & insert + if (entity->id() < 0) // new & insert { sql = wxT("INSERT INTO BUDGETSPLITTRANSACTIONS_V1(TRANSID, CATEGID, SUBCATEGID, SPLITTRANSAMOUNT) VALUES(?, ?, ?, ?)"); } @@ -1007,7 +1007,7 @@ stmt.ExecuteUpdate(); stmt.Finalize(); } - catch(wxSQLite3Exception &e) + catch(const wxSQLite3Exception &e) { wxLogError(wxT("BUDGETSPLITTRANSACTIONS_V1: Exception %s"), e.GetMessage().c_str()); return false; @@ -1028,7 +1028,7 @@ stmt.ExecuteUpdate(); stmt.Finalize(); } - catch(wxSQLite3Exception &e) + catch(const wxSQLite3Exception &e) { wxLogError(wxT("BUDGETSPLITTRANSACTIONS_V1: Exception %s"), e.GetMessage().c_str()); return false; @@ -1063,7 +1063,7 @@ entity = new Self::Data(q, this); stmt.Finalize(); } - catch(wxSQLite3Exception &e) + catch(const wxSQLite3Exception &e) { wxLogError(wxT("BUDGETSPLITTRANSACTIONS_V1: Exception %s"), e.GetMessage().c_str()); } @@ -1086,7 +1086,7 @@ q.Finalize(); } - catch(wxSQLite3Exception &e) + catch(const wxSQLite3Exception &e) { wxLogError(wxT("BUDGETSPLITTRANSACTIONS_V1: Exception %s"), e.GetMessage().c_str()); } @@ -1106,12 +1106,12 @@ { Self* view_; - int BUDGETENTRYID; //primay key - int BUDGETYEARID; - int CATEGID; - int SUBCATEGID; - wxString PERIOD; - double AMOUNT; + int BUDGETENTRYID;// primay key + int BUDGETYEARID; + int CATEGID; + int SUBCATEGID; + wxString PERIOD; + double AMOUNT; int id() const { return BUDGETENTRYID; } void id(int id) { BUDGETENTRYID = id; } @@ -1140,7 +1140,7 @@ bool save(wxSQLite3Database* db) { - if (! view_ || !db) + if (!view_ || !db) { wxLogError(wxT("can not save")); return false; @@ -1151,7 +1151,7 @@ bool remove(wxSQLite3Database* db) { - if (! view_ || !db) + if (!view_ || !db) { wxLogError(wxT("can not remove")); return false; @@ -1220,7 +1220,7 @@ bool save(Self::Data* entity, wxSQLite3Database* db) { wxString sql = wxEmptyString; - if (entity->id() < 0) //new & insert + if (entity->id() < 0) // new & insert { sql = wxT("INSERT INTO BUDGETTABLE_V1(BUDGETYEARID, CATEGID, SUBCATEGID, PERIOD, AMOUNT) VALUES(?, ?, ?, ?, ?)"); } @@ -1244,7 +1244,7 @@ stmt.ExecuteUpdate(); stmt.Finalize(); } - catch(wxSQLite3Exception &e) + catch(const wxSQLite3Exception &e) { wxLogError(wxT("BUDGETTABLE_V1: Exception %s"), e.GetMessage().c_str()); return false; @@ -1265,7 +1265,7 @@ stmt.ExecuteUpdate(); stmt.Finalize(); } - catch(wxSQLite3Exception &e) + catch(const wxSQLite3Exception &e) { wxLogError(wxT("BUDGETTABLE_V1: Exception %s"), e.GetMessage().c_str()); return false; @@ -1300,7 +1300,7 @@ entity = new Self::Data(q, this); stmt.Finalize(); } - catch(wxSQLite3Exception &e) + catch(const wxSQLite3Exception &e) { wxLogError(wxT("BUDGETTABLE_V1: Exception %s"), e.GetMessage().c_str()); } @@ -1323,7 +1323,7 @@ q.Finalize(); } - catch(wxSQLite3Exception &e) + catch(const wxSQLite3Exception &e) { wxLogError(wxT("BUDGETTABLE_V1: Exception %s"), e.GetMessage().c_str()); } @@ -1343,8 +1343,8 @@ { Self* view_; - int BUDGETYEARID; //primay key - wxString BUDGETYEARNAME; + int BUDGETYEARID;// primay key + wxString BUDGETYEARNAME; int id() const { return BUDGETYEARID; } void id(int id) { BUDGETYEARID = id; } @@ -1365,7 +1365,7 @@ bool save(wxSQLite3Database* db) { - if (! view_ || !db) + if (!view_ || !db) { wxLogError(wxT("can not save")); return false; @@ -1376,7 +1376,7 @@ bool remove(wxSQLite3Database* db) { - if (! view_ || !db) + if (!view_ || !db) { wxLogError(wxT("can not remove")); return false; @@ -1433,7 +1433,7 @@ bool save(Self::Data* entity, wxSQLite3Database* db) { wxString sql = wxEmptyString; - if (entity->id() < 0) //new & insert + if (entity->id() < 0) // new & insert { sql = wxT("INSERT INTO BUDGETYEAR_V1(BUDGETYEARNAME) VALUES(?)"); } @@ -1453,7 +1453,7 @@ stmt.ExecuteUpdate(); stmt.Finalize(); } - catch(wxSQLite3Exception &e) + catch(const wxSQLite3Exception &e) { wxLogError(wxT("BUDGETYEAR_V1: Exception %s"), e.GetMessage().c_str()); return false; @@ -1474,7 +1474,7 @@ stmt.ExecuteUpdate(); stmt.Finalize(); } - catch(wxSQLite3Exception &e) + catch(const wxSQLite3Exception &e) { wxLogError(wxT("BUDGETYEAR_V1: Exception %s"), e.GetMessage().c_str()); return false; @@ -1509,7 +1509,7 @@ entity = new Self::Data(q, this); stmt.Finalize(); } - catch(wxSQLite3Exception &e) + catch(const wxSQLite3Exception &e) { wxLogError(wxT("BUDGETYEAR_V1: Exception %s"), e.GetMessage().c_str()); } @@ -1532,7 +1532,7 @@ q.Finalize(); } - catch(wxSQLite3Exception &e) + catch(const wxSQLite3Exception &e) { wxLogError(wxT("BUDGETYEAR_V1: Exception %s"), e.GetMessage().c_str()); } @@ -1552,8 +1552,8 @@ { Self* view_; - int CATEGID; //primay key - wxString CATEGNAME; + int CATEGID;// primay key + wxString CATEGNAME; int id() const { return CATEGID; } void id(int id) { CATEGID = id; } @@ -1574,7 +1574,7 @@ bool save(wxSQLite3Database* db) { - if (! view_ || !db) + if (!view_ || !db) { wxLogError(wxT("can not save")); return false; @@ -1585,7 +1585,7 @@ bool remove(wxSQLite3Database* db) { - if (! view_ || !db) + if (!view_ || !db) { wxLogError(wxT("can not remove")); return false; @@ -1642,7 +1642,7 @@ bool save(Self::Data* entity, wxSQLite3Database* db) { wxString sql = wxEmptyString; - if (entity->id() < 0) //new & insert + if (entity->id() < 0) // new & insert { sql = wxT("INSERT INTO CATEGORY_V1(CATEGNAME) VALUES(?)"); } @@ -1662,7 +1662,7 @@ stmt.ExecuteUpdate(); stmt.Finalize(); } - catch(wxSQLite3Exception &e) + catch(const wxSQLite3Exception &e) { wxLogError(wxT("CATEGORY_V1: Exception %s"), e.GetMessage().c_str()); return false; @@ -1683,7 +1683,7 @@ stmt.ExecuteUpdate(); stmt.Finalize(); } - catch(wxSQLite3Exception &e) + catch(const wxSQLite3Exception &e) { wxLogError(wxT("CATEGORY_V1: Exception %s"), e.GetMessage().c_str()); return false; @@ -1718,7 +1718,7 @@ entity = new Self::Data(q, this); stmt.Finalize(); } - catch(wxSQLite3Exception &e) + catch(const wxSQLite3Exception &e) { wxLogError(wxT("CATEGORY_V1: Exception %s"), e.GetMessage().c_str()); } @@ -1741,7 +1741,7 @@ q.Finalize(); } - catch(wxSQLite3Exception &e) + catch(const wxSQLite3Exception &e) { wxLogError(wxT("CATEGORY_V1: Exception %s"), e.GetMessage().c_str()); } @@ -1761,20 +1761,20 @@ { Self* view_; - int TRANSID; //primay key - int ACCOUNTID; - int TOACCOUNTID; - int PAYEEID; - wxString TRANSCODE; - double TRANSAMOUNT; - wxString STATUS; - wxString TRANSACTIONNUMBER; - wxString NOTES; - int CATEGID; - int SUBCATEGID; - wxString TRANSDATE; - int FOLLOWUPID; - double TOTRANSAMOUNT; + int TRANSID;// primay key + int ACCOUNTID; + int TOACCOUNTID; + int PAYEEID; + wxString TRANSCODE; + double TRANSAMOUNT; + wxString STATUS; + wxString TRANSACTIONNUMBER; + wxString NOTES; + int CATEGID; + int SUBCATEGID; + wxString TRANSDATE; + int FOLLOWUPID; + double TOTRANSAMOUNT; int id() const { return TRANSID; } void id(int id) { TRANSID = id; } @@ -1815,7 +1815,7 @@ bool save(wxSQLite3Database* db) { - if (! view_ || !db) + if (!view_ || !db) { wxLogError(wxT("can not save")); return false; @@ -1826,7 +1826,7 @@ bool remove(wxSQLite3Database* db) { - if (! view_ || !db) + if (!view_ || !db) { wxLogError(wxT("can not remove")); return false; @@ -1919,7 +1919,7 @@ bool save(Self::Data* entity, wxSQLite3Database* db) { wxString sql = wxEmptyString; - if (entity->id() < 0) //new & insert + if (entity->id() < 0) // new & insert { sql = wxT("INSERT INTO CHECKINGACCOUNT_V1(ACCOUNTID, TOACCOUNTID, PAYEEID, TRANSCODE, TRANSAMOUNT, STATUS, TRANSACTIONNUMBER, NOTES, CATEGID, SUBCATEGID, TRANSDATE, FOLLOWUPID, TOTRANSAMOUNT) VALUES(?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?)"); } @@ -1951,7 +1951,7 @@ stmt.ExecuteUpdate(); stmt.Finalize(); } - catch(wxSQLite3Exception &e) + catch(const wxSQLite3Exception &e) { wxLogError(wxT("CHECKINGACCOUNT_V1: Exception %s"), e.GetMessage().c_str()); return false; @@ -1972,7 +1972,7 @@ stmt.ExecuteUpdate(); stmt.Finalize(); } - catch(wxSQLite3Exception &e) + catch(const wxSQLite3Exception &e) { wxLogError(wxT("CHECKINGACCOUNT_V1: Exception %s"), e.GetMessage().c_str()); return false; @@ -2007,7 +2007,7 @@ entity = new Self::Data(q, this); stmt.Finalize(); } - catch(wxSQLite3Exception &e) + catch(const wxSQLite3Exception &e) { wxLogError(wxT("CHECKINGACCOUNT_V1: Exception %s"), e.GetMessage().c_str()); } @@ -2030,7 +2030,7 @@ q.Finalize(); } - catch(wxSQLite3Exception &e) + catch(const wxSQLite3Exception &e) { wxLogError(wxT("CHECKINGACCOUNT_V1: Exception %s"), e.GetMessage().c_str()); } @@ -2050,17 +2050,17 @@ { Self* view_; - int CURRENCYID; //primay key - wxString CURRENCYNAME; - wxString PFX_SYMBOL; - wxString SFX_SYMBOL; - wxString DECIMAL_POINT; - wxString GROUP_SEPARATOR; - wxString UNIT_NAME; - wxString CENT_NAME; - double SCALE; - double BASECONVRATE; - wxString CURRENCY_SYMBOL; + int CURRENCYID;// primay key + wxString CURRENCYNAME; + wxString PFX_SYMBOL; + wxString SFX_SYMBOL; + wxString DECIMAL_POINT; + wxString GROUP_SEPARATOR; + wxString UNIT_NAME; + wxString CENT_NAME; + double SCALE; + double BASECONVRATE; + wxString CURRENCY_SYMBOL; int id() const { return CURRENCYID; } void id(int id) { CURRENCYID = id; } @@ -2092,7 +2092,7 @@ bool save(wxSQLite3Database* db) { - if (! view_ || !db) + if (!view_ || !db) { wxLogError(wxT("can not save")); return false; @@ -2103,7 +2103,7 @@ bool remove(wxSQLite3Database* db) { - if (! view_ || !db) + if (!view_ || !db) { wxLogError(wxT("can not remove")); return false; @@ -2187,7 +2187,7 @@ bool save(Self::Data* entity, wxSQLite3Database* db) { wxString sql = wxEmptyString; - if (entity->id() < 0) //new & insert + if (entity->id() < 0) // new & insert { sql = wxT("INSERT INTO CURRENCYFORMATS_V1(CURRENCYNAME, PFX_SYMBOL, SFX_SYMBOL, DECIMAL_POINT, GROUP_SEPARATOR, UNIT_NAME, CENT_NAME, SCALE, BASECONVRATE, CURRENCY_SYMBOL) VALUES(?, ?, ?, ?, ?, ?, ?, ?, ?, ?)"); } @@ -2216,7 +2216,7 @@ stmt.ExecuteUpdate(); stmt.Finalize(); } - catch(wxSQLite3Exception &e) + catch(const wxSQLite3Exception &e) { wxLogError(wxT("CURRENCYFORMATS_V1: Exception %s"), e.GetMessage().c_str()); return false; @@ -2237,7 +2237,7 @@ stmt.ExecuteUpdate(); stmt.Finalize(); } - catch(wxSQLite3Exception &e) + catch(const wxSQLite3Exception &e) { wxLogError(wxT("CURRENCYFORMATS_V1: Exception %s"), e.GetMessage().c_str()); return false; @@ -2272,7 +2272,7 @@ entity = new Self::Data(q, this); stmt.Finalize(); } - catch(wxSQLite3Exception &e) + catch(const wxSQLite3Exception &e) { wxLogError(wxT("CURRENCYFORMATS_V1: Exception %s"), e.GetMessage().c_str()); } @@ -2295,7 +2295,7 @@ q.Finalize(); } - catch(wxSQLite3Exception &e) + catch(const wxSQLite3Exception &e) { wxLogError(wxT("CURRENCYFORMATS_V1: Exception %s"), e.GetMessage().c_str()); } @@ -2315,9 +2315,9 @@ { Self* view_; - int INFOID; //primay key - wxString INFONAME; - wxString INFOVALUE; + int INFOID;// primay key + wxString INFONAME; + wxString INFOVALUE; int id() const { return INFOID; } void id(int id) { INFOID = id; } @@ -2339,7 +2339,7 @@ bool save(wxSQLite3Database* db) { - if (! view_ || !db) + if (!view_ || !db) { wxLogError(wxT("can not save")); return false; @@ -2350,7 +2350,7 @@ bool remove(wxSQLite3Database* db) { - if (! view_ || !db) + if (!view_ || !db) { wxLogError(wxT("can not remove")); return false; @@ -2410,7 +2410,7 @@ bool save(Self::Data* entity, wxSQLite3Database* db) { wxString sql = wxEmptyString; - if (entity->id() < 0) //new & insert + if (entity->id() < 0) // new & insert { sql = wxT("INSERT INTO INFOTABLE_V1(INFONAME, INFOVALUE) VALUES(?, ?)"); } @@ -2431,7 +2431,7 @@ stmt.ExecuteUpdate(); stmt.Finalize(); } - catch(wxSQLite3Exception &e) + catch(const wxSQLite3Exception &e) { wxLogError(wxT("INFOTABLE_V1: Exception %s"), e.GetMessage().c_str()); return false; @@ -2452,7 +2452,7 @@ stmt.ExecuteUpdate(); stmt.Finalize(); } - catch(wxSQLite3Exception &e) + catch(const wxSQLite3Exception &e) { wxLogError(wxT("INFOTABLE_V1: Exception %s"), e.GetMessage().c_str()); return false; @@ -2487,7 +2487,7 @@ entity = new Self::Data(q, this); stmt.Finalize(); } - catch(wxSQLite3Exception &e) + catch(const wxSQLite3Exception &e) { wxLogError(wxT("INFOTABLE_V1: Exception %s"), e.GetMessage().c_str()); } @@ -2510,7 +2510,7 @@ q.Finalize(); } - catch(wxSQLite3Exception &e) + catch(const wxSQLite3Exception &e) { wxLogError(wxT("INFOTABLE_V1: Exception %s"), e.GetMessage().c_str()); } @@ -2530,10 +2530,10 @@ { Self* view_; - int PAYEEID; //primay key - wxString PAYEENAME; - int CATEGID; - int SUBCATEGID; + int PAYEEID;// primay key + wxString PAYEENAME; + int CATEGID; + int SUBCATEGID; int id() const { return PAYEEID; } void id(int id) { PAYEEID = id; } @@ -2558,7 +2558,7 @@ bool save(wxSQLite3Database* db) { - if (! view_ || !db) + if (!view_ || !db) { wxLogError(wxT("can not save")); return false; @@ -2569,7 +2569,7 @@ bool remove(wxSQLite3Database* db) { - if (! view_ || !db) + if (!view_ || !db) { wxLogError(wxT("can not remove")); return false; @@ -2632,7 +2632,7 @@ bool save(Self::Data* entity, wxSQLite3Database* db) { wxString sql = wxEmptyString; - if (entity->id() < 0) //new & insert + if (entity->id() < 0) // new & insert { sql = wxT("INSERT INTO PAYEE_V1(PAYEENAME, CATEGID, SUBCATEGID) VALUES(?, ?, ?)"); } @@ -2654,7 +2654,7 @@ stmt.ExecuteUpdate(); stmt.Finalize(); } - catch(wxSQLite3Exception &e) + catch(const wxSQLite3Exception &e) { wxLogError(wxT("PAYEE_V1: Exception %s"), e.GetMessage().c_str()); return false; @@ -2675,7 +2675,7 @@ stmt.ExecuteUpdate(); stmt.Finalize(); } - catch(wxSQLite3Exception &e) + catch(const wxSQLite3Exception &e) { wxLogError(wxT("PAYEE_V1: Exception %s"), e.GetMessage().c_str()); return false; @@ -2710,7 +2710,7 @@ entity = new Self::Data(q, this); stmt.Finalize(); } - catch(wxSQLite3Exception &e) + catch(const wxSQLite3Exception &e) { wxLogError(wxT("PAYEE_V1: Exception %s"), e.GetMessage().c_str()); } @@ -2733,7 +2733,7 @@ q.Finalize(); } - catch(wxSQLite3Exception &e) + catch(const wxSQLite3Exception &e) { wxLogError(wxT("PAYEE_V1: Exception %s"), e.GetMessage().c_str()); } @@ -2753,9 +2753,9 @@ { Self* view_; - int SETTINGID; //primay key - wxString SETTINGNAME; - wxString SETTINGVALUE; + int SETTINGID;// primay key + wxString SETTINGNAME; + wxString SETTINGVALUE; int id() const { return SETTINGID; } void id(int id) { SETTINGID = id; } @@ -2777,7 +2777,7 @@ bool save(wxSQLite3Database* db) { - if (! view_ || !db) + if (!view_ || !db) { wxLogError(wxT("can not save")); return false; @@ -2788,7 +2788,7 @@ bool remove(wxSQLite3Database* db) { - if (! view_ || !db) + if (!view_ || !db) { wxLogError(wxT("can not remove")); return false; @@ -2848,7 +2848,7 @@ bool save(Self::Data* entity, wxSQLite3Database* db) { wxString sql = wxEmptyString; - if (entity->id() < 0) //new & insert + if (entity->id() < 0) // new & insert { sql = wxT("INSERT INTO SETTING_V1(SETTINGNAME, SETTINGVALUE) VALUES(?, ?)"); } @@ -2869,7 +2869,7 @@ stmt.ExecuteUpdate(); stmt.Finalize(); } - catch(wxSQLite3Exception &e) + catch(const wxSQLite3Exception &e) { wxLogError(wxT("SETTING_V1: Exception %s"), e.GetMessage().c_str()); return false; @@ -2890,7 +2890,7 @@ stmt.ExecuteUpdate(); stmt.Finalize(); } - catch(wxSQLite3Exception &e) + catch(const wxSQLite3Exception &e) { wxLogError(wxT("SETTING_V1: Exception %s"), e.GetMessage().c_str()); return false; @@ -2925,7 +2925,7 @@ entity = new Self::Data(q, this); stmt.Finalize(); } - catch(wxSQLite3Exception &e) + catch(const wxSQLite3Exception &e) { wxLogError(wxT("SETTING_V1: Exception %s"), e.GetMessage().c_str()); } @@ -2948,7 +2948,7 @@ q.Finalize(); } - catch(wxSQLite3Exception &e) + catch(const wxSQLite3Exception &e) { wxLogError(wxT("SETTING_V1: Exception %s"), e.GetMessage().c_str()); } @@ -2968,11 +2968,11 @@ { Self* view_; - int SPLITTRANSID; //primay key - double TRANSID; - int CATEGID; - int SUBCATEGID; - double SPLITTRANSAMOUNT; + int SPLITTRANSID;// primay key + double TRANSID; + int CATEGID; + int SUBCATEGID; + double SPLITTRANSAMOUNT; int id() const { return SPLITTRANSID; } void id(int id) { SPLITTRANSID = id; } @@ -3000,7 +3000,7 @@ bool save(wxSQLite3Database* db) { - if (! view_ || !db) + if (!view_ || !db) { wxLogError(wxT("can not save")); return false; @@ -3011,7 +3011,7 @@ bool remove(wxSQLite3Database* db) { - if (! view_ || !db) + if (!view_ || !db) { wxLogError(wxT("can not remove")); return false; @@ -3077,7 +3077,7 @@ bool save(Self::Data* entity, wxSQLite3Database* db) { wxString sql = wxEmptyString; - if (entity->id() < 0) //new & insert + if (entity->id() < 0) // new & insert { sql = wxT("INSERT INTO SPLITTRANSACTIONS_V1(TRANSID, CATEGID, SUBCATEGID, SPLITTRANSAMOUNT) VALUES(?, ?, ?, ?)"); } @@ -3100,7 +3100,7 @@ stmt.ExecuteUpdate(); stmt.Finalize(); } - catch(wxSQLite3Exception &e) + catch(const wxSQLite3Exception &e) { wxLogError(wxT("SPLITTRANSACTIONS_V1: Exception %s"), e.GetMessage().c_str()); return false; @@ -3121,7 +3121,7 @@ stmt.ExecuteUpdate(); stmt.Finalize(); } - catch(wxSQLite3Exception &e) + catch(const wxSQLite3Exception &e) { wxLogError(wxT("SPLITTRANSACTIONS_V1: Exception %s"), e.GetMessage().c_str()); return false; @@ -3156,7 +3156,7 @@ entity = new Self::Data(q, this); stmt.Finalize(); } - catch(wxSQLite3Exception &e) + catch(const wxSQLite3Exception &e) { wxLogError(wxT("SPLITTRANSACTIONS_V1: Exception %s"), e.GetMessage().c_str()); } @@ -3179,7 +3179,7 @@ q.Finalize(); } - catch(wxSQLite3Exception &e) + catch(const wxSQLite3Exception &e) { wxLogError(wxT("SPLITTRANSACTIONS_V1: Exception %s"), e.GetMessage().c_str()); } @@ -3199,17 +3199,17 @@ { Self* view_; - int STOCKID; //primay key - double HELDAT; - wxString PURCHASEDATE; - wxString STOCKNAME; - wxString SYMBOL; - double NUMSHARES; - double PURCHASEPRICE; - wxString NOTES; - double CURRENTPRICE; - double VALUE; - double COMMISSION; + int STOCKID;// primay key + double HELDAT; + wxString PURCHASEDATE; + wxString STOCKNAME; + wxString SYMBOL; + double NUMSHARES; + double PURCHASEPRICE; + wxString NOTES; + double CURRENTPRICE; + double VALUE; + double COMMISSION; int id() const { return STOCKID; } void id(int id) { STOCKID = id; } @@ -3245,7 +3245,7 @@ bool save(wxSQLite3Database* db) { - if (! view_ || !db) + if (!view_ || !db) { wxLogError(wxT("can not save")); return false; @@ -3256,7 +3256,7 @@ bool remove(wxSQLite3Database* db) { - if (! view_ || !db) + if (!view_ || !db) { wxLogError(wxT("can not remove")); return false; @@ -3340,7 +3340,7 @@ bool save(Self::Data* entity, wxSQLite3Database* db) { wxString sql = wxEmptyString; - if (entity->id() < 0) //new & insert + if (entity->id() < 0) // new & insert { sql = wxT("INSERT INTO STOCK_V1(HELDAT, PURCHASEDATE, STOCKNAME, SYMBOL, NUMSHARES, PURCHASEPRICE, NOTES, CURRENTPRICE, VALUE, COMMISSION) VALUES(?, ?, ?, ?, ?, ?, ?, ?, ?, ?)"); } @@ -3369,7 +3369,7 @@ stmt.ExecuteUpdate(); stmt.Finalize(); } - catch(wxSQLite3Exception &e) + catch(const wxSQLite3Exception &e) { wxLogError(wxT("STOCK_V1: Exception %s"), e.GetMessage().c_str()); return false; @@ -3390,7 +3390,7 @@ stmt.ExecuteUpdate(); stmt.Finalize(); } - catch(wxSQLite3Exception &e) + catch(const wxSQLite3Exception &e) { wxLogError(wxT("STOCK_V1: Exception %s"), e.GetMessage().c_str()); return false; @@ -3425,7 +3425,7 @@ entity = new Self::Data(q, this); stmt.Finalize(); } - catch(wxSQLite3Exception &e) + catch(const wxSQLite3Exception &e) { wxLogError(wxT("STOCK_V1: Exception %s"), e.GetMessage().c_str()); } @@ -3448,7 +3448,7 @@ q.Finalize(); } - catch(wxSQLite3Exception &e) + catch(const wxSQLite3Exception &e) { wxLogError(wxT("STOCK_V1: Exception %s"), e.GetMessage().c_str()); } @@ -3468,9 +3468,9 @@ { Self* view_; - int SUBCATEGID; //primay key - wxString SUBCATEGNAME; - int CATEGID; + int SUBCATEGID;// primay key + wxString SUBCATEGNAME; + int CATEGID; int id() const { return SUBCATEGID; } void id(int id) { SUBCATEGID = id; } @@ -3493,7 +3493,7 @@ bool save(wxSQLite3Database* db) { - if (! view_ || !db) + if (!view_ || !db) { wxLogError(wxT("can not save")); return false; @@ -3504,7 +3504,7 @@ bool remove(wxSQLite3Database* db) { - if (! view_ || !db) + if (!view_ || !db) { wxLogError(wxT("can not remove")); return false; @@ -3564,7 +3564,7 @@ bool save(Self::Data* entity, wxSQLite3Database* db) { wxString sql = wxEmptyString; - if (entity->id() < 0) //new & insert + if (entity->id() < 0) // new & insert { sql = wxT("INSERT INTO SUBCATEGORY_V1(SUBCATEGNAME, CATEGID) VALUES(?, ?)"); } @@ -3585,7 +3585,7 @@ stmt.ExecuteUpdate(); stmt.Finalize(); } - catch(wxSQLite3Exception &e) + catch(const wxSQLite3Exception &e) { wxLogError(wxT("SUBCATEGORY_V1: Exception %s"), e.GetMessage().c_str()); return false; @@ -3606,7 +3606,7 @@ stmt.ExecuteUpdate(); stmt.Finalize(); } - catch(wxSQLite3Exception &e) + catch(const wxSQLite3Exception &e) { wxLogError(wxT("SUBCATEGORY_V1: Exception %s"), e.GetMessage().c_str()); return false; @@ -3641,7 +3641,7 @@ entity = new Self::Data(q, this); stmt.Finalize(); } - catch(wxSQLite3Exception &e) + catch(const wxSQLite3Exception &e) { wxLogError(wxT("SUBCATEGORY_V1: Exception %s"), e.GetMessage().c_str()); } @@ -3664,7 +3664,7 @@ q.Finalize(); } - catch(wxSQLite3Exception &e) + catch(const wxSQLite3Exception &e) { wxLogError(wxT("SUBCATEGORY_V1: Exception %s"), e.GetMessage().c_str()); } Modified: branches/lua_integration/mmex/utils/mmex.py =================================================================== --- branches/lua_integration/mmex/utils/mmex.py 2012-04-13 02:02:15 UTC (rev 2156) +++ branches/lua_integration/mmex/utils/mmex.py 2012-04-13 02:09:58 UTC (rev 2157) @@ -61,7 +61,7 @@ ''' for field in self._fields: s += ''' - %s %s; %s''' % (base_data_types_reverse[field['type']], field['name'], field['pk'] and '//primay key' or '') + %s %s;%s''' % (base_data_types_reverse[field['type']], field['name'], field['pk'] and '// primay key' or '') primay_key = [field['name'] for field in self._fields if field['pk']][0] s +=''' @@ -104,7 +104,7 @@ bool save(wxSQLite3Database* db) { - if (! view_ || !db) + if (!view_ || !db) { wxLogError(wxT("can not save")); return false; @@ -115,7 +115,7 @@ bool remove(wxSQLite3Database* db) { - if (! view_ || !db) + if (!view_ || !db) { wxLogError(wxT("can not remove")); return false; @@ -199,7 +199,7 @@ bool save(Self::Data* entity, wxSQLite3Database* db) { wxString sql = wxEmptyString; - if (entity->id() < 0) //new & insert + if (entity->id() < 0) // new & insert { sql = wxT("INSERT INTO %s(%s) VALUES(%s)"); }''' % (self._table, ', '.join([field['name'] for field in self._fields if not field['pk']]), ', '.join(['?' for field in self._fields if not field['pk']])) @@ -227,7 +227,7 @@ stmt.ExecuteUpdate(); stmt.Finalize(); } - catch(wxSQLite3Exception &e) + catch(const wxSQLite3Exception &e) { wxLogError(wxT("%s: Exception %%s"), e.GetMessage().c_str()); return false; @@ -249,7 +249,7 @@ stmt.ExecuteUpdate(); stmt.Finalize(); } - catch(wxSQLite3Exception &e) + catch(const wxSQLite3Exception &e) { wxLogError(wxT("%s: Exception %%s"), e.GetMessage().c_str()); return false; @@ -286,7 +286,7 @@ entity = new Self::Data(q, this); stmt.Finalize(); } - catch(wxSQLite3Exception &e) + catch(const wxSQLite3Exception &e) { wxLogError(wxT("%s: Exception %%s"), e.GetMessage().c_str()); } @@ -311,7 +311,7 @@ q.Finalize(); } - catch(wxSQLite3Exception &e) + catch(const wxSQLite3Exception &e) { wxLogError(wxT("%s: Exception %%s"), e.GetMessage().c_str()); } This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site. |