Separatista
Separatista::MT940SDocument Class Reference

Public Types

enum  OpenStatus { OK = 0, E_FILE, E_FORMAT, E_MEMORY }
 

Public Member Functions

MT940S_EXTERN MT940SDocument ()
 
MT940S_EXTERN ~MT940SDocument ()
 
MT940S_EXTERN MT940SDocument::OpenStatus Open (const char *path)
 
MT940S_EXTERN size_t getRecordsetCount ()
 
MT940S_EXTERN MT940SRecordsetgetRecordset (size_t i)
 

Protected Member Functions

MT940S_EXTERN MT940SDocument::OpenStatus ReadRecord940 (int line, int rline)
 

Member Enumeration Documentation

◆ OpenStatus

Code indicating success or failure reading a MT940S file

Enumerator
OK 

Success.

E_FILE 

Error opening/reading file.

E_FORMAT 

Error parsing file or not a MT940S file.

E_MEMORY 

No memory available.

Constructor & Destructor Documentation

◆ MT940SDocument()

MT940SDocument::MT940SDocument ( )

Constructor

◆ ~MT940SDocument()

MT940SDocument::~MT940SDocument ( )

Destructor

Member Function Documentation

◆ getRecordset()

MT940SRecordset * MT940SDocument::getRecordset ( size_t  i)

Get the MT940SRecord at index i

◆ getRecordsetCount()

size_t MT940SDocument::getRecordsetCount ( )

Get the number of recordsets in the document

◆ Open()

MT940SDocument::OpenStatus MT940SDocument::Open ( const char *  path)

Read a MT940S file

Parameters
pathThe path to the file
Returns
OK for success, or error code

◆ ReadRecord940()

MT940SDocument::OpenStatus MT940SDocument::ReadRecord940 ( int  line,
int  rline 
)
protected

Handle header 940 Optional standard header

Parameters
lineThe line number in the document
rlineThe line number in the record
dataThe to be parsed data
infoParser information needed internally. Should be provided by the caller.
See also
ReadRecord

The documentation for this class was generated from the following files: