00001 // -*- Mode: C++; -*- 00002 // Package : omniEvents 00003 // naming.h Created : 1/10/99 00004 // Author : Paul Nader (pwn) 00005 // 00006 // Copyright (C) 1998 Paul Nader, 2003-2004 Alex Tingle. 00007 // 00008 // This file is part of the omniEvents application. 00009 // 00010 // omniEvents 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 // omniEvents 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 // Description: 00025 // 00026 00027 /* 00028 $Log: naming.h,v $ 00029 Revision 1.3.2.1 2005/05/10 14:28:11 alextingle 00030 Updated copyrights to 2005. 00031 00032 Revision 1.3 2004/07/26 16:22:25 alextingle 00033 New method: str2name() parses a stringified naming service name info a CosNaming::Name. 00034 00035 Revision 1.2 2004/04/21 10:01:34 alextingle 00036 Removed unused code. Now silently fails if the Orb has no naming service ref. 00037 00038 Revision 1.1 2003/12/21 16:19:49 alextingle 00039 Moved into 'src' directory as part of the change to POA implementation. 00040 00041 Revision 1.2 2003/11/03 22:33:49 alextingle 00042 Removed all platform specific switches. Now uses autoconf, config.h. 00043 00044 Revision 1.1.1.1 2002/09/25 19:00:32 shamus13 00045 Import of OmniEvents source tree from release 2.1.1 00046 00047 Revision 1.1 2000/09/04 03:41:20 naderp 00048 Changed headers. 00049 00050 Revision 1.0 1999/11/01 16:48:11 naderp 00051 Initial revision 00052 00053 */ 00054 00055 #ifndef _NAMING_H_ 00056 #define _NAMING_H_ 00057 00058 #ifdef HAVE_CONFIG_H 00059 # include "config.h" 00060 #endif 00061 00062 #ifdef HAVE_IOSTREAM 00063 # include <iostream> 00064 #else 00065 # include <iostream.h> 00066 #endif 00067 00068 #ifdef HAVE_STD_IOSTREAM 00069 using namespace std; 00070 #endif 00071 00072 #ifdef HAVE_OMNIORB3 00073 # include <omniORB3/CORBA.h> 00074 #endif 00075 00076 #ifdef HAVE_OMNIORB4 00077 # include <omniORB4/CORBA.h> 00078 #endif 00079 00080 ostream& operator<<(ostream& os, const CosNaming::Name &n); 00081 00088 CosNaming::Name str2name(const char* namestr); 00089 00091 int bindName2Object( 00092 CosNaming::NamingContext_ptr namingContext, 00093 const CosNaming::Name & name, 00094 CORBA::Object_ptr obj 00095 ); 00096 00097 #endif /* _NAMING_H_ */