Main Page | Class Hierarchy | Data Structures | File List | Data Fields | Globals

ofx_preproc.cpp File Reference


Detailed Description

Preprocessing of the OFX files before parsing.

Implements the pre-treatement of the OFX file prior to parsing: OFX header striping, OFX proprietary tags and SGML comment striping, locating the appropriate DTD.

Definition in file ofx_preproc.cpp.

Go to the source code of this file.

Functions

int ofx_proc_file (int argc, char *argv[])
 ofx_proc_file is the entry point of the library.

string sanitize_proprietary_tags (string input_string)
 Removes proprietary tags and comments.

string find_dtd (const int requested_version)
 Find the appropriate DTD for the file version.


Variables

const unsigned int READ_BUFFER_SIZE = 1024


Function Documentation

string find_dtd const int  requested_version  ) 
 

Find the appropriate DTD for the file version.

This function will try to find a DTD matching the requested_version and return the full path of the DTD found (or an empty string if unsuccessfull)

Please note that currently the function will ALWAYS look for version 160, since OpenSP can't parse the 201 DTD correctly

Definition at line 231 of file ofx_preproc.cpp.

int ofx_proc_file int  argc,
char *  argv[]
 

ofx_proc_file is the entry point of the library.

libofx_proc_file must be called by the client, with a list of 1 or more OFX files to be parsed in command line format.

Definition at line 34 of file ofx_preproc.cpp.

string sanitize_proprietary_tags string  input_string  ) 
 

Removes proprietary tags and comments.

This function will strip all the OFX proprietary tags and SGML comments from the SGML string passed to it

Definition at line 128 of file ofx_preproc.cpp.


Generated on Fri Sep 12 00:35:47 2003 for LibOFX by doxygen 1.3.3