2 * MICO --- an Open Source CORBA implementation
3 * Copyright (c) 1997-2003 by The Mico Team
5 * This file was automatically generated. DO NOT EDIT!
9 #include <mico/throw.h>
11 #ifndef __COSNAMING_H__
12 #define __COSNAMING_H__
22 class BindingIterator;
23 typedef BindingIterator *BindingIterator_ptr;
24 typedef BindingIterator_ptr BindingIteratorRef;
25 typedef ObjVar< BindingIterator > BindingIterator_var;
26 typedef ObjOut< BindingIterator > BindingIterator_out;
29 typedef NamingContext *NamingContext_ptr;
30 typedef NamingContext_ptr NamingContextRef;
31 typedef ObjVar< NamingContext > NamingContext_var;
32 typedef ObjOut< NamingContext > NamingContext_out;
34 class NamingContextExt;
35 typedef NamingContextExt *NamingContextExt_ptr;
36 typedef NamingContextExt_ptr NamingContextExtRef;
37 typedef ObjVar< NamingContextExt > NamingContextExt_var;
38 typedef ObjOut< NamingContextExt > NamingContextExt_out;
50 typedef char* Istring;
51 typedef CORBA::String_var Istring_var;
52 typedef CORBA::String_out Istring_out;
55 typedef TVarVar< NameComponent > NameComponent_var;
56 typedef TVarOut< NameComponent > NameComponent_out;
59 struct NameComponent {
60 #ifdef HAVE_TYPEDEF_OVERLOAD
61 typedef NameComponent_var _var_type;
63 #ifdef HAVE_EXPLICIT_STRUCT_OPS
66 NameComponent( const NameComponent& s );
67 NameComponent& operator=( const NameComponent& s );
68 #endif //HAVE_EXPLICIT_STRUCT_OPS
74 typedef SequenceTmpl< NameComponent,MICO_TID_DEF> Name;
75 typedef TSeqVar< SequenceTmpl< NameComponent,MICO_TID_DEF> > Name_var;
76 typedef TSeqOut< SequenceTmpl< NameComponent,MICO_TID_DEF> > Name_out;
83 typedef BindingType& BindingType_out;
86 typedef TVarVar< Binding > Binding_var;
87 typedef TVarOut< Binding > Binding_out;
91 #ifdef HAVE_TYPEDEF_OVERLOAD
92 typedef Binding_var _var_type;
94 #ifdef HAVE_EXPLICIT_STRUCT_OPS
97 Binding( const Binding& s );
98 Binding& operator=( const Binding& s );
99 #endif //HAVE_EXPLICIT_STRUCT_OPS
102 BindingType binding_type;
105 typedef SequenceTmpl< Binding,MICO_TID_DEF> BindingList;
106 typedef TSeqVar< SequenceTmpl< Binding,MICO_TID_DEF> > BindingList_var;
107 typedef TSeqOut< SequenceTmpl< Binding,MICO_TID_DEF> > BindingList_out;
111 * Base class and common definitions for interface BindingIterator
114 class BindingIterator :
115 virtual public CORBA::Object
118 virtual ~BindingIterator();
120 #ifdef HAVE_TYPEDEF_OVERLOAD
121 typedef BindingIterator_ptr _ptr_type;
122 typedef BindingIterator_var _var_type;
125 static BindingIterator_ptr _narrow( CORBA::Object_ptr obj );
126 static BindingIterator_ptr _narrow( CORBA::AbstractBase_ptr obj );
127 static BindingIterator_ptr _duplicate( BindingIterator_ptr _obj )
129 CORBA::Object::_duplicate (_obj);
133 static BindingIterator_ptr _nil()
138 virtual void *_narrow_helper( const char *repoid );
140 virtual CORBA::Boolean next_one( Binding_out b ) = 0;
141 virtual CORBA::Boolean next_n( CORBA::ULong how_many, BindingList_out bl ) = 0;
142 virtual void destroy() = 0;
145 BindingIterator() {};
147 BindingIterator( const BindingIterator& );
148 void operator=( const BindingIterator& );
151 // Stub for interface BindingIterator
152 class BindingIterator_stub:
153 virtual public BindingIterator
156 virtual ~BindingIterator_stub();
157 CORBA::Boolean next_one( Binding_out b );
158 CORBA::Boolean next_n( CORBA::ULong how_many, BindingList_out bl );
162 void operator=( const BindingIterator_stub& );
165 #ifndef MICO_CONF_NO_POA
167 class BindingIterator_stub_clp :
168 virtual public BindingIterator_stub,
169 virtual public PortableServer::StubBase
172 BindingIterator_stub_clp (PortableServer::POA_ptr, CORBA::Object_ptr);
173 virtual ~BindingIterator_stub_clp ();
174 CORBA::Boolean next_one( Binding_out b );
175 CORBA::Boolean next_n( CORBA::ULong how_many, BindingList_out bl );
179 BindingIterator_stub_clp ();
181 void operator=( const BindingIterator_stub_clp & );
184 #endif // MICO_CONF_NO_POA
188 * Base class and common definitions for interface NamingContext
191 class NamingContext :
192 virtual public CORBA::Object
195 virtual ~NamingContext();
197 #ifdef HAVE_TYPEDEF_OVERLOAD
198 typedef NamingContext_ptr _ptr_type;
199 typedef NamingContext_var _var_type;
202 static NamingContext_ptr _narrow( CORBA::Object_ptr obj );
203 static NamingContext_ptr _narrow( CORBA::AbstractBase_ptr obj );
204 static NamingContext_ptr _duplicate( NamingContext_ptr _obj )
206 CORBA::Object::_duplicate (_obj);
210 static NamingContext_ptr _nil()
215 virtual void *_narrow_helper( const char *repoid );
217 enum NotFoundReason {
223 typedef NotFoundReason& NotFoundReason_out;
225 struct NotFound : public CORBA::UserException {
226 #ifdef HAVE_EXPLICIT_STRUCT_OPS
229 NotFound( const NotFound& s );
230 NotFound& operator=( const NotFound& s );
231 #endif //HAVE_EXPLICIT_STRUCT_OPS
233 #ifndef HAVE_EXPLICIT_STRUCT_OPS
235 #endif //HAVE_EXPLICIT_STRUCT_OPS
236 NotFound( ::CosNaming::NamingContext::NotFoundReason _m0, const ::CosNaming::Name& _m1 );
239 NotFound *operator->() { return this; }
240 NotFound& operator*() { return *this; }
241 operator NotFound*() { return this; }
242 #endif // HAVE_STD_EH
244 void _throwit() const;
245 const char *_repoid() const;
246 void _encode( CORBA::DataEncoder &en ) const;
247 void _encode_any( CORBA::Any &a ) const;
248 CORBA::Exception *_clone() const;
249 static NotFound *_downcast( CORBA::Exception *ex );
250 static const NotFound *_downcast( const CORBA::Exception *ex );
256 typedef NotFound NotFound_catch;
258 typedef ExceptVar< NotFound > NotFound_var;
259 typedef TVarOut< NotFound > NotFound_out;
260 typedef NotFound_var NotFound_catch;
261 #endif // HAVE_STD_EH
263 struct CannotProceed : public CORBA::UserException {
264 #ifdef HAVE_EXPLICIT_STRUCT_OPS
267 CannotProceed( const CannotProceed& s );
268 CannotProceed& operator=( const CannotProceed& s );
269 #endif //HAVE_EXPLICIT_STRUCT_OPS
271 #ifndef HAVE_EXPLICIT_STRUCT_OPS
273 #endif //HAVE_EXPLICIT_STRUCT_OPS
274 CannotProceed( ::CosNaming::NamingContext_ptr _m0, const ::CosNaming::Name& _m1 );
277 CannotProceed *operator->() { return this; }
278 CannotProceed& operator*() { return *this; }
279 operator CannotProceed*() { return this; }
280 #endif // HAVE_STD_EH
282 void _throwit() const;
283 const char *_repoid() const;
284 void _encode( CORBA::DataEncoder &en ) const;
285 void _encode_any( CORBA::Any &a ) const;
286 CORBA::Exception *_clone() const;
287 static CannotProceed *_downcast( CORBA::Exception *ex );
288 static const CannotProceed *_downcast( const CORBA::Exception *ex );
289 NamingContext_var cxt;
294 typedef CannotProceed CannotProceed_catch;
296 typedef ExceptVar< CannotProceed > CannotProceed_var;
297 typedef TVarOut< CannotProceed > CannotProceed_out;
298 typedef CannotProceed_var CannotProceed_catch;
299 #endif // HAVE_STD_EH
301 struct InvalidName : public CORBA::UserException {
302 #ifdef HAVE_EXPLICIT_STRUCT_OPS
305 InvalidName( const InvalidName& s );
306 InvalidName& operator=( const InvalidName& s );
307 #endif //HAVE_EXPLICIT_STRUCT_OPS
311 InvalidName *operator->() { return this; }
312 InvalidName& operator*() { return *this; }
313 operator InvalidName*() { return this; }
314 #endif // HAVE_STD_EH
316 void _throwit() const;
317 const char *_repoid() const;
318 void _encode( CORBA::DataEncoder &en ) const;
319 void _encode_any( CORBA::Any &a ) const;
320 CORBA::Exception *_clone() const;
321 static InvalidName *_downcast( CORBA::Exception *ex );
322 static const InvalidName *_downcast( const CORBA::Exception *ex );
326 typedef InvalidName InvalidName_catch;
328 typedef ExceptVar< InvalidName > InvalidName_var;
329 typedef TVarOut< InvalidName > InvalidName_out;
330 typedef InvalidName_var InvalidName_catch;
331 #endif // HAVE_STD_EH
333 struct AlreadyBound : public CORBA::UserException {
334 #ifdef HAVE_EXPLICIT_STRUCT_OPS
337 AlreadyBound( const AlreadyBound& s );
338 AlreadyBound& operator=( const AlreadyBound& s );
339 #endif //HAVE_EXPLICIT_STRUCT_OPS
343 AlreadyBound *operator->() { return this; }
344 AlreadyBound& operator*() { return *this; }
345 operator AlreadyBound*() { return this; }
346 #endif // HAVE_STD_EH
348 void _throwit() const;
349 const char *_repoid() const;
350 void _encode( CORBA::DataEncoder &en ) const;
351 void _encode_any( CORBA::Any &a ) const;
352 CORBA::Exception *_clone() const;
353 static AlreadyBound *_downcast( CORBA::Exception *ex );
354 static const AlreadyBound *_downcast( const CORBA::Exception *ex );
358 typedef AlreadyBound AlreadyBound_catch;
360 typedef ExceptVar< AlreadyBound > AlreadyBound_var;
361 typedef TVarOut< AlreadyBound > AlreadyBound_out;
362 typedef AlreadyBound_var AlreadyBound_catch;
363 #endif // HAVE_STD_EH
365 struct NotEmpty : public CORBA::UserException {
366 #ifdef HAVE_EXPLICIT_STRUCT_OPS
369 NotEmpty( const NotEmpty& s );
370 NotEmpty& operator=( const NotEmpty& s );
371 #endif //HAVE_EXPLICIT_STRUCT_OPS
375 NotEmpty *operator->() { return this; }
376 NotEmpty& operator*() { return *this; }
377 operator NotEmpty*() { return this; }
378 #endif // HAVE_STD_EH
380 void _throwit() const;
381 const char *_repoid() const;
382 void _encode( CORBA::DataEncoder &en ) const;
383 void _encode_any( CORBA::Any &a ) const;
384 CORBA::Exception *_clone() const;
385 static NotEmpty *_downcast( CORBA::Exception *ex );
386 static const NotEmpty *_downcast( const CORBA::Exception *ex );
390 typedef NotEmpty NotEmpty_catch;
392 typedef ExceptVar< NotEmpty > NotEmpty_var;
393 typedef TVarOut< NotEmpty > NotEmpty_out;
394 typedef NotEmpty_var NotEmpty_catch;
395 #endif // HAVE_STD_EH
397 virtual void bind( const Name& n, CORBA::Object_ptr obj ) = 0;
398 virtual void rebind( const Name& n, CORBA::Object_ptr obj ) = 0;
399 virtual void bind_context( const Name& n, NamingContext_ptr nc ) = 0;
400 virtual void rebind_context( const Name& n, NamingContext_ptr nc ) = 0;
401 virtual CORBA::Object_ptr resolve( const Name& n ) = 0;
402 virtual void unbind( const Name& n ) = 0;
403 virtual NamingContext_ptr new_context() = 0;
404 virtual NamingContext_ptr bind_new_context( const Name& n ) = 0;
405 virtual void destroy() = 0;
406 virtual void list( CORBA::ULong how_many, BindingList_out bl, BindingIterator_out bi ) = 0;
411 NamingContext( const NamingContext& );
412 void operator=( const NamingContext& );
415 // Stub for interface NamingContext
416 class NamingContext_stub:
417 virtual public NamingContext
420 virtual ~NamingContext_stub();
421 void bind( const Name& n, CORBA::Object_ptr obj );
422 void rebind( const Name& n, CORBA::Object_ptr obj );
423 void bind_context( const Name& n, NamingContext_ptr nc );
424 void rebind_context( const Name& n, NamingContext_ptr nc );
425 CORBA::Object_ptr resolve( const Name& n );
426 void unbind( const Name& n );
427 NamingContext_ptr new_context();
428 NamingContext_ptr bind_new_context( const Name& n );
430 void list( CORBA::ULong how_many, BindingList_out bl, BindingIterator_out bi );
433 void operator=( const NamingContext_stub& );
436 #ifndef MICO_CONF_NO_POA
438 class NamingContext_stub_clp :
439 virtual public NamingContext_stub,
440 virtual public PortableServer::StubBase
443 NamingContext_stub_clp (PortableServer::POA_ptr, CORBA::Object_ptr);
444 virtual ~NamingContext_stub_clp ();
445 void bind( const Name& n, CORBA::Object_ptr obj );
446 void rebind( const Name& n, CORBA::Object_ptr obj );
447 void bind_context( const Name& n, NamingContext_ptr nc );
448 void rebind_context( const Name& n, NamingContext_ptr nc );
449 CORBA::Object_ptr resolve( const Name& n );
450 void unbind( const Name& n );
451 NamingContext_ptr new_context();
452 NamingContext_ptr bind_new_context( const Name& n );
454 void list( CORBA::ULong how_many, BindingList_out bl, BindingIterator_out bi );
457 NamingContext_stub_clp ();
459 void operator=( const NamingContext_stub_clp & );
462 #endif // MICO_CONF_NO_POA
466 * Base class and common definitions for interface NamingContextExt
469 class NamingContextExt :
470 virtual public ::CosNaming::NamingContext
473 virtual ~NamingContextExt();
475 #ifdef HAVE_TYPEDEF_OVERLOAD
476 typedef NamingContextExt_ptr _ptr_type;
477 typedef NamingContextExt_var _var_type;
480 static NamingContextExt_ptr _narrow( CORBA::Object_ptr obj );
481 static NamingContextExt_ptr _narrow( CORBA::AbstractBase_ptr obj );
482 static NamingContextExt_ptr _duplicate( NamingContextExt_ptr _obj )
484 CORBA::Object::_duplicate (_obj);
488 static NamingContextExt_ptr _nil()
493 virtual void *_narrow_helper( const char *repoid );
495 typedef char* StringName;
496 typedef CORBA::String_var StringName_var;
497 typedef CORBA::String_out StringName_out;
499 typedef char* Address;
500 typedef CORBA::String_var Address_var;
501 typedef CORBA::String_out Address_out;
503 typedef char* URLString;
504 typedef CORBA::String_var URLString_var;
505 typedef CORBA::String_out URLString_out;
507 struct InvalidAddress : public CORBA::UserException {
508 #ifdef HAVE_EXPLICIT_STRUCT_OPS
511 InvalidAddress( const InvalidAddress& s );
512 InvalidAddress& operator=( const InvalidAddress& s );
513 #endif //HAVE_EXPLICIT_STRUCT_OPS
517 InvalidAddress *operator->() { return this; }
518 InvalidAddress& operator*() { return *this; }
519 operator InvalidAddress*() { return this; }
520 #endif // HAVE_STD_EH
522 void _throwit() const;
523 const char *_repoid() const;
524 void _encode( CORBA::DataEncoder &en ) const;
525 void _encode_any( CORBA::Any &a ) const;
526 CORBA::Exception *_clone() const;
527 static InvalidAddress *_downcast( CORBA::Exception *ex );
528 static const InvalidAddress *_downcast( const CORBA::Exception *ex );
532 typedef InvalidAddress InvalidAddress_catch;
534 typedef ExceptVar< InvalidAddress > InvalidAddress_var;
535 typedef TVarOut< InvalidAddress > InvalidAddress_out;
536 typedef InvalidAddress_var InvalidAddress_catch;
537 #endif // HAVE_STD_EH
539 virtual char* to_string( const Name& n ) = 0;
540 virtual Name* to_name( const char* sn ) = 0;
541 virtual char* to_url( const char* addr, const char* sn ) = 0;
542 virtual CORBA::Object_ptr resolve_str( const char* n ) = 0;
545 NamingContextExt() {};
547 NamingContextExt( const NamingContextExt& );
548 void operator=( const NamingContextExt& );
551 // Stub for interface NamingContextExt
552 class NamingContextExt_stub:
553 virtual public NamingContextExt,
554 virtual public ::CosNaming::NamingContext_stub
557 virtual ~NamingContextExt_stub();
558 char* to_string( const Name& n );
559 Name* to_name( const char* sn );
560 char* to_url( const char* addr, const char* sn );
561 CORBA::Object_ptr resolve_str( const char* n );
564 void operator=( const NamingContextExt_stub& );
567 #ifndef MICO_CONF_NO_POA
569 class NamingContextExt_stub_clp :
570 virtual public NamingContextExt_stub,
571 virtual public ::CosNaming::NamingContext_stub_clp
574 NamingContextExt_stub_clp (PortableServer::POA_ptr, CORBA::Object_ptr);
575 virtual ~NamingContextExt_stub_clp ();
576 char* to_string( const Name& n );
577 Name* to_name( const char* sn );
578 char* to_url( const char* addr, const char* sn );
579 CORBA::Object_ptr resolve_str( const char* n );
582 NamingContextExt_stub_clp ();
584 void operator=( const NamingContextExt_stub_clp & );
587 #endif // MICO_CONF_NO_POA
592 #ifndef MICO_CONF_NO_POA
596 namespace POA_CosNaming
599 class BindingIterator : virtual public PortableServer::StaticImplementation
602 virtual ~BindingIterator ();
603 CosNaming::BindingIterator_ptr _this ();
604 bool dispatch (CORBA::StaticServerRequest_ptr);
605 virtual void invoke (CORBA::StaticServerRequest_ptr);
606 virtual CORBA::Boolean _is_a (const char *);
607 virtual CORBA::InterfaceDef_ptr _get_interface ();
608 virtual CORBA::RepositoryId _primary_interface (const PortableServer::ObjectId &, PortableServer::POA_ptr);
610 virtual void * _narrow_helper (const char *);
611 static BindingIterator * _narrow (PortableServer::Servant);
612 virtual CORBA::Object_ptr _make_stub (PortableServer::POA_ptr, CORBA::Object_ptr);
614 virtual CORBA::Boolean next_one( ::CosNaming::Binding_out b ) = 0;
615 virtual CORBA::Boolean next_n( CORBA::ULong how_many, ::CosNaming::BindingList_out bl ) = 0;
616 virtual void destroy() = 0;
619 BindingIterator () {};
622 BindingIterator (const BindingIterator &);
623 void operator= (const BindingIterator &);
626 class NamingContext : virtual public PortableServer::StaticImplementation
629 virtual ~NamingContext ();
630 CosNaming::NamingContext_ptr _this ();
631 bool dispatch (CORBA::StaticServerRequest_ptr);
632 virtual void invoke (CORBA::StaticServerRequest_ptr);
633 virtual CORBA::Boolean _is_a (const char *);
634 virtual CORBA::InterfaceDef_ptr _get_interface ();
635 virtual CORBA::RepositoryId _primary_interface (const PortableServer::ObjectId &, PortableServer::POA_ptr);
637 virtual void * _narrow_helper (const char *);
638 static NamingContext * _narrow (PortableServer::Servant);
639 virtual CORBA::Object_ptr _make_stub (PortableServer::POA_ptr, CORBA::Object_ptr);
641 virtual void bind( const ::CosNaming::Name& n, CORBA::Object_ptr obj ) = 0;
642 virtual void rebind( const ::CosNaming::Name& n, CORBA::Object_ptr obj ) = 0;
643 virtual void bind_context( const ::CosNaming::Name& n, ::CosNaming::NamingContext_ptr nc ) = 0;
644 virtual void rebind_context( const ::CosNaming::Name& n, ::CosNaming::NamingContext_ptr nc ) = 0;
645 virtual CORBA::Object_ptr resolve( const ::CosNaming::Name& n ) = 0;
646 virtual void unbind( const ::CosNaming::Name& n ) = 0;
647 virtual ::CosNaming::NamingContext_ptr new_context() = 0;
648 virtual ::CosNaming::NamingContext_ptr bind_new_context( const ::CosNaming::Name& n ) = 0;
649 virtual void destroy() = 0;
650 virtual void list( CORBA::ULong how_many, ::CosNaming::BindingList_out bl, ::CosNaming::BindingIterator_out bi ) = 0;
656 NamingContext (const NamingContext &);
657 void operator= (const NamingContext &);
660 class NamingContextExt :
661 virtual public POA_CosNaming::NamingContext
664 virtual ~NamingContextExt ();
665 CosNaming::NamingContextExt_ptr _this ();
666 bool dispatch (CORBA::StaticServerRequest_ptr);
667 virtual void invoke (CORBA::StaticServerRequest_ptr);
668 virtual CORBA::Boolean _is_a (const char *);
669 virtual CORBA::InterfaceDef_ptr _get_interface ();
670 virtual CORBA::RepositoryId _primary_interface (const PortableServer::ObjectId &, PortableServer::POA_ptr);
672 virtual void * _narrow_helper (const char *);
673 static NamingContextExt * _narrow (PortableServer::Servant);
674 virtual CORBA::Object_ptr _make_stub (PortableServer::POA_ptr, CORBA::Object_ptr);
676 virtual char* to_string( const ::CosNaming::Name& n ) = 0;
677 virtual ::CosNaming::Name* to_name( const char* sn ) = 0;
678 virtual char* to_url( const char* addr, const char* sn ) = 0;
679 virtual CORBA::Object_ptr resolve_str( const char* n ) = 0;
682 NamingContextExt () {};
685 NamingContextExt (const NamingContextExt &);
686 void operator= (const NamingContextExt &);
692 #endif // MICO_CONF_NO_POA
694 extern CORBA::StaticTypeInfo *_marshaller_CosNaming_NameComponent;
696 extern CORBA::StaticTypeInfo *_marshaller_CosNaming_BindingType;
698 extern CORBA::StaticTypeInfo *_marshaller_CosNaming_Binding;
700 extern CORBA::StaticTypeInfo *_marshaller_CosNaming_BindingIterator;
702 extern CORBA::StaticTypeInfo *_marshaller_CosNaming_NamingContext_NotFoundReason;
704 extern CORBA::StaticTypeInfo *_marshaller_CosNaming_NamingContext_NotFound;
706 extern CORBA::StaticTypeInfo *_marshaller_CosNaming_NamingContext_CannotProceed;
708 extern CORBA::StaticTypeInfo *_marshaller_CosNaming_NamingContext_InvalidName;
710 extern CORBA::StaticTypeInfo *_marshaller_CosNaming_NamingContext_AlreadyBound;
712 extern CORBA::StaticTypeInfo *_marshaller_CosNaming_NamingContext_NotEmpty;
714 extern CORBA::StaticTypeInfo *_marshaller_CosNaming_NamingContext;
716 extern CORBA::StaticTypeInfo *_marshaller_CosNaming_NamingContextExt_InvalidAddress;
718 extern CORBA::StaticTypeInfo *_marshaller_CosNaming_NamingContextExt;
720 extern CORBA::StaticTypeInfo *_marshaller__seq_CosNaming_NameComponent;
722 extern CORBA::StaticTypeInfo *_marshaller__seq_CosNaming_Binding;