diff options
author | Johnny Willemsen <jwillemsen@remedy.nl> | 2005-04-29 10:03:27 +0000 |
---|---|---|
committer | Johnny Willemsen <jwillemsen@remedy.nl> | 2005-04-29 10:03:27 +0000 |
commit | 62681b42f69e82fcc8e0f25566296c5836f68bcc (patch) | |
tree | 368080e575372dda10d383e70c84d6a8d3c1da6d | |
parent | a1bf7b38d216cfa04507dc70dfab41591bf5b849 (diff) | |
download | ATCD-62681b42f69e82fcc8e0f25566296c5836f68bcc.tar.gz |
ChangeLogTag: Fri Apr 29 09:50:12 UTC 2005 Johnny Willemsen <jwillemsen@remedy.nl>
-rw-r--r-- | TAO/TAO_IDL/be/be_visitor_enum/any_op_cs.cpp | 10 | ||||
-rw-r--r-- | TAO/tao/PortableServer/POAManagerA.cpp | 29 | ||||
-rw-r--r-- | TAO/tao/PortableServer/ServantManagerA.cpp | 44 |
3 files changed, 47 insertions, 36 deletions
diff --git a/TAO/TAO_IDL/be/be_visitor_enum/any_op_cs.cpp b/TAO/TAO_IDL/be/be_visitor_enum/any_op_cs.cpp index d8d075658d3..ba7d8c8f560 100644 --- a/TAO/TAO_IDL/be/be_visitor_enum/any_op_cs.cpp +++ b/TAO/TAO_IDL/be/be_visitor_enum/any_op_cs.cpp @@ -59,10 +59,11 @@ be_visitor_enum_any_op_cs::visit_enum (be_enum *node) // type is inserted into an Any and then marshaled. if (node->is_local ()) { - *os << be_nl << be_nl + *os << "namespace TAO" << be_nl + << "{" << be_idt_nl << "template<>" << be_nl << "CORBA::Boolean" << be_nl - << "TAO::Any_Basic_Impl_T<" << node->name () + << "Any_Basic_Impl_T<" << node->name () << ">::marshal_value (TAO_OutputCDR &)" << be_nl << "{" << be_idt_nl << "return false;" << be_uidt_nl @@ -71,11 +72,12 @@ be_visitor_enum_any_op_cs::visit_enum (be_enum *node) *os << be_nl << be_nl << "template<>" << be_nl << "CORBA::Boolean" << be_nl - << "TAO::Any_Basic_Impl_T<" << node->name () + << "Any_Basic_Impl_T<" << node->name () << ">::demarshal_value (TAO_InputCDR &)" << be_nl << "{" << be_idt_nl << "return false;" << be_uidt_nl - << "}"; + << "}" << be_uidt_nl + << "}" << be_nl << be_nl; } // Generate the Any <<= and >>= operator declarations diff --git a/TAO/tao/PortableServer/POAManagerA.cpp b/TAO/tao/PortableServer/POAManagerA.cpp index 0caaec9f761..3902fd8cc16 100644 --- a/TAO/tao/PortableServer/POAManagerA.cpp +++ b/TAO/tao/PortableServer/POAManagerA.cpp @@ -32,6 +32,7 @@ #include "tao/Enum_TypeCode.h" #include "tao/Objref_TypeCode.h" #include "tao/Struct_TypeCode.h" +#include "tao/TypeCode_Struct_Field.h" #include "tao/CDR.h" #include "tao/Any.h" #include "tao/Any_Impl_T.h" @@ -252,21 +253,23 @@ CORBA::Boolean operator>>= ( // TAO_IDL - Generated from // be\be_visitor_enum/any_op_cs.cpp:52 - - -template<> -CORBA::Boolean -TAO::Any_Basic_Impl_T<PortableServer::POAManager::State>::marshal_value (TAO_OutputCDR &) +namespace TAO { - return false; + template<> + CORBA::Boolean + Any_Basic_Impl_T<PortableServer::POAManager::State>::marshal_value (TAO_OutputCDR &) + { + return false; + } + + template<> + CORBA::Boolean + Any_Basic_Impl_T<PortableServer::POAManager::State>::demarshal_value (TAO_InputCDR &) + { + return false; + } } - -template<> -CORBA::Boolean -TAO::Any_Basic_Impl_T<PortableServer::POAManager::State>::demarshal_value (TAO_InputCDR &) -{ - return false; -}void operator<<= ( +void operator<<= ( CORBA::Any &_tao_any, PortableServer::POAManager::State _tao_elem ) diff --git a/TAO/tao/PortableServer/ServantManagerA.cpp b/TAO/tao/PortableServer/ServantManagerA.cpp index 8820506633b..37fb2764a56 100644 --- a/TAO/tao/PortableServer/ServantManagerA.cpp +++ b/TAO/tao/PortableServer/ServantManagerA.cpp @@ -45,7 +45,7 @@ static TAO::TypeCode::Objref<char const *, _tao_tc_PortableServer_ServantManager ( "IDL:omg.org/PortableServer/ServantManager:2.3", "ServantManager"); - + namespace PortableServer { ::CORBA::TypeCode_ptr const _tc_ServantManager = @@ -57,28 +57,34 @@ namespace PortableServer // TAO_IDL - Generated from // be\be_visitor_interface/any_op_cs.cpp:50 -template<> -CORBA::Boolean -TAO::Any_Impl_T<PortableServer::ServantManager>::to_object ( - CORBA::Object_ptr &_tao_elem - ) const +namespace TAO { - _tao_elem = CORBA::Object::_duplicate (this->value_); - return true; + template<> + CORBA::Boolean + Any_Impl_T<PortableServer::ServantManager>::to_object ( + CORBA::Object_ptr &_tao_elem + ) const + { + _tao_elem = CORBA::Object::_duplicate (this->value_); + return true; + } } -template<> -CORBA::Boolean -TAO::Any_Impl_T<PortableServer::ServantManager>::marshal_value (TAO_OutputCDR &) -{ - return false; -} - -template<> -CORBA::Boolean -TAO::Any_Impl_T<PortableServer::ServantManager>::demarshal_value (TAO_InputCDR &) +namespace TAO { - return false; + template<> + CORBA::Boolean + Any_Impl_T<PortableServer::ServantManager>::marshal_value (TAO_OutputCDR &) + { + return false; + } + + template<> + CORBA::Boolean + Any_Impl_T<PortableServer::ServantManager>::demarshal_value (TAO_InputCDR &) + { + return false; + } } // Copying insertion. |