//Apr_XML.h
#ifndef APR_XML_H_
#define APR_XML_H_

#ifdef HAVE_CONFIG_H
#include <config.h>
#endif

#include <stdio.h>
#include <stdlib.h>
#include <assert.h>

#include <apr_general.h>
#include <apr_file_io.h>



class Apr_xml
{
public:
	/*insert path of  text file */
	Apr_xml( const char *path  );
	
	Apr_xml();
	
   /*return ture,flase */
	apr_status_t statusReadFile( const char *fName,  apr_pool_t *mp );
	
    /*return true,false */
	apr_status_t statusWriteFile( const char *fName, apr_pool_t *mp 	 );
	
	const char *  unlockFile();
	
	const char*   getFileName();
   
	apr_pool_t*  getMp();

	virtual ~Apr_xml();
	 
private : 
	
	 /* initial status for APR */
	 apr_status_t  rv; 
	 /* pointer file */
	 apr_file_t *fp;
	 /* intial  pool  memnry  */ 
	 apr_pool_t  *mp;
	 /*insedrt file name */
	 const char *fName;
	 /* C int define for type of file */
	 int c;
	 
};

#endif /*APR_XML_H_*/
