📄 lxbankcodedata.h
字号:
// -*- C++ -*-// ****************************************************************************// // LxBank - home-banking for Linux using the HBCI standard// // Author: Franz Zimmermann 83043 Bad Aibling// // Copyright (C) 2002-2003 Franz Zimmermann - arafang@users.sourceforge.net// // This program is free software; you can redistribute it and/or modify// it under the terms of the GNU General Public License as published by// the Free Software Foundation; either version 2 of the License, or// (at your option) any later version.// // This program is distributed in the hope that it will be useful,// but WITHOUT ANY WARRANTY; without even the implied warranty of// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the// GNU General Public License for more details.// // You should have received a copy of the GNU General Public License// along with this program; if not, write to the Free Software// Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA.// // ***************************************************************************//// ***************************************************************************// /*! \file \brief LxBankCodeData: Holds bank code (BLZ) specific data used within LxBank*/ // ***************************************************************************//// $Name: $//// $State: Exp $//// $Log: LxBankCodeData.h,v $// Revision 1.3 2003/05/08 02:39:53 arafang// Error checking of money transfer improved. Use library ktoblzcheck to validate account id's.//// Revision 1.2 2003/05/03 16:24:04 arafang// New class LxBankSelectionList. Used in LxRemittanceWorkDialog to present information about all banks of one bank code id.//// Revision 1.1 2003/05/01 14:06:19 arafang// Format of bank code data file changed: was blz.txt - ascii, new blz.bin - binary////#ifndef LX_BANK_CODE_DATA_H#define LX_BANK_CODE_DATA_H#include <stream.h>#include <fstream>#include <string>#include <map>#include <vector>using namespace std;#include <qdatetime.h>#include <qstring.h> class LxBankCodeData{public: enum State{Canceled = 0, Valid = 1}; enum WeekDays{Monday = 1, Tuesday = 2, Wednesday = 3, Thursday = 4, Friday = 5, Saturday = 6, Sunday = 7}; LxBankCodeData(); LxBankCodeData(ifstream &inp); LxBankCodeData(const string &blz, const string &sqeno, const string &nam, const string &zipcode, const string &location, const string &btxname, const string &method, const string &canceldate = "", const string &sucsqeno = ""); LxBankCodeData(const string &txt); LxBankCodeData(const LxBankCodeData &bcd); virtual ~LxBankCodeData( ); const LxBankCodeData & operator=(const LxBankCodeData &); State getState () const { return state; } const string &getBankCodeStr () const { return bankCodeStr; } int getBankCode () const { return bankCode; } int getSqeNo () const { return sqeNo; } int getSuccessionSqeNo () const { return successionSqeNo; } const string &getName () const { return name; } const string &getZipCode () const { return zipCode; } const string &getCity () const { return city; } const string &getBTXname () const { return btxName; } const string &getPZmethode () const { return pzMethode; } const QDate &getCancelDate () const { return cancelDate; } QString qtgetBankCode () const{ return bankCodeStr.c_str(); } QString qtgetSqeNo () const { return QString::number(sqeNo).rightJustify ( 5, '0'); } QString qtgetSuccessionSqeNo () const { return QString::number(successionSqeNo).rightJustify ( 5, '0'); } QString qtgetName () const { return name.c_str(); } QString qtgetZipCode () const { return zipCode.c_str(); } QString qtgetCity () const { return city.c_str(); } QString qtgetBTXname () const { return btxName.c_str(); } QString qtgetPZmethode () const { return pzMethode.c_str(); } QString qtgetCancelDate () const { return cancelDate.toString("d.M.yyyy"); } QString qtgetCancelDateStr () const { return cancelDate.toString(); } ostream& dump (ostream &out = cout) const; void binaerDump (ofstream &out);protected: State state; string bankCodeStr; int bankCode; int sqeNo; int successionSqeNo; string name, zipCode, city, btxName, pzMethode; QDate cancelDate;private:};typedef multimap<int,LxBankCodeData> IntBankCodeMMap;typedef map<string,LxBankCodeData> StrBankCodeMap;typedef vector<LxBankCodeData> BankCodeVec;#endif // LxBankCodeData.h
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -