diff options
author | jai <jai@ae88bc3d-4319-0410-8dbf-d08b4c9d3795> | 2007-01-29 21:10:39 +0000 |
---|---|---|
committer | jai <jai@ae88bc3d-4319-0410-8dbf-d08b4c9d3795> | 2007-01-29 21:10:39 +0000 |
commit | e7b830ab561638ed25822054be80ce12e8801d38 (patch) | |
tree | a5b9aa16924c541fcb424ee9460b1ac7f5a89352 /modules/CIAO/ciao/Context_Impl_Base.cpp | |
parent | 9b720f395833b3ce2f499463e5fed37a0da926f4 (diff) | |
download | ATCD-DiffServ-Merge.tar.gz |
branching/taggingDiffServ-Merge
Diffstat (limited to 'modules/CIAO/ciao/Context_Impl_Base.cpp')
-rw-r--r-- | modules/CIAO/ciao/Context_Impl_Base.cpp | 98 |
1 files changed, 98 insertions, 0 deletions
diff --git a/modules/CIAO/ciao/Context_Impl_Base.cpp b/modules/CIAO/ciao/Context_Impl_Base.cpp new file mode 100644 index 00000000000..9c377124e60 --- /dev/null +++ b/modules/CIAO/ciao/Context_Impl_Base.cpp @@ -0,0 +1,98 @@ +// $Id$ + +#include "Context_Impl_Base.h" + +namespace CIAO +{ + Context_Impl_Base::Context_Impl_Base (void) + { + ACE_ASSERT (0); + } + + Context_Impl_Base::Context_Impl_Base (Components::CCMHome_ptr home, + Session_Container * c) + : home_ (Components::CCMHome::_duplicate (home)), + container_ (c) + { + } + + Context_Impl_Base::~Context_Impl_Base (void) + { + } + + // Operations from ::Components::CCMContext. + + Components::Principal_ptr + Context_Impl_Base::get_caller_principal ( + ) + ACE_THROW_SPEC ((CORBA::SystemException)) + { + ACE_THROW_RETURN (CORBA::NO_IMPLEMENT (), + Components::Principal::_nil ()); + } + + Components::CCMHome_ptr + Context_Impl_Base::get_CCM_home ( + ) + ACE_THROW_SPEC ((CORBA::SystemException)) + { + return Components::CCMHome::_duplicate (this->home_.in ()); + } + + CORBA::Boolean + Context_Impl_Base::get_rollback_only ( + ) + ACE_THROW_SPEC ((CORBA::SystemException, + Components::IllegalState)) + { + ACE_THROW_RETURN (CORBA::NO_IMPLEMENT (), false); + } + + Components::Transaction::UserTransaction_ptr + Context_Impl_Base::get_user_transaction ( + ) + ACE_THROW_SPEC ((CORBA::SystemException, + Components::IllegalState)) + { + ACE_THROW_RETURN (CORBA::NO_IMPLEMENT (), + Components::Transaction::UserTransaction::_nil ()); + } + + CORBA::Boolean + Context_Impl_Base::is_caller_in_role ( + const char * /* role */ + ) + ACE_THROW_SPEC ((CORBA::SystemException)) + { + ACE_THROW_RETURN (CORBA::NO_IMPLEMENT (), false); + } + + void + Context_Impl_Base::set_rollback_only ( + ) + ACE_THROW_SPEC ((CORBA::SystemException, + Components::IllegalState)) + { + throw CORBA::NO_IMPLEMENT (); + } + + // CIAO-specific. + + CIAO::Session_Container * + Context_Impl_Base::_ciao_the_Container (void) const + { + return this->container_; + } + + const char * + Context_Impl_Base::_ciao_instance_id (void) const + { + return this->ciao_instance_id_.in (); + } + + void + Context_Impl_Base::_ciao_instance_id (const char *instance_id) + { + this->ciao_instance_id_ = instance_id; + } +} |