LTP GCOV extension - code coverage report
Current view: directory - gen/cpp/services/naming - CosNaming.h
Test: YAORB-0.2.info
Date: 2006-02-27 Instrumented lines: 2
Code covered: 50.0 % Executed lines: 1

       1                 : 
       2                 : // This file was automatically generated by YaOrb IDL->C++ compiler.
       3                 : // DO NOT EDIT !
       4                 : 
       5                 : #ifndef __CosNaming_H
       6                 : #define __CosNaming_H
       7                 : 
       8                 : namespace CosNaming
       9                 : {
      10                 :    class NamingContext ;
      11                 :    typedef NamingContext* NamingContext_ptr ;
      12                 :    typedef CORBAObjectVar<NamingContext> NamingContext_var ;
      13                 : 
      14                 :    class BindingIterator ;
      15                 :    typedef BindingIterator* BindingIterator_ptr ;
      16                 :    typedef CORBAObjectVar<BindingIterator> BindingIterator_var ;
      17                 : 
      18                 :    typedef char* Istring ;
      19                 : 
      20                 :    struct NameComponent
      21               1 :    {
      22                 :       CORBA::String_var id ;
      23                 :       CORBA::String_var kind ;
      24                 : 
      25                 :       void cdr(YAORB::CDR*) ;
      26                 :    } ;
      27                 :    typedef CORBAVLengthStructVar<NameComponent> NameComponent_var ;
      28                 : 
      29                 :    typedef CORBASequence<CosNaming::NameComponent_var> Name ;
      30                 :    typedef CORBAVLengthStructVar<Name> Name_var ;
      31                 : 
      32                 :    enum BindingType
      33                 :    {
      34                 :       nobject = 0,
      35                 :       ncontext = 1
      36                 :    } ;
      37                 :    typedef BindingType& BindingType_out ; 
      38                 :    void CDR_BindingType(YAORB::CDR*, BindingType*) ;
      39                 : 
      40                 :    struct Binding
      41               0 :    {
      42                 :       CosNaming::Name_var binding_name ;
      43                 :       CosNaming::BindingType binding_type ;
      44                 : 
      45                 :       void cdr(YAORB::CDR*) ;
      46                 :    } ;
      47                 :    typedef CORBAVLengthStructVar<Binding> Binding_var ;
      48                 : 
      49                 :    typedef CORBASequence<CosNaming::Binding_var> BindingList ;
      50                 :    typedef CORBAVLengthStructVar<BindingList> BindingList_var ;
      51                 : 
      52                 :    class NamingContext : public virtual CORBA::Object
      53                 :    {
      54                 :       public :
      55                 :          virtual ~NamingContext() ;
      56                 :          typedef NamingContext_ptr _ptr_type ;
      57                 :          typedef NamingContext_var _var_type ;
      58                 : 
      59                 :          static NamingContext_ptr _duplicate(NamingContext_ptr obj) ;
      60                 :          static NamingContext_ptr _narrow(CORBA::Object_ptr obj) ;
      61                 :          static NamingContext_ptr _nil(void) ;
      62                 :          static NamingContext_ptr _bind(YAORB::CDR*) ;
      63                 :          virtual const YAORB::ClassInfo* _getInfo(void) const ;
      64                 :          virtual bool _isA(const YAORB::ClassInfo*, void*& that) const ;
      65                 : 
      66                 :          enum NotFoundReason
      67                 :          {
      68                 :             missing_node = 0,
      69                 :             not_context = 1,
      70                 :             not_object = 2
      71                 :          } ;
      72                 :          typedef NotFoundReason& NotFoundReason_out ; 
      73                 :          void CDR_NotFoundReason(YAORB::CDR*, NotFoundReason*) ;
      74                 : 
      75                 :          class NotFound : public CORBA::UserException
      76                 :          {
      77                 :             public :
      78                 :                NotFound() ;
      79                 :                NotFound(const NotFound& ) ;
      80                 :                ~NotFound() ;
      81                 :                NotFound& operator =(const NotFound& ) ;
      82                 : 
      83                 :                static NotFound* _downcast(CORBA::UserException*) ;
      84                 :                static const NotFound* _downcast(const CORBA::UserException*) ;
      85                 :                virtual void _raise(void) const ;
      86                 :             private :
      87                 :                CosNaming::NamingContext::NotFoundReason why ;
      88                 :                CosNaming::Name_var rest_of_name ;
      89                 :          } ;
      90                 : 
      91                 :          class CannotProceed : public CORBA::UserException
      92                 :          {
      93                 :             public :
      94                 :                CannotProceed() ;
      95                 :                CannotProceed(const CannotProceed& ) ;
      96                 :                ~CannotProceed() ;
      97                 :                CannotProceed& operator =(const CannotProceed& ) ;
      98                 : 
      99                 :                static CannotProceed* _downcast(CORBA::UserException*) ;
     100                 :                static const CannotProceed* _downcast(const CORBA::UserException*) ;
     101                 :                virtual void _raise(void) const ;
     102                 :             private :
     103                 :                CosNaming::NamingContext_var cxt ;
     104                 :                CosNaming::Name_var rest_of_name ;
     105                 :          } ;
     106                 : 
     107                 :          class InvalidName : public CORBA::UserException
     108                 :          {
     109                 :             public :
     110                 :                InvalidName() ;
     111                 :                InvalidName(const InvalidName& ) ;
     112                 :                ~InvalidName() ;
     113                 :                InvalidName& operator =(const InvalidName& ) ;
     114                 : 
     115                 :                static InvalidName* _downcast(CORBA::UserException*) ;
     116                 :                static const InvalidName* _downcast(const CORBA::UserException*) ;
     117                 :                virtual void _raise(void) const ;
     118                 :             private :
     119                 :          } ;
     120                 : 
     121                 :          class AlreadyBound : public CORBA::UserException
     122                 :          {
     123                 :             public :
     124                 :                AlreadyBound() ;
     125                 :                AlreadyBound(const AlreadyBound& ) ;
     126                 :                ~AlreadyBound() ;
     127                 :                AlreadyBound& operator =(const AlreadyBound& ) ;
     128                 : 
     129                 :                static AlreadyBound* _downcast(CORBA::UserException*) ;
     130                 :                static const AlreadyBound* _downcast(const CORBA::UserException*) ;
     131                 :                virtual void _raise(void) const ;
     132                 :             private :
     133                 :          } ;
     134                 : 
     135                 :          class NotEmpty : public CORBA::UserException
     136                 :          {
     137                 :             public :
     138                 :                NotEmpty() ;
     139                 :                NotEmpty(const NotEmpty& ) ;
     140                 :                ~NotEmpty() ;
     141                 :                NotEmpty& operator =(const NotEmpty& ) ;
     142                 : 
     143                 :                static NotEmpty* _downcast(CORBA::UserException*) ;
     144                 :                static const NotEmpty* _downcast(const CORBA::UserException*) ;
     145                 :                virtual void _raise(void) const ;
     146                 :             private :
     147                 :          } ;
     148                 : 
     149                 :          virtual void bind(
     150                 :             const CosNaming::Name& n,
     151                 :             const CORBA::Object_ptr obj) = 0 ;
     152                 : 
     153                 :          virtual void rebind(
     154                 :             const CosNaming::Name& n,
     155                 :             const CORBA::Object_ptr obj) = 0 ;
     156                 : 
     157                 :          virtual void bind_context(
     158                 :             const CosNaming::Name& n,
     159                 :             CosNaming::NamingContext_ptr nc) = 0 ;
     160                 : 
     161                 :          virtual void rebind_context(
     162                 :             const CosNaming::Name& n,
     163                 :             CosNaming::NamingContext_ptr nc) = 0 ;
     164                 : 
     165                 :          virtual CORBA::Object_ptr resolve(
     166                 :             const CosNaming::Name& n) = 0 ;
     167                 : 
     168                 :          virtual void unbind(
     169                 :             const CosNaming::Name& n) = 0 ;
     170                 : 
     171                 :          virtual CosNaming::NamingContext_ptr new_context(void) = 0 ;
     172                 : 
     173                 :          virtual CosNaming::NamingContext_ptr bind_new_context(
     174                 :             const CosNaming::Name& n) = 0 ;
     175                 : 
     176                 :          virtual void destroy(void) = 0 ;
     177                 : 
     178                 :          virtual void list(
     179                 :             CORBA::ULong how_many,
     180                 :             CosNaming::BindingList*& bl,
     181                 :             CosNaming::BindingIterator_ptr& bi) = 0 ;
     182                 : 
     183                 : 
     184                 :       protected :
     185                 :          static const YAORB::ClassInfo _info ;
     186                 : 
     187                 :          NamingContext() ;
     188                 : 
     189                 :       private :
     190                 :          NamingContext(const NamingContext&) ;
     191                 :          NamingContext& operator = (const NamingContext&) ;
     192                 :    } ;
     193                 : 
     194                 :    class BindingIterator : public virtual CORBA::Object
     195                 :    {
     196                 :       public :
     197                 :          virtual ~BindingIterator() ;
     198                 :          typedef BindingIterator_ptr _ptr_type ;
     199                 :          typedef BindingIterator_var _var_type ;
     200                 : 
     201                 :          static BindingIterator_ptr _duplicate(BindingIterator_ptr obj) ;
     202                 :          static BindingIterator_ptr _narrow(CORBA::Object_ptr obj) ;
     203                 :          static BindingIterator_ptr _nil(void) ;
     204                 :          static BindingIterator_ptr _bind(YAORB::CDR*) ;
     205                 :          virtual const YAORB::ClassInfo* _getInfo(void) const ;
     206                 :          virtual bool _isA(const YAORB::ClassInfo*, void*& that) const ;
     207                 : 
     208                 :          virtual CORBA::Boolean next_one(
     209                 :             CosNaming::Binding*& b) = 0 ;
     210                 : 
     211                 :          virtual CORBA::Boolean next_n(
     212                 :             CORBA::ULong how_many,
     213                 :             CosNaming::BindingList*& bl) = 0 ;
     214                 : 
     215                 :          virtual void destroy(void) = 0 ;
     216                 : 
     217                 : 
     218                 :       protected :
     219                 :          static const YAORB::ClassInfo _info ;
     220                 : 
     221                 :          BindingIterator() ;
     222                 : 
     223                 :       private :
     224                 :          BindingIterator(const BindingIterator&) ;
     225                 :          BindingIterator& operator = (const BindingIterator&) ;
     226                 :    } ;
     227                 : 
     228                 : }
     229                 : #endif

Generated by: LTP GCOV extension version 1.4