Main Page   Class Hierarchy   Compound List   File List   Compound Members   Examples  

AxisConfig.h

00001 /*
00002  *   Copyright 2003-2004 The Apache Software Foundation.
00003  *
00004  *   Licensed under the Apache License, Version 2.0 (the "License");
00005  *   you may not use this file except in compliance with the License.
00006  *   You may obtain a copy of the License at
00007  *
00008  *       http://www.apache.org/licenses/LICENSE-2.0
00009  *
00010  *   Unless required by applicable law or agreed to in writing, software
00011  *   distributed under the License is distributed on an "AS IS" BASIS,
00012  *   WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
00013  *   See the License for the specific language governing permissions and
00014  *   limitations under the License.
00015  *
00016  * @author Sanjaya Singharage (sanjayas@opensource.lk, sanjayas@jkcsworld.com)
00017  */
00018  
00019 #if !defined(__AXIS_AXISCONFIG_H_OF_AXIS_INCLUDED__)
00020 #define __AXIS_AXISCONFIG_H_OF_AXIS_INCLUDED__
00021 
00022 #define CONFBUFFSIZE 256
00023 
00038 enum g_axconfig 
00039 {
00040         AXCONF_WSDDFILEPATH=0, 
00041         AXCONF_LOGPATH, 
00042         AXCONF_CLIENTLOGPATH, 
00043         AXCONF_CLIENTWSDDFILEPATH, 
00044         AXCONF_AXISHOME, 
00045         AXCONF_TRANSPORTHTTP, 
00046         AXCONF_TRANSPORTSMTP, 
00047         AXCONF_XMLPARSER,
00048         AXCONF_LAST
00049 };
00050 
00051 class AxisConfig
00052 {
00053     public:
00054     AxisConfig();
00055     ~AxisConfig();
00056 
00064     int readConfFile();
00065 
00073         char* getAxisConfProperty(g_axconfig property);
00074         
00075     private:         
00076         char* m_pcAxisHome;
00077                 char* m_pcKeyArray [AXCONF_LAST];
00078                 char* m_pcValueArray [AXCONF_LAST];
00079 
00080                 void setValue(int valuelength, g_axconfig valueindex, char* value);
00081 };
00082 #endif
00083 

Generated on Tue Jun 15 19:13:22 2004 for axiscpp by doxygen1.2.18