The following list describes the source files included and what functions are in the files. We are not supplying a generic makefile with the files, you can merge the files with your server side code or create a link library if you choose. Your server code will need to be sure to include the header files marked in bold below since these have the structure definitions and the API function prototypes in them.
File | Functions |
ofcdtd.h | Header file which defines the DTD data types and structures used for the parse and build linked list. Server code should #include this file. |
ofcparse.h | Header file which defines the parsing API. Server code should #include this file. |
ofcbuild.h | Header file which defines the build API. Server code should #include this file. |
pbtypes.h | Header file that defines the types used internally be parse & build routines. |
parse.h | Header file with function prototypes for parse |
build.h | Header file with function prototypes for build |
validlst.h | Header file for validation of list |
ofclink.h | Headre file for linked list functions |
ofcparse.c | OFC Parse API functions |
parse.c | High level parse code for OFCDOC and high-level transaction types |
pbanking.c | Parse code for banking-specific transactions |
ppayment.c | Parse code for payment-specific transactions |
pelement.c | Parse code for handling OFC elements and reading data types |
token.c | Low-level token read routines, token table |
ofcbuild.c | OFC Build API functions |
build.c | Build code |
validlst.c | Validation of linked list code |
ofclink.c | OFC linked list functions |
readme.txt | Readme file |
There are other .cpp files in the distribution which are an MFC test application that allows you to open a .ofc file, parse it, rebuild it and write out the output. This way the initial file and output file can be compared to check both parse and build. The test application requires Microsoft Visual C++ 4.0 to compile. These files are:
File | Function |
PAppDlg.h | Header file for PAppDlg class |
ParseApp.h | Header file for ParseApp class |
StdAfx.h | Header file for STDAFX (Visual C++ MFC functions) |
PAppDlg.cpp | Code for the PAppDlg class |
ParseApp.cpp | Code for the ParseApp class |
ParseApp.rc | Resources for the test app |
ParseApp.ico | Icon for the test app |
ParseApp.rc2 | Resourcs for the test app |
ParseApp.mak | VC++ Makefile for test app |
ParseApp.mdg | VC++ Project Workspace for test app |
StdAfx.cpp | Code for STDAFX (Visual C++ MFC functions) |