21 #ifndef SEPARATISTA_MT940S_H 22 #define SEPARATISTA_MT940S_H 26 #include <unordered_map> 29 #include "separatista/iban/iban.h" 31 #ifdef MT940S_BUILDINGDLL 32 # define MT940S_EXTERN __declspec(dllexport) 33 #elif defined MT940S_USINGDLL 34 # define MT940S_EXTERN __declspec(dllimport) 36 # define MT940S_EXTERN 56 MT940S_EXTERN
void set(
const char dcCode,
const char *currency,
const char *amount);
62 MT940S_EXTERN
operator const char* ();
66 std::string m_currency;
83 MT940S_EXTERN MT940SDate& operator = (
const char *date);
85 MT940S_EXTERN time_t getTime()
const;
87 MT940S_EXTERN
operator time_t ()
const;
100 MT940S_EXTERN ~MT940STransaction();
103 MT940S_EXTERN
void setDate(
const char *date);
105 MT940S_EXTERN
const char* getRDCCode()
const;
106 MT940S_EXTERN
void setRDCCode(
const char *code);
109 MT940S_EXTERN
void setCurrency(
const char dcCode,
const char *currency,
const char *amount);
111 MT940S_EXTERN
const char* getTransactionCode()
const;
112 MT940S_EXTERN
void setTransactionCode(
const char *code);
114 MT940S_EXTERN
const char* getTransactionReference()
const;
115 MT940S_EXTERN
void setTransactionReference(
const char *code);
117 MT940S_EXTERN
const IBAN* getForeignIBAN()
const;
118 MT940S_EXTERN
void setForeignIBAN(
const char *iban);
124 MT940S_EXTERN
void addDescription(
const char *key,
const char *value);
125 MT940S_EXTERN
const char* getDescription(
const char *key);
127 MT940S_EXTERN
void moveFirstDescription();
128 MT940S_EXTERN
bool moveNextDescription();
129 MT940S_EXTERN
bool descriptionEOF()
const;
130 MT940S_EXTERN
const char* getDescriptionKey()
const;
131 MT940S_EXTERN
const char* getDescriptionValue()
const;
135 std::string m_rdcCode;
137 std::string m_transactionCode;
138 std::string m_transactionReference;
140 std::unordered_map<std::string, std::string> m_descriptionMap;
141 std::unordered_map<std::string, std::string>::iterator m_descriptionIterator;
158 MT940S_EXTERN ~MT940SDocument();
185 MT940S_EXTERN
size_t getRecordsetCount();
203 std::vector<MT940SRecordset*> m_recordsets;
217 MT940S_EXTERN ~MT940SRecordset();
230 MT940S_EXTERN
const char* getCurrencyClient()
const;
232 MT940S_EXTERN
const char* getTransactionReference()
const;
234 MT940S_EXTERN
const char* getSerialNumber()
const;
236 MT940S_EXTERN
const IBAN* getIBANClient()
const;
240 MT940S_EXTERN
const MT940SDate* getPreviousBalanceDate()
const;
244 MT940S_EXTERN
const MT940SDate* getCurrentBalanceDate()
const;
246 MT940S_EXTERN
size_t getTransactionCount()
const;
317 std::string m_currencyClient;
318 std::string m_transactionReference;
319 std::string m_serialNumber;
325 std::vector<MT940STransaction*> m_transactions;
326 std::vector<MT940STransaction*>::iterator m_transactionsIterator;
327 std::string m_description;
332 #endif // !defined SEPARATISTA_MT940S_H
MT940S_EXTERN MT940SCurrency()
Definition: mt940s.cpp:535
Error parsing file or not a MT940S file.
Definition: mt940s.h:170
MT940S_EXTERN const char * getCurrency()
Definition: mt940s.cpp:546
Error opening/reading file.
Definition: mt940s.h:168
OpenStatus
Definition: mt940s.h:163