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_NODENAME,
00055         AXCONF_LISTENPORT,
00056         AXCONF_LAST
00057 };
00058 
00059 class AxisConfig
00060 {
00061     public:
00062     AxisConfig();
00063     ~AxisConfig();
00064 
00072     int readConfFile();
00073 
00081         char* getAxisConfProperty(g_axconfig property);
00082         
00083     private:         
00084         char* m_pcAxisHome;
00085                 char* m_pcKeyArray [AXCONF_LAST];
00086                 char* m_pcValueArray [AXCONF_LAST];
00087 
00088                 void setValue(int valuelength, g_axconfig valueindex, char* value);
00089 };
00090 #endif
00091 

Generated on Fri Jul 9 13:18:28 2004 for AxisC++ by doxygen1.2.18