OmniEvents
naming.h
Go to the documentation of this file.
1// -*- Mode: C++; -*-
2// Package : omniEvents
3// naming.h Created : 1/10/99
4// Author : Paul Nader (pwn)
5//
6// Copyright (C) 1998 Paul Nader, 2003-2004 Alex Tingle.
7//
8// This file is part of the omniEvents application.
9//
10// omniEvents is free software; you can redistribute it and/or
11// modify it under the terms of the GNU Lesser General Public
12// License as published by the Free Software Foundation; either
13// version 2.1 of the License, or (at your option) any later version.
14//
15// omniEvents is distributed in the hope that it will be useful,
16// but WITHOUT ANY WARRANTY; without even the implied warranty of
17// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
18// Lesser General Public License for more details.
19//
20// You should have received a copy of the GNU Lesser General Public
21// License along with this library; if not, write to the Free Software
22// Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
23//
24// Description:
25//
26
27/*
28 $Log: naming.h,v $
29 Revision 1.3.2.1 2005/05/10 14:28:11 alextingle
30 Updated copyrights to 2005.
31
32 Revision 1.3 2004/07/26 16:22:25 alextingle
33 New method: str2name() parses a stringified naming service name info a CosNaming::Name.
34
35 Revision 1.2 2004/04/21 10:01:34 alextingle
36 Removed unused code. Now silently fails if the Orb has no naming service ref.
37
38 Revision 1.1 2003/12/21 16:19:49 alextingle
39 Moved into 'src' directory as part of the change to POA implementation.
40
41 Revision 1.2 2003/11/03 22:33:49 alextingle
42 Removed all platform specific switches. Now uses autoconf, config.h.
43
44 Revision 1.1.1.1 2002/09/25 19:00:32 shamus13
45 Import of OmniEvents source tree from release 2.1.1
46
47 Revision 1.1 2000/09/04 03:41:20 naderp
48 Changed headers.
49
50 Revision 1.0 1999/11/01 16:48:11 naderp
51 Initial revision
52
53*/
54
55#ifndef _NAMING_H_
56#define _NAMING_H_
57
58#ifdef HAVE_CONFIG_H
59# include "config.h"
60#endif
61
62#ifdef HAVE_IOSTREAM
63# include <iostream>
64#else
65# include <iostream.h>
66#endif
67
68#ifdef HAVE_STD_IOSTREAM
69using namespace std;
70#endif
71
72#ifdef HAVE_OMNIORB3
73# include <omniORB3/CORBA.h>
74#endif
75
76#ifdef HAVE_OMNIORB4
77# include <omniORB4/CORBA.h>
78#endif
79
80ostream& operator<<(ostream& os, const CosNaming::Name &n);
81
88CosNaming::Name str2name(const char* namestr);
89
92 CosNaming::NamingContext_ptr namingContext,
93 const CosNaming::Name & name,
94 CORBA::Object_ptr obj
95);
96
97#endif /* _NAMING_H_ */
int bindName2Object(CosNaming::NamingContext_ptr namingContext, const CosNaming::Name &name, CORBA::Object_ptr obj)
Binds CosNaming::Name to object in the naming service.
Definition naming.cc:149
CosNaming::Name str2name(const char *namestr)
Converts stringified name to naming service name.
Definition naming.cc:117
ostream & operator<<(ostream &os, const CosNaming::Name &n)
Definition naming.cc:104