diff options
author | Ossama Othman <ossama-othman@users.noreply.github.com> | 2003-02-20 17:20:52 +0000 |
---|---|---|
committer | Ossama Othman <ossama-othman@users.noreply.github.com> | 2003-02-20 17:20:52 +0000 |
commit | b1e6ab001abff21c7eece6d72a09ea869222e1ac (patch) | |
tree | 05e044b047e36dd6705dd881c6e5372cc7307152 /TAO/tao/Environment.cpp | |
parent | 4e22cab1a97cdd1f58242de8fb931389c050e549 (diff) | |
download | ATCD-b1e6ab001abff21c7eece6d72a09ea869222e1ac.tar.gz |
AbstractBase.*
Diffstat (limited to 'TAO/tao/Environment.cpp')
-rw-r--r-- | TAO/tao/Environment.cpp | 54 |
1 files changed, 27 insertions, 27 deletions
diff --git a/TAO/tao/Environment.cpp b/TAO/tao/Environment.cpp index 069dcba6a33..86a43612b17 100644 --- a/TAO/tao/Environment.cpp +++ b/TAO/tao/Environment.cpp @@ -1,5 +1,3 @@ -// $Id$ - #include "tao/Environment.h" #include "tao/ORB_Core.h" #include "tao/Exception.h" @@ -9,17 +7,19 @@ #endif /* __ACE_INLINE__ */ -ACE_RCSID(tao, Environment, "$Id$") +ACE_RCSID (tao, + Environment, + "$Id$") -CORBA_Environment::CORBA_Environment (void) +CORBA::Environment::Environment (void) : exception_ (0) , previous_ (0) { // TAO_ORB_Core_instance ()->default_environment (this); } -CORBA_Environment::CORBA_Environment (const CORBA_Environment& rhs) +CORBA::Environment::Environment (const CORBA::Environment& rhs) : exception_ (0) , previous_ (0) { @@ -27,31 +27,31 @@ CORBA_Environment::CORBA_Environment (const CORBA_Environment& rhs) this->exception_ = rhs.exception_->_tao_duplicate (); } -CORBA_Environment::CORBA_Environment (TAO_ORB_Core* orb_core) +CORBA::Environment::Environment (TAO_ORB_Core* orb_core) : exception_ (0) , previous_ (orb_core->default_environment ()) { orb_core->default_environment (this); } -CORBA_Environment& -CORBA_Environment::operator= (const CORBA_Environment& rhs) +CORBA::Environment& +CORBA::Environment::operator= (const CORBA::Environment& rhs) { - CORBA_Environment tmp (rhs); + CORBA::Environment tmp (rhs); { - CORBA_Exception *tmp_ex = this->exception_; + CORBA::Exception *tmp_ex = this->exception_; this->exception_ = tmp.exception_; tmp.exception_ = tmp_ex; } { - CORBA_Environment *tmp_env = this->previous_; + CORBA::Environment *tmp_env = this->previous_; this->previous_ = rhs.previous_; tmp.previous_ = tmp_env; } return *this; } -CORBA_Environment::~CORBA_Environment (void) +CORBA::Environment::~Environment (void) { this->clear (); @@ -63,7 +63,7 @@ CORBA_Environment::~CORBA_Environment (void) } void -CORBA_Environment::exception (CORBA_Exception *ex) +CORBA::Environment::exception (CORBA::Exception *ex) { // @@ This does not look right, setting the exception to the // contained exception is a bug, the application is only @@ -93,19 +93,19 @@ CORBA_Environment::exception (CORBA_Exception *ex) } void -CORBA_Environment::clear (void) +CORBA::Environment::clear (void) { delete this->exception_; this->exception_ = 0; } -CORBA_Environment& -CORBA_Environment::default_environment () +CORBA::Environment& +CORBA::Environment::default_environment () { #if defined (TAO_HAS_EXCEPTIONS) // // If we are using native C++ exceptions the user is *not* supposed - // to clear the environment every time she calls into TAO, in fact + // to clear the environment every time she calls into TAO. In fact // the user is not supposed to use the environment at all! // // But TAO is using the default environment internally, thus @@ -162,7 +162,7 @@ CORBA::Environment::exception_type (void) const } const char* -CORBA_Environment::exception_id (void) const +CORBA::Environment::exception_id (void) const { if (this->exception_ == 0) return 0; @@ -186,7 +186,7 @@ CORBA::Environment::print_exception (const char *info, info)); CORBA::SystemException *x2 = - CORBA_SystemException::_downcast (this->exception_); + CORBA::SystemException::_downcast (this->exception_); if (x2 != 0) x2->_tao_print_system_exception (); @@ -203,23 +203,23 @@ CORBA::Environment::print_exception (const char *info, ACE_TEXT ("TAO: (%P|%t) no exception, %s\n"), info)); } -CORBA_Environment_var & -CORBA_Environment_var::operator= (CORBA_Environment_ptr p) +CORBA::Environment_var & +CORBA::Environment_var::operator= (CORBA::Environment_ptr p) { - CORBA_Environment_var tmp (p); + CORBA::Environment_var tmp (p); // @@ We need as ACE_Swap<> template!! - CORBA_Environment *tmp_ptr = this->ptr_; + CORBA::Environment *tmp_ptr = this->ptr_; this->ptr_ = tmp.ptr_; tmp.ptr_ = tmp_ptr; return *this; } -CORBA_Environment_var & -CORBA_Environment_var::operator= (const CORBA_Environment_var &r) +CORBA::Environment_var & +CORBA::Environment_var::operator= (const CORBA::Environment_var &r) { - CORBA_Environment_var tmp (r); + CORBA::Environment_var tmp (r); // @@ We need as ACE_Swap<> template!! - CORBA_Environment *tmp_ptr = this->ptr_; + CORBA::Environment *tmp_ptr = this->ptr_; this->ptr_ = tmp.ptr_; tmp.ptr_ = tmp_ptr; return *this; |