MUSASHI API Development Summary
Please download the sample program and the data
which have explained in thisdocumentfrom here.
System important matter
- This document has designated the utilization with
Linux environment as prerequisite.
- Because with MUSASHI, utilization of the joint ownership
library outside three of libxml2, zlib and glibc is designated as
prerequisite, please verify whether each library is installed.
- It isnecessary for MUSASHI-CORE
to be installed. When MUSASHI-CORE is installed, in "the
/usr/local/include/musashi" directory, the inclusion file which is
necessary for development is installed. The joint ownership
library of MUSASHI is installed to "/usr/local/lib".
The knowledge which becomes prerequisite
* Note) also XMLtable is the XML document, but because the
interface where the API of MUSASHI is various concerning the treatment
of XMLtable, has been had, there is no knowledge of DOM and SAX, there
is no problem.
Flow of command development
When developing command anew making use of API
which MUSASHI offers, it keeps describing the cord/code with the
usually following kind of flow, (inside the parenthesis, the inclusion
file name which corresponds).
- Description of command help (mssBase.h)
- Definition of option variable (mssOption.h)
- Definition of various variables
- Command start processing (mssBase.h)
- Appraisal of option (mssOption.h)
- Input file opening (mssInput.h)
- Reading of header ™E setting (mssHeader.h)
- Item type option relation is acquired to the
header of the input data, (mssOption.h)
- Header compilation of output data (mssHeader.h)
- Output file opening (mssOutput.h)
- Header output of output data (mssHeader.h)
- Processing of main (input/output of the data it
includes)
- Memory territory opening
- Command end processing(mssBase.h)
Looking at this flow, as understood, main
processing (12) to it is necessary to handle processing many.
Below, chasing order, it keeps advancing API utilization
explanation then.
Contents |
The above-mentioned flow |
Start and end processing |
1,4,14 |
Command option processing |
2,5,13 |
Processing related to reading ™E of the header
of XMLtable |
7,13 |
Item type option the processing which in the header of
the input data relation is attached |
8,13 |
Processing related to output of header |
9,13 |
The input process of XMLtable |
6,12,13 |
The output process of XMLtable |
10,12,13 |
Appraisal execution processing of operational
expression |
12,13 |
Explanations of classified by other API
classification
Even in addition, it seems that is shown below,
when it is, convenient various API are offered.
- General-purpose hash function (mssBase.h)
- The function which handles the character string
list (mssBase.h)
- The functional group which handles the XML tag
(mssXml.h)
- The functional group which handles NULL value and
the value type which installs data type (mssValue.h)
- Wrapper function for dynamic memory guaranty
(mssBase.h)
- In addition every (mssBase.h)
|