42 #define KTOBLZCHECK_VERSION_MAJOR 1 46 #define KTOBLZCHECK_VERSION_MINOR 52 138 const std::string& name,
139 const std::string& loc);
195 Result check(
const std::string& bankId,
const std::string& accountId,
196 const std::string& method=
"")
const;
345 typedef std::map<unsigned long, Record*> banklist_type;
350 #ifndef DOXYGEN_IGNORE 352 typedef Result (*MethodFunc)(
const int *account,
int *weight);
354 typedef Result (*MethodFuncLong)(
const int *account,
int *weight,
355 const std::string& accountId,
const std::string& bankId);
356 #endif // DOXYGEN_IGNORE 359 typedef std::map<std::string, MethodFunc> method_map_t;
360 method_map_t method_map;
361 typedef std::map<std::string, MethodFuncLong> method_map2_t;
362 method_map2_t method_map2;
364 std::time_t data_valid_start;
365 std::time_t data_valid_end;
366 typedef std::pair<std::time_t, std::time_t> Daterange;
367 typedef std::pair<std::string, Daterange> FileDaterange;
368 typedef std::vector<FileDaterange> DatedFiles;
371 DatedFiles dated_files;
374 void init_datafile_list();
377 void populate_dated_files(
const std::string& dirname,
bool print_errormessages);
381 const FileDaterange& find_closest_datafile(std::time_t date)
const;
385 void readDatedFile(
const FileDaterange& filename);
391 void readFile(
const std::string &filename);
394 void initMethodMap();
470 const char *accountId);
Result
Definition: ktoblzcheck.h:90
AccountNumberCheck * AccountNumberCheck_new_file(const char *filename)
const char * AccountNumberCheck_stringEncoding()
unsigned long bankId
Definition: ktoblzcheck.h:123
unsigned long AccountNumberCheck_Record_bankId(const AccountNumberCheck_Record *a)
std::string location
Definition: ktoblzcheck.h:133
void AccountNumberCheck_Record_delete(AccountNumberCheck_Record *a)
bool isDataValidForDate(std::time_t date) const
German bank information database and account code verification.
Definition: ktoblzcheck.h:71
const char * AccountNumberCheck_libraryVersion()
static std::string bankdata_dir()
Result check(const std::string &bankId, const std::string &accountId, const std::string &method="") const
Definition: ktoblzcheck.h:95
AccountNumberCheck::Result AccountNumberCheck_Result
Definition: ktoblzcheck.h:397
Definition: ktoblzcheck.h:100
AccountNumberCheck_Record * AccountNumberCheck_Record_copy(const AccountNumberCheck_Record *a)
AccountNumberCheck * AccountNumberCheck_new()
const AccountNumberCheck_Record * AccountNumberCheck_findBank(const AccountNumberCheck *a, const char *bankId)
static const char * libraryVersion()
AccountNumberCheck_Result AccountNumberCheck_check(const AccountNumberCheck *a, const char *bankId, const char *accountId)
std::time_t closestValidData(std::time_t date) const
static const char * stringEncoding()
void AccountNumberCheck_createIndex(AccountNumberCheck *a)
std::string bankName
Definition: ktoblzcheck.h:131
bool loadDataForDate(std::time_t date)
static std::string resultToString(Result r)
const Record & findBank(const std::string &bankId) const
const char * AccountNumberCheck_Record_location(const AccountNumberCheck_Record *a)
void AccountNumberCheck_delete(AccountNumberCheck *a)
std::string method
Definition: ktoblzcheck.h:128
Definition: ktoblzcheck.h:92
std::time_t dataValidEndDate() const
Definition: ktoblzcheck.h:235
std::string getFilenameClosestDateToday() const
char * AccountNumberCheck_bankdata_dir()
unsigned int AccountNumberCheck_bankCount(const AccountNumberCheck *a)
unsigned int bankCount() const
const char * AccountNumberCheck_Record_bankName(const AccountNumberCheck_Record *a)
Available information about one bank.
Definition: ktoblzcheck.h:120
std::time_t dataValidStartDate() const
Definition: ktoblzcheck.h:228
AccountNumberCheck::Record AccountNumberCheck_Record
Definition: ktoblzcheck.h:398
Definition: ktoblzcheck.h:98
bool isValidDataAvailable(std::time_t date) const