1 /************************************************************** 2 * 3 * Licensed to the Apache Software Foundation (ASF) under one 4 * or more contributor license agreements. See the NOTICE file 5 * distributed with this work for additional information 6 * regarding copyright ownership. The ASF licenses this file 7 * to you under the Apache License, Version 2.0 (the 8 * "License"); you may not use this file except in compliance 9 * with the License. You may obtain a copy of the License at 10 * 11 * http://www.apache.org/licenses/LICENSE-2.0 12 * 13 * Unless required by applicable law or agreed to in writing, 14 * software distributed under the License is distributed on an 15 * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY 16 * KIND, either express or implied. See the License for the 17 * specific language governing permissions and limitations 18 * under the License. 19 * 20 *************************************************************/ 21 22 23 24 #ifndef _MHAPPDEF_HXX 25 #define _MHAPPDEF_HXX 26 27 28 #ifdef UNX 29 #define DEFAULT_INI_ROOT "/so/env" 30 #define DEFAULT_BS_ROOT "/so/env/b_server" 31 #define PATH_SEPARATOR '/' 32 #define S_PATH_SEPARATOR "/" 33 #else 34 #define DEFAULT_INI_ROOT "r:" 35 #define DEFAULT_BS_ROOT "n:" 36 #define PATH_SEPARATOR '\\' 37 #define S_PATH_SEPARATOR "\\" 38 #endif 39 40 #define _INI_DRV DEFAULT_INI_ROOT 41 #define B_SERVER_ROOT DEFAULT_BS_ROOT 42 #define _SOLARLIST B_SERVER_ROOT S_PATH_SEPARATOR "config" S_PATH_SEPARATOR "solar.lst" 43 #define _DEF_STAND_LIST B_SERVER_ROOT S_PATH_SEPARATOR "config" S_PATH_SEPARATOR "stand.lst" 44 #define _DEF_SSOLARINI B_SERVER_ROOT S_PATH_SEPARATOR "config" S_PATH_SEPARATOR "ssolar.ini" 45 #define _DEF_SSCOMMON B_SERVER_ROOT S_PATH_SEPARATOR "config" S_PATH_SEPARATOR "ssolar.cmn" 46 #define _INIROOT B_SERVER_ROOT S_PATH_SEPARATOR "config" 47 #define _INIROOT_OLD B_SERVER_ROOT S_PATH_SEPARATOR "config" 48 #define _INI_UNC "\\\\jumbo2.germany.sun.com\\R-Laufwerk" 49 #define _INI_UNC_OLD "\\\\jumbo2.germany.sun.com\\R-Laufwerk" 50 51 52 // path conversion 53 const char* GetDefStandList(); 54 const char* GetIniRoot(); 55 const char* GetIniRootOld(); 56 const char* GetSSolarIni(); 57 const char* GetSSCommon(); 58 const char* GetBServerRoot(); 59 60 const char* GetEnv( const char *pVar ); 61 const char* GetEnv( const char *pVar, const char *pDefault ); 62 63 64 #endif 65