[Xmltools-development] xmltools/src CMakeLists.txt xmltool.h xmltools.h mcd.c mcd.h
Status: Beta
Brought to you by:
nik_89
|
From: nik_89 <ni...@us...> - 2004-12-26 08:05:37
|
Update of /cvsroot/xmltools/xmltools/src In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv4687 Modified Files: CMakeLists.txt xmltool.h xmltools.h Removed Files: mcd.c mcd.h Log Message: version 0.5b removed unused sources : mcd.c mcd.h CMakeLists.txt : removed the mcd compiling. xmltool.h : major documentation work, compatible with Doxygen. Index: xmltools.h =================================================================== RCS file: /cvsroot/xmltools/xmltools/src/xmltools.h,v retrieving revision 1.2 retrieving revision 1.3 diff -C2 -d -r1.2 -r1.3 *** xmltools.h 1 Nov 2004 17:56:24 -0000 1.2 --- xmltools.h 26 Dec 2004 08:05:22 -0000 1.3 *************** *** 3,7 **** #define advanced 0 - #define _MCD_CHECK #include <stdio.h> --- 3,6 ---- *************** *** 13,19 **** #include "xml-advhandler.h" #endif - #ifdef _MCD_CHECK - #include "mcd.h" - #endif #endif --- 12,15 ---- Index: CMakeLists.txt =================================================================== RCS file: /cvsroot/xmltools/xmltools/src/CMakeLists.txt,v retrieving revision 1.7 retrieving revision 1.8 diff -C2 -d -r1.7 -r1.8 *** CMakeLists.txt 26 Dec 2004 01:22:15 -0000 1.7 --- CMakeLists.txt 26 Dec 2004 08:05:20 -0000 1.8 *************** *** 2,6 **** # specification file to generate the Makefile PROJECT (XMLTOOLS C) ! SET (XMLTOOLS_SRC nmap.c misc.c xmltool.c mcd.c) # set the version define for the project --- 2,6 ---- # specification file to generate the Makefile PROJECT (XMLTOOLS C) ! SET (XMLTOOLS_SRC nmap.c misc.c xmltool.c) # set the version define for the project --- mcd.c DELETED --- Index: xmltool.h =================================================================== RCS file: /cvsroot/xmltools/xmltools/src/xmltool.h,v retrieving revision 1.5 retrieving revision 1.6 diff -C2 -d -r1.5 -r1.6 *** xmltool.h 1 Nov 2004 17:56:24 -0000 1.5 --- xmltool.h 26 Dec 2004 08:05:22 -0000 1.6 *************** *** 14,25 **** ! /* xmltool.h ! * ! * */ #ifndef __XMLTOOL_H #define __XMLTOOL_H ! enum { N_MAP_UNEXIST= -4, --- 14,29 ---- ! /*! \file xmltool.h ! * \brief the xmltools core main header. ! * ! * This file contains the main functions used for xml handling. */ #ifndef __XMLTOOL_H #define __XMLTOOL_H ! /*! ! * Sets the error types returned by the functions ! * */ ! enum returns { N_MAP_UNEXIST= -4, *************** *** 34,38 **** }; ! /* Basic functions prototypes below * * Made by Nik_89 --- 38,42 ---- }; ! /* Basic function prototypes below * * Made by Nik_89 *************** *** 40,100 **** ! /* prints the error description. This functions has to be used to be given a short description of an eventual error. */ ! extern void Xmltool_Perror(char *message /* this is for the user to add extra informations (like the function name it was called from).*/); ! /* FIXME */ ! void Xmltool_SetError(int source /* FIXME */); ! /* FIXME */ ! void Xmltool_GetError(int *destination /* FIXME */); ! /* set of functions to Input, Output, Edit and Delete to the xml file. They are used to add, edit, read and remove only 1 item at a time. ! */ ! /* Simple xml node writer. This function can be used to write single nodes to an xml file. */ ! extern int Xmltool_WriteToXml(char *filename, /* filename to write to */ ! char *parent_name, /* name of the parent node */ ! char *node_name, /* name of the child node to write to */ ! char *node_info); /* data to add to the child node */ ! /* FIXME */ ! extern char *Xmltool_ReadFromXml(char *filename, /* filename to read from */ ! char *parent_name, /* name of the parent node */ ! char *child_name); /* name of the child node to read from */ ! /* FIXME */ ! extern int Xmltool_EditToXml(char *filename, /* FIXME */ ! char *parent_name, /* FIXME */ ! char *node_name, /* FIXME */ ! char *node_info); /* FIXME */ ! /* FIXME */ ! extern int Xmltool_RemoveFromXml(char *filename, /* FIXME */ ! char *parent_name, /* FIXME */ ! char *child_name); /* FIXME */ ! /* set of functions to Input, * Output, Edit and Delete to the xml file. * They are used to add, edit, read and remove * as many nodes as there is in the n_map struct. * ! * the Edit and Delete functions arent done yet */ ! /* FIXME */ ! extern int Xmltool_GetXmlDesc(char *filename /* FIXME */); ! /* FIXME */ ! extern int Xmltool_MAddXml(char *filename /* FIXME */); ! /* FIXME */ ! extern struct node_map *Xmltool_MReadXml(char *filename,/* filename to read from */ ! char *parent_node, /* name of the parent node */ ! char *node_name, /* name of the child that has unique data */ ! char *content); /* content that the child ! * must have to be recognised ! */ ! /* FIXME */ extern void Xmltool_Clean(); --- 44,148 ---- ! /*! prints the error description. ! * This functions has to be used to ! * be given a short description ! * of an eventual error. ! */ ! extern void Xmltool_Perror( ! /*! this is for the user to add extra ! * informations (like the function name it was called from). ! */ ! char *message ); ! /*! Internal, do not use. The name is self explanatory anyway.*/ ! void Xmltool_SetError( ! /*! the error number */ ! int source); ! /*! FIXME */ ! void Xmltool_GetError( ! /*! FIXME */ ! int *destination); ! /* set of functions to Input, ! * Output, Edit and Delete to the xml file. ! * They are used to add, edit, read ! * and remove only 1 item at a time. ! */ ! /*! Write a single value to a node */ ! extern int Xmltool_WriteToXml( ! /*! xml file */ ! char *filename, ! /*! parent node of the node */ ! char *parent_name, ! /*! node to add */ ! char *node_name, ! /*! data to add to the node */ ! char *node_info); ! /*! Read a single value of a node */ ! extern char *Xmltool_ReadFromXml( ! /*! the xml file */ ! char *filename, ! /*! parent node of the node */ ! char *parent_name, ! /*! node to read */ ! char *child_name); ! /*! Modify a single value of a node */ ! extern int Xmltool_EditToXml( ! /* the xml file */ ! char *filename, ! /*! parent node of the node */ ! char *parent_name, ! /*! node to edit */ ! char *node_name, ! /*! New data to add to the node */ ! char *node_info); ! /*! Delete a single node */ ! extern int Xmltool_RemoveFromXml( ! /*! the xml file */ ! char *filename, ! /*! parent node of the node */ ! char *parent_name, ! /*! the node to delete */ ! char *child_name); ! /* ! * set of functions to Input, * Output, Edit and Delete to the xml file. * They are used to add, edit, read and remove * as many nodes as there is in the n_map struct. * ! * FIXME : the Edit and Delete functions aren't done yet */ ! /*! This function actually checks and parse the DtD of an xml file.*/ ! extern int Xmltool_GetXmlDesc( ! /*! file to read from */ ! char *filename ); ! /*! This function is to dump the data loaded, with Nmap_Add, in the xml file. */ ! extern int Xmltool_MAddXml( ! /*! file to write to */ ! char *filename ); ! /*! Reads a file that has a repetitive number of parent nodes (as set in the DtD). */ ! extern struct node_map *Xmltool_MReadXml( ! /*! the xml file. */ ! char *filename, ! /*! parent node of the node. */ ! char *parent_node, ! /*! node that has a unique data(compared to the other nodes) */ ! char *node_name, ! /*! content that the child ! * must have to be recognised ! */ ! char *content); ! ! /*! clean up Xmltools. Call this before the program closes, at least. */ extern void Xmltool_Clean(); --- mcd.h DELETED --- |