00001 #ifndef loggingHelper_H_ 00002 #define loggingHelper_H_ 00003 00004 /******************************************************************************* 00005 * ALMA - Atacama Large Millimiter Array 00006 * (c) European Southern Observatory, 2002 00007 * Copyright by ESO (in the framework of the ALMA collaboration) 00008 * and Cosylab 2002, All rights reserved 00009 * 00010 * This library is free software; you can redistribute it and/or 00011 * modify it under the terms of the GNU Lesser General Public 00012 * License as published by the Free Software Foundation; either 00013 * version 2.1 of the License, or (at your option) any later version. 00014 * 00015 * This library is distributed in the hope that it will be useful, 00016 * but WITHOUT ANY WARRANTY; without even the implied warranty of 00017 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU 00018 * Lesser General Public License for more details. 00019 * 00020 * You should have received a copy of the GNU Lesser General Public 00021 * License along with this library; if not, write to the Free Software 00022 * Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA 00023 * 00024 * "@(#) $Id: loggingHelper.h,v 1.36 2003/10/15 20:17:26 dfugate Exp $" 00025 * 00026 * who when what 00027 * -------- ---------- ---------------------------------------------- 00028 * msekoran 2001/12/23 created 00029 */ 00030 00031 #ifndef __cplusplus 00032 #error This is a C++ include file and cannot be used from plain C 00033 #endif 00034 00035 #include <acsutil.h> 00036 #include <loggingExport.h> 00037 00038 #include <orbsvcs/CosNamingC.h> 00039 00047 class logging_EXPORT LoggingHelper 00048 { 00049 00050 public: 00051 00065 static CosNaming::NamingContext_ptr resolveNameService(CORBA::ORB_ptr orb, 00066 int retries = 3, unsigned int secTimeout = 0); 00075 static CosNaming::NamingContext_ptr resolveNameService(CORBA::ORB_ptr orb, 00076 const ACE_TCHAR * reference, 00077 int retries = 3, unsigned int secTimeout = 0); 00078 00083 static void terminateResolving(bool terminate = true); 00084 00085 private: 00086 00087 static bool m_terminate; 00088 00089 00090 }; 00091 00092 #endif /* loggingHelper_H_ */ 00093 00094 // ************************************************************************ 00095 // 00096 // REVISION HISTORY: 00097 // 00098 // $Log: loggingHelper.h,v $ 00099 // Revision 1.36 2003/10/15 20:17:26 dfugate 00100 // Naming Service port is now dynamic. 00101 // 00102 // Revision 1.35 2003/05/23 09:18:47 msekoran 00103 // Replaced exponential backoff with 3s retries. 00104 // 00105 // Revision 1.34 2003/03/14 10:24:37 rgeorgie 00106 // LGPL 00107 // 00108 // Revision 1.33 2002/09/23 12:43:06 vltsccm 00109 // msekoran: loggingXMLParser fixed, memory leak removed and tat test added. 00110 // 00111 // Revision 1.32 2002/04/10 14:41:39 vltsccm 00112 // logging1.32 00113 // 00114 // Revision 1.31 2002/03/27 16:44:24 vltsccm 00115 // logging1.31 00116 // 00117 // Revision 1.30 2002/02/13 12:55:32 vltsccm 00118 // logging1.30 00119 // 00120 // Revision 1.29 2002/02/08 13:40:55 vltsccm 00121 // logging1.29 00122 // 00123 // Revision 1.28 2002/02/05 17:51:55 vltsccm 00124 // logging1.28 00125 // 00126 // Revision 1.27 2002/02/04 08:26:29 vltsccm 00127 // logging1.27 00128 // 00129 // Revision 1.26 2002/01/18 09:42:59 vltsccm 00130 // logging1.26 00131 // 00132 // Revision 1.25 2002/01/16 10:41:29 vltsccm 00133 // logging1.25 00134 // 00135 // Revision 1.24 2002/01/15 12:42:20 vltsccm 00136 // logging1.24 00137 // 00138 // Revision 1.23 2002/01/14 21:10:49 vltsccm 00139 // logging1.23 00140 // 00141 // Revision 1.22 2001/12/27 19:04:10 vltsccm 00142 // logging1.22 00143 // 00144 // Revision 1.21 2001/12/24 13:31:33 vltsccm 00145 // logging1.21 00146 // 00147 // Revision 1.20 2001/12/24 13:31:33 vltsccm 00148 // logging1.20 00149 // 00150 // Revision 1.19 2001/12/24 13:31:32 vltsccm 00151 // logging1.19 00152 // 00153 // Revision 1.18 2001/12/24 13:31:32 vltsccm 00154 // logging1.18 00155 // 00156 // Revision 1.17 2001/12/24 13:31:32 vltsccm 00157 // logging1.17 00158 // 00159 // Revision 1.16 2001/12/24 13:31:31 vltsccm 00160 // logging1.16 00161 // 00162 // Revision 1.15 2001/12/24 13:31:31 vltsccm 00163 // logging1.15 00164 // 00165 // Revision 1.14 2001/12/24 13:31:31 vltsccm 00166 // logging1.14 00167 // 00168 // Revision 1.13 2001/12/24 13:31:30 vltsccm 00169 // logging1.13 00170 // 00171 // Revision 1.12 2001/12/24 13:31:30 vltsccm 00172 // logging1.12 00173 // 00174 // Revision 1.11 2001/12/24 13:31:30 vltsccm 00175 // logging1.11 00176 // 00177 // Revision 1.10 2001/12/24 13:31:30 vltsccm 00178 // logging1.10 00179 // 00180 // Revision 1.9 2001/12/24 13:31:29 vltsccm 00181 // logging1.9 00182 // 00183 // Revision 1.8 2001/12/24 13:31:29 vltsccm 00184 // logging1.8 00185 // 00186 // Revision 1.7 2001/12/24 13:31:29 vltsccm 00187 // logging1.7 00188 // 00189 // Revision 1.6 2001/12/24 13:31:28 vltsccm 00190 // logging1.6 00191 // 00192 // Revision 1.5 2001/12/24 13:31:28 vltsccm 00193 // logging1.5 00194 // 00195 // Revision 1.4 2001/12/24 13:31:28 vltsccm 00196 // logging1.4 00197 // 00198 // Revision 1.3 2001/12/24 13:31:27 vltsccm 00199 // logging1.3 00200 // 00201 // Revision 1.2 2001/12/24 13:31:27 vltsccm 00202 // logging1.2 00203 // 00204 // Revision 1.1 2001/12/24 13:31:27 vltsccm 00205 // logging1.1 00206 // 00207 // Revision 1.0 2001/12/24 13:31:27 vltsccm 00208 // logging1.0 00209 // 00210 // 00211 // ************************************************************************