naming.h

Go to the documentation of this file.
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.
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  2004/07/26 16:22:25  alextingle
00030   New method: str2name() parses a stringified naming service name info a CosNaming::Name.
00031 
00032   Revision 1.2  2004/04/21 10:01:34  alextingle
00033   Removed unused code. Now silently fails if the Orb has no naming service ref.
00034 
00035   Revision 1.1  2003/12/21 16:19:49  alextingle
00036   Moved into 'src' directory as part of the change to POA implementation.
00037 
00038   Revision 1.2  2003/11/03 22:33:49  alextingle
00039   Removed all platform specific switches. Now uses autoconf, config.h.
00040 
00041   Revision 1.1.1.1  2002/09/25 19:00:32  shamus13
00042   Import of OmniEvents source tree from release 2.1.1
00043 
00044   Revision 1.1  2000/09/04 03:41:20  naderp
00045   Changed headers.
00046 
00047   Revision 1.0  1999/11/01 16:48:11  naderp
00048   Initial revision
00049 
00050 */
00051 
00052 #ifndef _NAMING_H_
00053 #define _NAMING_H_
00054 
00055 #ifdef HAVE_CONFIG_H
00056 #  include "config.h"
00057 #endif
00058 
00059 #ifdef HAVE_IOSTREAM
00060 #  include <iostream>
00061 #else
00062 #  include <iostream.h>
00063 #endif
00064 
00065 #ifdef HAVE_STD_IOSTREAM
00066 using namespace std;
00067 #endif
00068 
00069 #ifdef HAVE_OMNIORB3
00070 #  include <omniORB3/CORBA.h>
00071 #endif
00072 
00073 #ifdef HAVE_OMNIORB4
00074 #  include <omniORB4/CORBA.h>
00075 #endif
00076 
00077 ostream& operator<<(ostream& os, const CosNaming::Name &n);
00078 
00085 CosNaming::Name str2name(const char* namestr);
00086 
00088 int bindName2Object(
00089   CosNaming::NamingContext_ptr  namingContext,
00090   const CosNaming::Name &       name,
00091   CORBA::Object_ptr             obj
00092 );
00093 
00094 #endif /* _NAMING_H_ */

Generated on Mon Jan 9 03:52:13 2006 for OmniEvents by  doxygen 1.4.6