Main Page   Class Hierarchy   Compound List   File List   Compound Members   File Members   Examples  

AxisConfig.h

Go to the documentation of this file.
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  */
00017 
00025 #if !defined(__AXIS_AXISCONFIG_H_OF_AXIS_INCLUDED__)
00026 #define __AXIS_AXISCONFIG_H_OF_AXIS_INCLUDED__
00027 
00028 #define CONFBUFFSIZE 256
00029 
00044 enum g_axconfig 
00045 {
00046         AXCONF_WSDDFILEPATH=0, 
00047         AXCONF_LOGPATH, 
00048         AXCONF_CLIENTLOGPATH, 
00049         AXCONF_CLIENTWSDDFILEPATH, 
00050         AXCONF_AXISHOME, 
00051         AXCONF_TRANSPORTHTTP, 
00052         AXCONF_TRANSPORTSMTP, 
00053         AXCONF_XMLPARSER,
00054         AXCONF_LAST
00055 };
00056 
00057 class AxisConfig
00058 {
00059     public:
00060     AxisConfig();
00061     ~AxisConfig();
00062 
00070     int readConfFile();
00071 
00079         char* getAxisConfProperty(g_axconfig property);
00080         
00081     private:         
00082         char* m_pcAxisHome;
00083                 char* m_pcKeyArray [AXCONF_LAST];
00084                 char* m_pcValueArray [AXCONF_LAST];
00085 
00086                 void setValue(int valuelength, g_axconfig valueindex, char* value);
00087 };
00088 #endif
00089 

Generated on Tue Jun 29 09:27:55 2004 for AxisC++ by doxygen1.2.18