diff options
author | nanbor <nanbor@ae88bc3d-4319-0410-8dbf-d08b4c9d3795> | 1998-11-30 00:12:48 +0000 |
---|---|---|
committer | nanbor <nanbor@ae88bc3d-4319-0410-8dbf-d08b4c9d3795> | 1998-11-30 00:12:48 +0000 |
commit | 3a0231ad4ac341cd5c16a5369447391e938233ce (patch) | |
tree | bb2989cd7a3ed5109449cc25d9c2f5be29780831 /TAO/tao/ORB.h | |
parent | e435ef69fdea60eb148d8af41880c675a9b969fb (diff) | |
download | ATCD-3a0231ad4ac341cd5c16a5369447391e938233ce.tar.gz |
resolve_initial_references should return InvalidName if it can't resolve the name
Diffstat (limited to 'TAO/tao/ORB.h')
-rw-r--r-- | TAO/tao/ORB.h | 19 |
1 files changed, 17 insertions, 2 deletions
diff --git a/TAO/tao/ORB.h b/TAO/tao/ORB.h index 908c1692eac..0ecf7d05283 100644 --- a/TAO/tao/ORB.h +++ b/TAO/tao/ORB.h @@ -742,7 +742,7 @@ public: Environment &env = CORBA_Environment::default_environment ()); // ORB initialisation, per OMG document 94-9-46. - // = The following two methods are TAO-specific extensions. + // = The following two methods are TAO-specific extensions. static ORB_ptr instance (void); // Returns a pointer to the "default ORB." @@ -789,6 +789,7 @@ private: #include "tao/Sequence_T.h" #include "tao/Object_KeyC.h" #include "tao/Union.h" +#include "tao/Exception.h" class STUB_Object; // Forward declarations. @@ -812,6 +813,16 @@ public: // ORB_Core has special privileges friend class TAO_ORB_Core; + class TAO_Export InvalidName : public CORBA_UserException + { + public: + InvalidName (void); + + virtual void _raise (void); + InvalidName* _narrow (CORBA_Exception *ex); + virtual int _is_a (const char* interface_id) const; + }; + static CORBA::ORB_ptr _duplicate (CORBA::ORB_ptr orb); // Return a duplicate of <{orb}>. When work with this duplicate is // complete, it should be freed up using <CORBA::release()>. @@ -892,7 +903,11 @@ public: // currently supported. CORBA_Object_ptr resolve_initial_references (CORBA::String name, - ACE_Time_Value *timeout = 0); + CORBA_Environment &_env = CORBA_Environment::default_environment ()); + + CORBA_Object_ptr resolve_initial_references (CORBA::String name, + ACE_Time_Value *timeout, + CORBA_Environment &_env = CORBA_Environment::default_environment ()); // This method acts as a mini-bootstrapping Naming Service, which is // provided by the ORB for certain well-known object references. // TAO supports the "NameService", "TradingService", "RootPOA", and |