diff options
author | parsons <parsons@ae88bc3d-4319-0410-8dbf-d08b4c9d3795> | 2004-07-20 20:15:50 +0000 |
---|---|---|
committer | parsons <parsons@ae88bc3d-4319-0410-8dbf-d08b4c9d3795> | 2004-07-20 20:15:50 +0000 |
commit | 2422834a4c02e0edee6b08b40e445db76f622a9d (patch) | |
tree | d0d53bf02bdba9ce57a7a3feeb581cd9e9b42301 /TAO/tao | |
parent | eb4e9e5150a02af2d89da705ca9802ac8497d841 (diff) | |
download | ATCD-2422834a4c02e0edee6b08b40e445db76f622a9d.tar.gz |
ChangeLogTag: Tue Jul 20 15:08:09 2004 Jeff Parsons <j.parsons@vanderbilt.edu>
Diffstat (limited to 'TAO/tao')
59 files changed, 4868 insertions, 578 deletions
diff --git a/TAO/tao/AnySeq.pidl b/TAO/tao/AnySeq.pidl new file mode 100644 index 00000000000..40fef8fb6de --- /dev/null +++ b/TAO/tao/AnySeq.pidl @@ -0,0 +1,31 @@ +// -*- IDL -*- +// +// $Id$ + +// ================================================================ +/** + * This file was used to generate the code in AnySeq*.* + * The command used to generate code is: + * + * tao_idl + * -o orig -Ge 1 -Sc -GT -GA + * -Wb,export_macro=TAO_Export + * -Wb,export_include=TAO_Export.h + * -Wb,pre_include="ace/pre.h" + * -Wb,post_include="ace/post.h" + * AnySeq.pidl + * + */ +// ================================================================ + +#ifndef TAO_CORBA_ANY_SEQ_IDL +#define TAO_CORBA_ANY_SEQ_IDL + +#pragma prefix "omg.org" + +module CORBA +{ + typedef sequence<any> AnySeq; +}; + +#endif /* TAO_CORBA_ANY_SEQ_IDL */ diff --git a/TAO/tao/AnySeqC.cpp b/TAO/tao/AnySeqC.cpp new file mode 100644 index 00000000000..61de4eca805 --- /dev/null +++ b/TAO/tao/AnySeqC.cpp @@ -0,0 +1,224 @@ +// -*- C++ -*- +// +// $Id$ + +// **** Code generated by the The ACE ORB (TAO) IDL Compiler **** +// TAO and the TAO IDL Compiler have been developed by: +// Center for Distributed Object Computing +// Washington University +// St. Louis, MO +// USA +// http://www.cs.wustl.edu/~schmidt/doc-center.html +// and +// Distributed Object Computing Laboratory +// University of California at Irvine +// Irvine, CA +// USA +// http://doc.ece.uci.edu/ +// and +// Institute for Software Integrated Systems +// Vanderbilt University +// Nashville, TN +// USA +// http://www.isis.vanderbilt.edu/ +// +// Information about TAO is available at: +// http://www.cs.wustl.edu/~schmidt/TAO.html + +// TAO_IDL - Generated from +// .\be\be_codegen.cpp:303 + + +#include "AnySeqC.h" +#include "tao/CDR.h" +#include "tao/Typecode.h" + +#if defined (__BORLANDC__) +#pragma option -w-rvl -w-rch -w-ccc -w-aus -w-sig +#endif /* __BORLANDC__ */ + +#if !defined (__ACE_INLINE__) +#include "AnySeqC.inl" +#endif /* !defined __ACE_INLINE__ */ + +// TAO_IDL - Generated from +// .\be\be_visitor_arg_traits.cpp:64 + +// Arg traits specializations. +namespace TAO +{ +} + + +// TAO_IDL - Generated from +// w:\ace_wrappers\tao\tao_idl\be\be_visitor_sequence/sequence_cs.cpp:65 + +#if !defined (_CORBA_ANYSEQ_CS_) +#define _CORBA_ANYSEQ_CS_ + +CORBA::AnySeq::AnySeq (void) +{} + +CORBA::AnySeq::AnySeq ( + CORBA::ULong max + ) + : TAO_Unbounded_Sequence< + CORBA::Any + > + (max) +{} + +CORBA::AnySeq::AnySeq ( + CORBA::ULong max, + CORBA::ULong length, + CORBA::Any * buffer, + CORBA::Boolean release + ) + : TAO_Unbounded_Sequence< + CORBA::Any + > + (max, length, buffer, release) +{} + +CORBA::AnySeq::AnySeq ( + const AnySeq &seq + ) + : TAO_Unbounded_Sequence< + CORBA::Any + > + (seq) +{} + +CORBA::AnySeq::~AnySeq (void) +{} + +void CORBA::AnySeq::_tao_any_destructor ( + void * _tao_void_pointer + ) +{ + AnySeq * _tao_tmp_pointer = + static_cast<AnySeq *> (_tao_void_pointer); + delete _tao_tmp_pointer; +} + +#endif /* end #if !defined */ + +// TAO_IDL - Generated from +// w:\ace_wrappers\tao\tao_idl\be\be_visitor_sequence/cdr_op_cs.cpp:96 + +#if !defined _TAO_CDR_OP_CORBA_AnySeq_CPP_ +#define _TAO_CDR_OP_CORBA_AnySeq_CPP_ + +CORBA::Boolean operator<< ( + TAO_OutputCDR &strm, + const CORBA::AnySeq &_tao_sequence + ) +{ + const CORBA::ULong _tao_seq_len = _tao_sequence.length (); + + if (strm << _tao_seq_len) + { + // Encode all elements. + CORBA::Boolean _tao_marshal_flag = 1; + + for (CORBA::ULong i = 0; i < _tao_seq_len && _tao_marshal_flag; ++i) + { + _tao_marshal_flag = (strm << _tao_sequence[i]); + } + + return _tao_marshal_flag; + } + + return 0; +} + +CORBA::Boolean operator>> ( + TAO_InputCDR &strm, + CORBA::AnySeq &_tao_sequence + ) +{ + CORBA::ULong _tao_seq_len; + + if (strm >> _tao_seq_len) + { + // Add a check to the length of the sequence + // to make sure it does not exceed the length + // of the stream. (See bug 58.) + if (_tao_seq_len > strm.length ()) + { + return 0; + } + + // Set the length of the sequence. + _tao_sequence.length (_tao_seq_len); + + // If length is 0 we return true. + if (0 >= _tao_seq_len) + { + return 1; + } + + // Retrieve all the elements. + CORBA::Boolean _tao_marshal_flag = 1; + + for (CORBA::ULong i = 0; i < _tao_seq_len && _tao_marshal_flag; ++i) + { + _tao_marshal_flag = (strm >> _tao_sequence[i]); + } + + return _tao_marshal_flag; + + } + + return 0; +} + +#endif /* _TAO_CDR_OP_CORBA_AnySeq_CPP_ */ + +// TAO_IDL - Generated from +// w:\ace_wrappers\tao\tao_idl\be\be_visitor_root/root.cpp:1628 + +#if defined (ACE_HAS_EXPLICIT_TEMPLATE_INSTANTIATION) + + template class + TAO_VarSeq_Var_T< + CORBA::AnySeq, + CORBA::Any + >; + + template class + TAO_Seq_Var_Base_T< + CORBA::AnySeq, + CORBA::Any + >; + + template class + TAO_Seq_Out_T< + CORBA::AnySeq, + CORBA::AnySeq_var, + CORBA::Any + >; + +#elif defined (ACE_HAS_TEMPLATE_INSTANTIATION_PRAGMA) + +# pragma instantiate \ + TAO_VarSeq_Var_T< \ + CORBA::AnySeq, \ + CORBA::Any \ + > + +# pragma instantiate \ + TAO_Seq_Var_Base_T< \ + CORBA::AnySeq, \ + CORBA::Any \ + > + +# pragma instantiate \ + TAO_Seq_Out_T< \ + CORBA::AnySeq, \ + CORBA::AnySeq_var, \ + CORBA::Any \ + > + +#endif /* !ACE_HAS_EXPLICIT_TEMPLATE_INSTANTIATION */ + diff --git a/TAO/tao/AnySeqC.h b/TAO/tao/AnySeqC.h new file mode 100644 index 00000000000..e8b78538149 --- /dev/null +++ b/TAO/tao/AnySeqC.h @@ -0,0 +1,188 @@ +// -*- C++ -*- +// +// $Id$ + +// **** Code generated by the The ACE ORB (TAO) IDL Compiler **** +// TAO and the TAO IDL Compiler have been developed by: +// Center for Distributed Object Computing +// Washington University +// St. Louis, MO +// USA +// http://www.cs.wustl.edu/~schmidt/doc-center.html +// and +// Distributed Object Computing Laboratory +// University of California at Irvine +// Irvine, CA +// USA +// http://doc.ece.uci.edu/ +// and +// Institute for Software Integrated Systems +// Vanderbilt University +// Nashville, TN +// USA +// http://www.isis.vanderbilt.edu/ +// +// Information about TAO is available at: +// http://www.cs.wustl.edu/~schmidt/TAO.html + +// TAO_IDL - Generated from +// .\be\be_codegen.cpp:153 + +#ifndef _TAO_IDL_ORIG_ANYSEQC_H_ +#define _TAO_IDL_ORIG_ANYSEQC_H_ + +#include /**/ "ace/pre.h" + + +#include "ace/config-all.h" + +#if !defined (ACE_LACKS_PRAGMA_ONCE) +# pragma once +#endif /* ACE_LACKS_PRAGMA_ONCE */ + +#include "tao/ORB.h" +#include "tao/Environment.h" +#include "tao/Any.h" +#include "tao/Sequence_T.h" +#include "tao/Seq_Var_T.h" +#include "tao/Seq_Out_T.h" + +#if defined (TAO_EXPORT_MACRO) +#undef TAO_EXPORT_MACRO +#endif +#define TAO_EXPORT_MACRO TAO_Export + +#if defined (TAO_EXPORT_NESTED_CLASSES) +# if defined (TAO_EXPORT_NESTED_MACRO) +# undef TAO_EXPORT_NESTED_MACRO +# endif /* defined (TAO_EXPORT_NESTED_MACRO) */ +# define TAO_EXPORT_NESTED_MACRO TAO_Export +#endif /* TAO_EXPORT_NESTED_CLASSES */ + +#if defined(_MSC_VER) +#if (_MSC_VER >= 1200) +#pragma warning(push) +#endif /* _MSC_VER >= 1200 */ +#pragma warning(disable:4250) +#endif /* _MSC_VER */ + +#if defined (__BORLANDC__) +#pragma option push -w-rvl -w-rch -w-ccc -w-inl +#endif /* __BORLANDC__ */ + +// TAO_IDL - Generated from +// w:\ace_wrappers\tao\tao_idl\be\be_visitor_module/module_ch.cpp:48 + +namespace CORBA +{ + + // TAO_IDL - Generated from + // w:\ace_wrappers\tao\tao_idl\be\be_visitor_sequence/sequence_ch.cpp:101 + +#if !defined (_CORBA_ANYSEQ_CH_) +#define _CORBA_ANYSEQ_CH_ + + class AnySeq; + + typedef + TAO_VarSeq_Var_T< + AnySeq, + CORBA::Any + > + AnySeq_var; + + typedef + TAO_Seq_Out_T< + AnySeq, + AnySeq_var, + CORBA::Any + > + AnySeq_out; + + class TAO_Export AnySeq + : public + TAO_Unbounded_Sequence< + CORBA::Any + > + { + public: + AnySeq (void); + AnySeq (CORBA::ULong max); + AnySeq ( + CORBA::ULong max, + CORBA::ULong length, + CORBA::Any* buffer, + CORBA::Boolean release = 0 + ); + AnySeq (const AnySeq &); + ~AnySeq (void); + + static void _tao_any_destructor (void *); + + typedef AnySeq_var _var_type; + }; + +#endif /* end #if !defined */ + + // TAO_IDL - Generated from + // w:\ace_wrappers\tao\tao_idl\be\be_visitor_typecode/typecode_decl.cpp:44 + + TAO_NAMESPACE_STORAGE_CLASS ::CORBA::TypeCode_ptr _tc_AnySeq; + +// TAO_IDL - Generated from +// w:\ace_wrappers\tao\tao_idl\be\be_visitor_module/module_ch.cpp:66 + +} // module CORBA + +// TAO_IDL - Generated from +// .\be\be_visitor_traits.cpp:59 + +// Traits specializations. +namespace TAO +{ +} + +// TAO_IDL - Generated from +// w:\ace_wrappers\tao\tao_idl\be\be_visitor_sequence/any_op_ch.cpp:52 + +TAO_Export void operator<<= (CORBA::Any &, const CORBA::AnySeq &); // copying version +TAO_Export void operator<<= (CORBA::Any &, CORBA::AnySeq*); // noncopying version +TAO_Export CORBA::Boolean operator>>= (const CORBA::Any &, CORBA::AnySeq *&); // deprecated +TAO_Export CORBA::Boolean operator>>= (const CORBA::Any &, const CORBA::AnySeq *&); + +// TAO_IDL - Generated from +// w:\ace_wrappers\tao\tao_idl\be\be_visitor_sequence/cdr_op_ch.cpp:71 + +#if !defined _TAO_CDR_OP_CORBA_AnySeq_H_ +#define _TAO_CDR_OP_CORBA_AnySeq_H_ + +TAO_Export CORBA::Boolean operator<< ( + TAO_OutputCDR &, + const CORBA::AnySeq & + ); +TAO_Export CORBA::Boolean operator>> ( + TAO_InputCDR &, + CORBA::AnySeq & + ); + +#endif /* _TAO_CDR_OP_CORBA_AnySeq_H_ */ + +// TAO_IDL - Generated from +// .\be\be_codegen.cpp:958 + +#if defined (__ACE_INLINE__) +#include "AnySeqC.inl" +#endif /* defined __ACE_INLINE__ */ + +#if defined(_MSC_VER) && (_MSC_VER >= 1200) +#pragma warning(pop) +#endif /* _MSC_VER */ + +#if defined (__BORLANDC__) +#pragma option pop +#endif /* __BORLANDC__ */ + +#include /**/ "ace/post.h" + +#endif /* ifndef */ + diff --git a/TAO/tao/OctetSeqC.i b/TAO/tao/AnySeqC.inl index 38aa32569ba..38aa32569ba 100644 --- a/TAO/tao/OctetSeqC.i +++ b/TAO/tao/AnySeqC.inl diff --git a/TAO/tao/OctetSeqS_T.h b/TAO/tao/AnySeqS.h index 52944262cad..c77fc413703 100644 --- a/TAO/tao/OctetSeqS_T.h +++ b/TAO/tao/AnySeqS.h @@ -26,13 +26,23 @@ // http://www.cs.wustl.edu/~schmidt/TAO.html // TAO_IDL - Generated from -// W:\ACE_wrappers\TAO\TAO_IDL\be\be_codegen.cpp:545 +// .\be\be_codegen.cpp:391 -#ifndef _TAO_IDL_ORIG_OCTETSEQS_T_H_ -#define _TAO_IDL_ORIG_OCTETSEQS_T_H_ +#ifndef _TAO_IDL_ORIG_ANYSEQS_H_ +#define _TAO_IDL_ORIG_ANYSEQS_H_ #include /**/ "ace/pre.h" +#include "AnySeqC.h" + +#if !defined (ACE_LACKS_PRAGMA_ONCE) +# pragma once +#endif /* ACE_LACKS_PRAGMA_ONCE */ + +#include "tao/Collocation_Proxy_Broker.h" +#include "tao/PortableServer/PortableServer.h" +#include "tao/PortableServer/Servant_Base.h" + #if defined(_MSC_VER) #if (_MSC_VER >= 1200) #pragma warning(push) @@ -40,34 +50,29 @@ #pragma warning(disable:4250) #endif /* _MSC_VER */ +#if defined (__BORLANDC__) +#pragma option push -w-rvl -w-rch -w-ccc -w-inl +#endif /* __BORLANDC__ */ -// TAO_IDL - Generated from -// W:\ACE_wrappers\TAO\TAO_IDL\be\be_visitor_root/root_sth.cpp:116 +// TAO_IDL - Generated from +// w:\ace_wrappers\tao\tao_idl\be\be_visitor_module/module_sh.cpp:49 -#if defined (ACE_HAS_USING_KEYWORD) namespace POA_CORBA { -} // module CORBA -#endif /* ACE_HAS_USING_KEYWORD */ + -// TAO_IDL - Generated from -// W:\ACE_wrappers\TAO\TAO_IDL\be\be_codegen.cpp:1043 - -#if defined (__ACE_INLINE__) -#include "OctetSeqS_T.i" -#endif /* defined INLINE */ - -#if defined (ACE_TEMPLATES_REQUIRE_SOURCE) -#include "OctetSeqS_T.cpp" -#endif /* defined REQUIRED SOURCE */ +// TAO_IDL - Generated from +// w:\ace_wrappers\tao\tao_idl\be\be_visitor_module/module_sh.cpp:80 -#if defined (ACE_TEMPLATES_REQUIRE_PRAGMA) -#pragma implementation ("OctetSeqS_T.cpp") -#endif /* defined REQUIRED PRAGMA */ +} // module CORBA #if defined(_MSC_VER) && (_MSC_VER >= 1200) #pragma warning(pop) #endif /* _MSC_VER */ +#if defined (__BORLANDC__) +#pragma option pop +#endif /* __BORLANDC__ */ + #include /**/ "ace/post.h" #endif /* ifndef */ diff --git a/TAO/tao/CharSeq.pidl b/TAO/tao/CharSeq.pidl new file mode 100644 index 00000000000..dabacd3f29a --- /dev/null +++ b/TAO/tao/CharSeq.pidl @@ -0,0 +1,31 @@ +// -*- IDL -*- +// +// $Id$ + +// ================================================================ +/** + * This file was used to generate the code in CharSeq*.* + * The command used to generate code is: + * + * tao_idl + * -o orig -Ge 1 -Sc -GT -GA + * -Wb,export_macro=TAO_Export + * -Wb,export_include=TAO_Export.h + * -Wb,pre_include="ace/pre.h" + * -Wb,post_include="ace/post.h" + * CharSeq.pidl + * + */ +// ================================================================ + +#ifndef TAO_CORBA_CHAR_SEQ_IDL +#define TAO_CORBA_CHAR_SEQ_IDL + +#pragma prefix "omg.org" + +module CORBA +{ + typedef sequence<char> CharSeq; +}; + +#endif /* TAO_CORBA_CHAR_SEQ_IDL */ diff --git a/TAO/tao/CharSeqC.cpp b/TAO/tao/CharSeqC.cpp new file mode 100644 index 00000000000..fb913a56024 --- /dev/null +++ b/TAO/tao/CharSeqC.cpp @@ -0,0 +1,210 @@ +// -*- C++ -*- +// +// $Id$ + +// **** Code generated by the The ACE ORB (TAO) IDL Compiler **** +// TAO and the TAO IDL Compiler have been developed by: +// Center for Distributed Object Computing +// Washington University +// St. Louis, MO +// USA +// http://www.cs.wustl.edu/~schmidt/doc-center.html +// and +// Distributed Object Computing Laboratory +// University of California at Irvine +// Irvine, CA +// USA +// http://doc.ece.uci.edu/ +// and +// Institute for Software Integrated Systems +// Vanderbilt University +// Nashville, TN +// USA +// http://www.isis.vanderbilt.edu/ +// +// Information about TAO is available at: +// http://www.cs.wustl.edu/~schmidt/TAO.html + +// TAO_IDL - Generated from +// .\be\be_codegen.cpp:303 + + +#include "CharSeqC.h" +#include "tao/CDR.h" +#include "tao/Typecode.h" + +#if defined (__BORLANDC__) +#pragma option -w-rvl -w-rch -w-ccc -w-aus -w-sig +#endif /* __BORLANDC__ */ + +#if !defined (__ACE_INLINE__) +#include "CharSeqC.inl" +#endif /* !defined __ACE_INLINE__ */ + +// TAO_IDL - Generated from +// .\be\be_visitor_arg_traits.cpp:64 + +// Arg traits specializations. +namespace TAO +{ +} + + +// TAO_IDL - Generated from +// w:\ace_wrappers\tao\tao_idl\be\be_visitor_sequence/sequence_cs.cpp:65 + +#if !defined (_CORBA_CHARSEQ_CS_) +#define _CORBA_CHARSEQ_CS_ + +CORBA::CharSeq::CharSeq (void) +{} + +CORBA::CharSeq::CharSeq ( + CORBA::ULong max + ) + : TAO_Unbounded_Sequence< + CORBA::Char + > + (max) +{} + +CORBA::CharSeq::CharSeq ( + CORBA::ULong max, + CORBA::ULong length, + CORBA::Char * buffer, + CORBA::Boolean release + ) + : TAO_Unbounded_Sequence< + CORBA::Char + > + (max, length, buffer, release) +{} + +CORBA::CharSeq::CharSeq ( + const CharSeq &seq + ) + : TAO_Unbounded_Sequence< + CORBA::Char + > + (seq) +{} + +CORBA::CharSeq::~CharSeq (void) +{} + +void CORBA::CharSeq::_tao_any_destructor ( + void * _tao_void_pointer + ) +{ + CharSeq * _tao_tmp_pointer = + static_cast<CharSeq *> (_tao_void_pointer); + delete _tao_tmp_pointer; +} + +#endif /* end #if !defined */ + +// TAO_IDL - Generated from +// w:\ace_wrappers\tao\tao_idl\be\be_visitor_sequence/cdr_op_cs.cpp:96 + +#if !defined _TAO_CDR_OP_CORBA_CharSeq_CPP_ +#define _TAO_CDR_OP_CORBA_CharSeq_CPP_ + +CORBA::Boolean operator<< ( + TAO_OutputCDR &strm, + const CORBA::CharSeq &_tao_sequence + ) +{ + const CORBA::ULong _tao_seq_len = _tao_sequence.length (); + + if (strm << _tao_seq_len) + { + // Encode all elements. + return strm.write_char_array ((const char *)_tao_sequence.get_buffer (), _tao_sequence.length ()); + } + + return 0; +} + +CORBA::Boolean operator>> ( + TAO_InputCDR &strm, + CORBA::CharSeq &_tao_sequence + ) +{ + CORBA::ULong _tao_seq_len; + + if (strm >> _tao_seq_len) + { + // Add a check to the length of the sequence + // to make sure it does not exceed the length + // of the stream. (See bug 58.) + if (_tao_seq_len > strm.length ()) + { + return 0; + } + + // Set the length of the sequence. + _tao_sequence.length (_tao_seq_len); + + // If length is 0 we return true. + if (0 >= _tao_seq_len) + { + return 1; + } + + // Retrieve all the elements. + return strm.read_char_array ((char *)_tao_sequence.get_buffer (), _tao_sequence.length ()); + + } + + return 0; +} + +#endif /* _TAO_CDR_OP_CORBA_CharSeq_CPP_ */ + +// TAO_IDL - Generated from +// w:\ace_wrappers\tao\tao_idl\be\be_visitor_root/root.cpp:1628 + +#if defined (ACE_HAS_EXPLICIT_TEMPLATE_INSTANTIATION) + + template class + TAO_FixedSeq_Var_T< + CORBA::CharSeq, + CORBA::Char + >; + + template class + TAO_Seq_Var_Base_T< + CORBA::CharSeq, + CORBA::Char + >; + + template class + TAO_Seq_Out_T< + CORBA::CharSeq, + CORBA::CharSeq_var, + CORBA::Char + >; + +#elif defined (ACE_HAS_TEMPLATE_INSTANTIATION_PRAGMA) + +# pragma instantiate \ + TAO_FixedSeq_Var_T< \ + CORBA::CharSeq, \ + CORBA::Char \ + > + +# pragma instantiate \ + TAO_Seq_Var_Base_T< \ + CORBA::CharSeq, \ + CORBA::Char \ + > + +# pragma instantiate \ + TAO_Seq_Out_T< \ + CORBA::CharSeq, \ + CORBA::CharSeq_var, \ + CORBA::Char \ + > + +#endif /* !ACE_HAS_EXPLICIT_TEMPLATE_INSTANTIATION */ + diff --git a/TAO/tao/CharSeqC.h b/TAO/tao/CharSeqC.h new file mode 100644 index 00000000000..d37a0d789ef --- /dev/null +++ b/TAO/tao/CharSeqC.h @@ -0,0 +1,187 @@ +// -*- C++ -*- +// +// $Id$ + +// **** Code generated by the The ACE ORB (TAO) IDL Compiler **** +// TAO and the TAO IDL Compiler have been developed by: +// Center for Distributed Object Computing +// Washington University +// St. Louis, MO +// USA +// http://www.cs.wustl.edu/~schmidt/doc-center.html +// and +// Distributed Object Computing Laboratory +// University of California at Irvine +// Irvine, CA +// USA +// http://doc.ece.uci.edu/ +// and +// Institute for Software Integrated Systems +// Vanderbilt University +// Nashville, TN +// USA +// http://www.isis.vanderbilt.edu/ +// +// Information about TAO is available at: +// http://www.cs.wustl.edu/~schmidt/TAO.html + +// TAO_IDL - Generated from +// .\be\be_codegen.cpp:153 + +#ifndef _TAO_IDL_ORIG_CHARSEQC_H_ +#define _TAO_IDL_ORIG_CHARSEQC_H_ + +#include /**/ "ace/pre.h" + + +#include "ace/config-all.h" + +#if !defined (ACE_LACKS_PRAGMA_ONCE) +# pragma once +#endif /* ACE_LACKS_PRAGMA_ONCE */ + +#include "tao/ORB.h" +#include "tao/Environment.h" +#include "tao/Sequence_T.h" +#include "tao/Seq_Var_T.h" +#include "tao/Seq_Out_T.h" + +#if defined (TAO_EXPORT_MACRO) +#undef TAO_EXPORT_MACRO +#endif +#define TAO_EXPORT_MACRO TAO_Export + +#if defined (TAO_EXPORT_NESTED_CLASSES) +# if defined (TAO_EXPORT_NESTED_MACRO) +# undef TAO_EXPORT_NESTED_MACRO +# endif /* defined (TAO_EXPORT_NESTED_MACRO) */ +# define TAO_EXPORT_NESTED_MACRO TAO_Export +#endif /* TAO_EXPORT_NESTED_CLASSES */ + +#if defined(_MSC_VER) +#if (_MSC_VER >= 1200) +#pragma warning(push) +#endif /* _MSC_VER >= 1200 */ +#pragma warning(disable:4250) +#endif /* _MSC_VER */ + +#if defined (__BORLANDC__) +#pragma option push -w-rvl -w-rch -w-ccc -w-inl +#endif /* __BORLANDC__ */ + +// TAO_IDL - Generated from +// w:\ace_wrappers\tao\tao_idl\be\be_visitor_module/module_ch.cpp:48 + +namespace CORBA +{ + + // TAO_IDL - Generated from + // w:\ace_wrappers\tao\tao_idl\be\be_visitor_sequence/sequence_ch.cpp:101 + +#if !defined (_CORBA_CHARSEQ_CH_) +#define _CORBA_CHARSEQ_CH_ + + class CharSeq; + + typedef + TAO_FixedSeq_Var_T< + CharSeq, + CORBA::Char + > + CharSeq_var; + + typedef + TAO_Seq_Out_T< + CharSeq, + CharSeq_var, + CORBA::Char + > + CharSeq_out; + + class TAO_Export CharSeq + : public + TAO_Unbounded_Sequence< + CORBA::Char + > + { + public: + CharSeq (void); + CharSeq (CORBA::ULong max); + CharSeq ( + CORBA::ULong max, + CORBA::ULong length, + CORBA::Char* buffer, + CORBA::Boolean release = 0 + ); + CharSeq (const CharSeq &); + ~CharSeq (void); + + static void _tao_any_destructor (void *); + + typedef CharSeq_var _var_type; + }; + +#endif /* end #if !defined */ + + // TAO_IDL - Generated from + // w:\ace_wrappers\tao\tao_idl\be\be_visitor_typecode/typecode_decl.cpp:44 + + TAO_NAMESPACE_STORAGE_CLASS ::CORBA::TypeCode_ptr _tc_CharSeq; + +// TAO_IDL - Generated from +// w:\ace_wrappers\tao\tao_idl\be\be_visitor_module/module_ch.cpp:66 + +} // module CORBA + +// TAO_IDL - Generated from +// .\be\be_visitor_traits.cpp:59 + +// Traits specializations. +namespace TAO +{ +} + +// TAO_IDL - Generated from +// w:\ace_wrappers\tao\tao_idl\be\be_visitor_sequence/any_op_ch.cpp:52 + +TAO_Export void operator<<= (CORBA::Any &, const CORBA::CharSeq &); // copying version +TAO_Export void operator<<= (CORBA::Any &, CORBA::CharSeq*); // noncopying version +TAO_Export CORBA::Boolean operator>>= (const CORBA::Any &, CORBA::CharSeq *&); // deprecated +TAO_Export CORBA::Boolean operator>>= (const CORBA::Any &, const CORBA::CharSeq *&); + +// TAO_IDL - Generated from +// w:\ace_wrappers\tao\tao_idl\be\be_visitor_sequence/cdr_op_ch.cpp:71 + +#if !defined _TAO_CDR_OP_CORBA_CharSeq_H_ +#define _TAO_CDR_OP_CORBA_CharSeq_H_ + +TAO_Export CORBA::Boolean operator<< ( + TAO_OutputCDR &, + const CORBA::CharSeq & + ); +TAO_Export CORBA::Boolean operator>> ( + TAO_InputCDR &, + CORBA::CharSeq & + ); + +#endif /* _TAO_CDR_OP_CORBA_CharSeq_H_ */ + +// TAO_IDL - Generated from +// .\be\be_codegen.cpp:958 + +#if defined (__ACE_INLINE__) +#include "CharSeqC.inl" +#endif /* defined __ACE_INLINE__ */ + +#if defined(_MSC_VER) && (_MSC_VER >= 1200) +#pragma warning(pop) +#endif /* _MSC_VER */ + +#if defined (__BORLANDC__) +#pragma option pop +#endif /* __BORLANDC__ */ + +#include /**/ "ace/post.h" + +#endif /* ifndef */ + diff --git a/TAO/tao/OctetSeqS_T.i b/TAO/tao/CharSeqC.inl index 38aa32569ba..38aa32569ba 100644 --- a/TAO/tao/OctetSeqS_T.i +++ b/TAO/tao/CharSeqC.inl diff --git a/TAO/tao/CharSeqS.h b/TAO/tao/CharSeqS.h new file mode 100644 index 00000000000..e0257f31304 --- /dev/null +++ b/TAO/tao/CharSeqS.h @@ -0,0 +1,78 @@ +// -*- C++ -*- +// +// $Id$ + +// **** Code generated by the The ACE ORB (TAO) IDL Compiler **** +// TAO and the TAO IDL Compiler have been developed by: +// Center for Distributed Object Computing +// Washington University +// St. Louis, MO +// USA +// http://www.cs.wustl.edu/~schmidt/doc-center.html +// and +// Distributed Object Computing Laboratory +// University of California at Irvine +// Irvine, CA +// USA +// http://doc.ece.uci.edu/ +// and +// Institute for Software Integrated Systems +// Vanderbilt University +// Nashville, TN +// USA +// http://www.isis.vanderbilt.edu/ +// +// Information about TAO is available at: +// http://www.cs.wustl.edu/~schmidt/TAO.html + +// TAO_IDL - Generated from +// .\be\be_codegen.cpp:391 + +#ifndef _TAO_IDL_ORIG_CHARSEQS_H_ +#define _TAO_IDL_ORIG_CHARSEQS_H_ + +#include /**/ "ace/pre.h" + +#include "CharSeqC.h" + +#if !defined (ACE_LACKS_PRAGMA_ONCE) +# pragma once +#endif /* ACE_LACKS_PRAGMA_ONCE */ + +#include "tao/Collocation_Proxy_Broker.h" +#include "tao/PortableServer/PortableServer.h" +#include "tao/PortableServer/Servant_Base.h" + +#if defined(_MSC_VER) +#if (_MSC_VER >= 1200) +#pragma warning(push) +#endif /* _MSC_VER >= 1200 */ +#pragma warning(disable:4250) +#endif /* _MSC_VER */ + +#if defined (__BORLANDC__) +#pragma option push -w-rvl -w-rch -w-ccc -w-inl +#endif /* __BORLANDC__ */ + +// TAO_IDL - Generated from +// w:\ace_wrappers\tao\tao_idl\be\be_visitor_module/module_sh.cpp:49 + +namespace POA_CORBA +{ + + +// TAO_IDL - Generated from +// w:\ace_wrappers\tao\tao_idl\be\be_visitor_module/module_sh.cpp:80 + +} // module CORBA + +#if defined(_MSC_VER) && (_MSC_VER >= 1200) +#pragma warning(pop) +#endif /* _MSC_VER */ + +#if defined (__BORLANDC__) +#pragma option pop +#endif /* __BORLANDC__ */ + +#include /**/ "ace/post.h" +#endif /* ifndef */ diff --git a/TAO/tao/DoubleSeq.pidl b/TAO/tao/DoubleSeq.pidl new file mode 100644 index 00000000000..e1589d3d5bb --- /dev/null +++ b/TAO/tao/DoubleSeq.pidl @@ -0,0 +1,31 @@ +// -*- IDL -*- +// +// $Id$ + +// ================================================================ +/** + * This file was used to generate the code in DoubleSeq*.* + * The command used to generate code is: + * + * tao_idl + * -o orig -Ge 1 -Sc -GT -GA + * -Wb,export_macro=TAO_Export + * -Wb,export_include=TAO_Export.h + * -Wb,pre_include="ace/pre.h" + * -Wb,post_include="ace/post.h" + * DoubleSeq.pidl + * + */ +// ================================================================ + +#ifndef TAO_CORBA_DOUBLE_SEQ_IDL +#define TAO_CORBA_DOUBLE_SEQ_IDL + +#pragma prefix "omg.org" + +module CORBA +{ + typedef sequence<double> DoubleSeq; +}; + +#endif /* TAO_CORBA_DOUBLE_SEQ_IDL */ diff --git a/TAO/tao/DoubleSeqC.cpp b/TAO/tao/DoubleSeqC.cpp new file mode 100644 index 00000000000..a96c7b628a1 --- /dev/null +++ b/TAO/tao/DoubleSeqC.cpp @@ -0,0 +1,210 @@ +// -*- C++ -*- +// +// $Id$ + +// **** Code generated by the The ACE ORB (TAO) IDL Compiler **** +// TAO and the TAO IDL Compiler have been developed by: +// Center for Distributed Object Computing +// Washington University +// St. Louis, MO +// USA +// http://www.cs.wustl.edu/~schmidt/doc-center.html +// and +// Distributed Object Computing Laboratory +// University of California at Irvine +// Irvine, CA +// USA +// http://doc.ece.uci.edu/ +// and +// Institute for Software Integrated Systems +// Vanderbilt University +// Nashville, TN +// USA +// http://www.isis.vanderbilt.edu/ +// +// Information about TAO is available at: +// http://www.cs.wustl.edu/~schmidt/TAO.html + +// TAO_IDL - Generated from +// .\be\be_codegen.cpp:303 + + +#include "DoubleSeqC.h" +#include "tao/CDR.h" +#include "tao/Typecode.h" + +#if defined (__BORLANDC__) +#pragma option -w-rvl -w-rch -w-ccc -w-aus -w-sig +#endif /* __BORLANDC__ */ + +#if !defined (__ACE_INLINE__) +#include "DoubleSeqC.inl" +#endif /* !defined __ACE_INLINE__ */ + +// TAO_IDL - Generated from +// .\be\be_visitor_arg_traits.cpp:64 + +// Arg traits specializations. +namespace TAO +{ +} + + +// TAO_IDL - Generated from +// w:\ace_wrappers\tao\tao_idl\be\be_visitor_sequence/sequence_cs.cpp:65 + +#if !defined (_CORBA_DOUBLESEQ_CS_) +#define _CORBA_DOUBLESEQ_CS_ + +CORBA::DoubleSeq::DoubleSeq (void) +{} + +CORBA::DoubleSeq::DoubleSeq ( + CORBA::ULong max + ) + : TAO_Unbounded_Sequence< + CORBA::Double + > + (max) +{} + +CORBA::DoubleSeq::DoubleSeq ( + CORBA::ULong max, + CORBA::ULong length, + CORBA::Double * buffer, + CORBA::Boolean release + ) + : TAO_Unbounded_Sequence< + CORBA::Double + > + (max, length, buffer, release) +{} + +CORBA::DoubleSeq::DoubleSeq ( + const DoubleSeq &seq + ) + : TAO_Unbounded_Sequence< + CORBA::Double + > + (seq) +{} + +CORBA::DoubleSeq::~DoubleSeq (void) +{} + +void CORBA::DoubleSeq::_tao_any_destructor ( + void * _tao_void_pointer + ) +{ + DoubleSeq * _tao_tmp_pointer = + static_cast<DoubleSeq *> (_tao_void_pointer); + delete _tao_tmp_pointer; +} + +#endif /* end #if !defined */ + +// TAO_IDL - Generated from +// w:\ace_wrappers\tao\tao_idl\be\be_visitor_sequence/cdr_op_cs.cpp:96 + +#if !defined _TAO_CDR_OP_CORBA_DoubleSeq_CPP_ +#define _TAO_CDR_OP_CORBA_DoubleSeq_CPP_ + +CORBA::Boolean operator<< ( + TAO_OutputCDR &strm, + const CORBA::DoubleSeq &_tao_sequence + ) +{ + const CORBA::ULong _tao_seq_len = _tao_sequence.length (); + + if (strm << _tao_seq_len) + { + // Encode all elements. + return strm.write_double_array (_tao_sequence.get_buffer (), _tao_sequence.length ()); + } + + return 0; +} + +CORBA::Boolean operator>> ( + TAO_InputCDR &strm, + CORBA::DoubleSeq &_tao_sequence + ) +{ + CORBA::ULong _tao_seq_len; + + if (strm >> _tao_seq_len) + { + // Add a check to the length of the sequence + // to make sure it does not exceed the length + // of the stream. (See bug 58.) + if (_tao_seq_len > strm.length ()) + { + return 0; + } + + // Set the length of the sequence. + _tao_sequence.length (_tao_seq_len); + + // If length is 0 we return true. + if (0 >= _tao_seq_len) + { + return 1; + } + + // Retrieve all the elements. + return strm.read_double_array (_tao_sequence.get_buffer (), _tao_sequence.length ()); + + } + + return 0; +} + +#endif /* _TAO_CDR_OP_CORBA_DoubleSeq_CPP_ */ + +// TAO_IDL - Generated from +// w:\ace_wrappers\tao\tao_idl\be\be_visitor_root/root.cpp:1628 + +#if defined (ACE_HAS_EXPLICIT_TEMPLATE_INSTANTIATION) + + template class + TAO_FixedSeq_Var_T< + CORBA::DoubleSeq, + CORBA::Double + >; + + template class + TAO_Seq_Var_Base_T< + CORBA::DoubleSeq, + CORBA::Double + >; + + template class + TAO_Seq_Out_T< + CORBA::DoubleSeq, + CORBA::DoubleSeq_var, + CORBA::Double + >; + +#elif defined (ACE_HAS_TEMPLATE_INSTANTIATION_PRAGMA) + +# pragma instantiate \ + TAO_FixedSeq_Var_T< \ + CORBA::DoubleSeq, \ + CORBA::Double \ + > + +# pragma instantiate \ + TAO_Seq_Var_Base_T< \ + CORBA::DoubleSeq, \ + CORBA::Double \ + > + +# pragma instantiate \ + TAO_Seq_Out_T< \ + CORBA::DoubleSeq, \ + CORBA::DoubleSeq_var, \ + CORBA::Double \ + > + +#endif /* !ACE_HAS_EXPLICIT_TEMPLATE_INSTANTIATION */ + diff --git a/TAO/tao/DoubleSeqC.h b/TAO/tao/DoubleSeqC.h new file mode 100644 index 00000000000..81d525dd756 --- /dev/null +++ b/TAO/tao/DoubleSeqC.h @@ -0,0 +1,187 @@ +// -*- C++ -*- +// +// $Id$ + +// **** Code generated by the The ACE ORB (TAO) IDL Compiler **** +// TAO and the TAO IDL Compiler have been developed by: +// Center for Distributed Object Computing +// Washington University +// St. Louis, MO +// USA +// http://www.cs.wustl.edu/~schmidt/doc-center.html +// and +// Distributed Object Computing Laboratory +// University of California at Irvine +// Irvine, CA +// USA +// http://doc.ece.uci.edu/ +// and +// Institute for Software Integrated Systems +// Vanderbilt University +// Nashville, TN +// USA +// http://www.isis.vanderbilt.edu/ +// +// Information about TAO is available at: +// http://www.cs.wustl.edu/~schmidt/TAO.html + +// TAO_IDL - Generated from +// .\be\be_codegen.cpp:153 + +#ifndef _TAO_IDL_ORIG_DOUBLESEQC_H_ +#define _TAO_IDL_ORIG_DOUBLESEQC_H_ + +#include /**/ "ace/pre.h" + + +#include "ace/config-all.h" + +#if !defined (ACE_LACKS_PRAGMA_ONCE) +# pragma once +#endif /* ACE_LACKS_PRAGMA_ONCE */ + +#include "tao/ORB.h" +#include "tao/Environment.h" +#include "tao/Sequence_T.h" +#include "tao/Seq_Var_T.h" +#include "tao/Seq_Out_T.h" + +#if defined (TAO_EXPORT_MACRO) +#undef TAO_EXPORT_MACRO +#endif +#define TAO_EXPORT_MACRO TAO_Export + +#if defined (TAO_EXPORT_NESTED_CLASSES) +# if defined (TAO_EXPORT_NESTED_MACRO) +# undef TAO_EXPORT_NESTED_MACRO +# endif /* defined (TAO_EXPORT_NESTED_MACRO) */ +# define TAO_EXPORT_NESTED_MACRO TAO_Export +#endif /* TAO_EXPORT_NESTED_CLASSES */ + +#if defined(_MSC_VER) +#if (_MSC_VER >= 1200) +#pragma warning(push) +#endif /* _MSC_VER >= 1200 */ +#pragma warning(disable:4250) +#endif /* _MSC_VER */ + +#if defined (__BORLANDC__) +#pragma option push -w-rvl -w-rch -w-ccc -w-inl +#endif /* __BORLANDC__ */ + +// TAO_IDL - Generated from +// w:\ace_wrappers\tao\tao_idl\be\be_visitor_module/module_ch.cpp:48 + +namespace CORBA +{ + + // TAO_IDL - Generated from + // w:\ace_wrappers\tao\tao_idl\be\be_visitor_sequence/sequence_ch.cpp:101 + +#if !defined (_CORBA_DOUBLESEQ_CH_) +#define _CORBA_DOUBLESEQ_CH_ + + class DoubleSeq; + + typedef + TAO_FixedSeq_Var_T< + DoubleSeq, + CORBA::Double + > + DoubleSeq_var; + + typedef + TAO_Seq_Out_T< + DoubleSeq, + DoubleSeq_var, + CORBA::Double + > + DoubleSeq_out; + + class TAO_Export DoubleSeq + : public + TAO_Unbounded_Sequence< + CORBA::Double + > + { + public: + DoubleSeq (void); + DoubleSeq (CORBA::ULong max); + DoubleSeq ( + CORBA::ULong max, + CORBA::ULong length, + CORBA::Double* buffer, + CORBA::Boolean release = 0 + ); + DoubleSeq (const DoubleSeq &); + ~DoubleSeq (void); + + static void _tao_any_destructor (void *); + + typedef DoubleSeq_var _var_type; + }; + +#endif /* end #if !defined */ + + // TAO_IDL - Generated from + // w:\ace_wrappers\tao\tao_idl\be\be_visitor_typecode/typecode_decl.cpp:44 + + TAO_NAMESPACE_STORAGE_CLASS ::CORBA::TypeCode_ptr _tc_DoubleSeq; + +// TAO_IDL - Generated from +// w:\ace_wrappers\tao\tao_idl\be\be_visitor_module/module_ch.cpp:66 + +} // module CORBA + +// TAO_IDL - Generated from +// .\be\be_visitor_traits.cpp:59 + +// Traits specializations. +namespace TAO +{ +} + +// TAO_IDL - Generated from +// w:\ace_wrappers\tao\tao_idl\be\be_visitor_sequence/any_op_ch.cpp:52 + +TAO_Export void operator<<= (CORBA::Any &, const CORBA::DoubleSeq &); // copying version +TAO_Export void operator<<= (CORBA::Any &, CORBA::DoubleSeq*); // noncopying version +TAO_Export CORBA::Boolean operator>>= (const CORBA::Any &, CORBA::DoubleSeq *&); // deprecated +TAO_Export CORBA::Boolean operator>>= (const CORBA::Any &, const CORBA::DoubleSeq *&); + +// TAO_IDL - Generated from +// w:\ace_wrappers\tao\tao_idl\be\be_visitor_sequence/cdr_op_ch.cpp:71 + +#if !defined _TAO_CDR_OP_CORBA_DoubleSeq_H_ +#define _TAO_CDR_OP_CORBA_DoubleSeq_H_ + +TAO_Export CORBA::Boolean operator<< ( + TAO_OutputCDR &, + const CORBA::DoubleSeq & + ); +TAO_Export CORBA::Boolean operator>> ( + TAO_InputCDR &, + CORBA::DoubleSeq & + ); + +#endif /* _TAO_CDR_OP_CORBA_DoubleSeq_H_ */ + +// TAO_IDL - Generated from +// .\be\be_codegen.cpp:958 + +#if defined (__ACE_INLINE__) +#include "DoubleSeqC.inl" +#endif /* defined __ACE_INLINE__ */ + +#if defined(_MSC_VER) && (_MSC_VER >= 1200) +#pragma warning(pop) +#endif /* _MSC_VER */ + +#if defined (__BORLANDC__) +#pragma option pop +#endif /* __BORLANDC__ */ + +#include /**/ "ace/post.h" + +#endif /* ifndef */ + diff --git a/TAO/tao/StringSeqC.i b/TAO/tao/DoubleSeqC.inl index 38aa32569ba..38aa32569ba 100644 --- a/TAO/tao/StringSeqC.i +++ b/TAO/tao/DoubleSeqC.inl diff --git a/TAO/tao/DoubleSeqS.h b/TAO/tao/DoubleSeqS.h new file mode 100644 index 00000000000..13a025b9fee --- /dev/null +++ b/TAO/tao/DoubleSeqS.h @@ -0,0 +1,78 @@ +// -*- C++ -*- +// +// $Id$ + +// **** Code generated by the The ACE ORB (TAO) IDL Compiler **** +// TAO and the TAO IDL Compiler have been developed by: +// Center for Distributed Object Computing +// Washington University +// St. Louis, MO +// USA +// http://www.cs.wustl.edu/~schmidt/doc-center.html +// and +// Distributed Object Computing Laboratory +// University of California at Irvine +// Irvine, CA +// USA +// http://doc.ece.uci.edu/ +// and +// Institute for Software Integrated Systems +// Vanderbilt University +// Nashville, TN +// USA +// http://www.isis.vanderbilt.edu/ +// +// Information about TAO is available at: +// http://www.cs.wustl.edu/~schmidt/TAO.html + +// TAO_IDL - Generated from +// .\be\be_codegen.cpp:391 + +#ifndef _TAO_IDL_ORIG_DOUBLESEQS_H_ +#define _TAO_IDL_ORIG_DOUBLESEQS_H_ + +#include /**/ "ace/pre.h" + +#include "DoubleSeqC.h" + +#if !defined (ACE_LACKS_PRAGMA_ONCE) +# pragma once +#endif /* ACE_LACKS_PRAGMA_ONCE */ + +#include "tao/Collocation_Proxy_Broker.h" +#include "tao/PortableServer/PortableServer.h" +#include "tao/PortableServer/Servant_Base.h" + +#if defined(_MSC_VER) +#if (_MSC_VER >= 1200) +#pragma warning(push) +#endif /* _MSC_VER >= 1200 */ +#pragma warning(disable:4250) +#endif /* _MSC_VER */ + +#if defined (__BORLANDC__) +#pragma option push -w-rvl -w-rch -w-ccc -w-inl +#endif /* __BORLANDC__ */ + +// TAO_IDL - Generated from +// w:\ace_wrappers\tao\tao_idl\be\be_visitor_module/module_sh.cpp:49 + +namespace POA_CORBA +{ + + +// TAO_IDL - Generated from +// w:\ace_wrappers\tao\tao_idl\be\be_visitor_module/module_sh.cpp:80 + +} // module CORBA + +#if defined(_MSC_VER) && (_MSC_VER >= 1200) +#pragma warning(pop) +#endif /* _MSC_VER */ + +#if defined (__BORLANDC__) +#pragma option pop +#endif /* __BORLANDC__ */ + +#include /**/ "ace/post.h" +#endif /* ifndef */ diff --git a/TAO/tao/LongDoubleSeq.pidl b/TAO/tao/LongDoubleSeq.pidl new file mode 100644 index 00000000000..0f9789c56ad --- /dev/null +++ b/TAO/tao/LongDoubleSeq.pidl @@ -0,0 +1,31 @@ +// -*- IDL -*- +// +// $Id$ + +// ================================================================ +/** + * This file was used to generate the code in LongDoubleSeq*.* + * The command used to generate code is: + * + * tao_idl + * -o orig -Ge 1 -Sc -GT -GA + * -Wb,export_macro=TAO_Export + * -Wb,export_include=TAO_Export.h + * -Wb,pre_include="ace/pre.h" + * -Wb,post_include="ace/post.h" + * LongDoubleSeq.pidl + * + */ +// ================================================================ + +#ifndef TAO_CORBA_LONG_DOUBLE_SEQ_IDL +#define TAO_CORBA_LONG_DOUBLE_SEQ_IDL + +#pragma prefix "omg.org" + +module CORBA +{ + typedef sequence<long double> LongDoubleSeq; +}; + +#endif /* TAO_CORBA_LONG_DOUBLE_SEQ_IDL */ diff --git a/TAO/tao/LongDoubleSeqC.cpp b/TAO/tao/LongDoubleSeqC.cpp new file mode 100644 index 00000000000..52273dc6abb --- /dev/null +++ b/TAO/tao/LongDoubleSeqC.cpp @@ -0,0 +1,210 @@ +// -*- C++ -*- +// +// $Id$ + +// **** Code generated by the The ACE ORB (TAO) IDL Compiler **** +// TAO and the TAO IDL Compiler have been developed by: +// Center for Distributed Object Computing +// Washington University +// St. Louis, MO +// USA +// http://www.cs.wustl.edu/~schmidt/doc-center.html +// and +// Distributed Object Computing Laboratory +// University of California at Irvine +// Irvine, CA +// USA +// http://doc.ece.uci.edu/ +// and +// Institute for Software Integrated Systems +// Vanderbilt University +// Nashville, TN +// USA +// http://www.isis.vanderbilt.edu/ +// +// Information about TAO is available at: +// http://www.cs.wustl.edu/~schmidt/TAO.html + +// TAO_IDL - Generated from +// .\be\be_codegen.cpp:303 + + +#include "LongDoubleSeqC.h" +#include "tao/CDR.h" +#include "tao/Typecode.h" + +#if defined (__BORLANDC__) +#pragma option -w-rvl -w-rch -w-ccc -w-aus -w-sig +#endif /* __BORLANDC__ */ + +#if !defined (__ACE_INLINE__) +#include "LongDoubleSeqC.inl" +#endif /* !defined __ACE_INLINE__ */ + +// TAO_IDL - Generated from +// .\be\be_visitor_arg_traits.cpp:64 + +// Arg traits specializations. +namespace TAO +{ +} + + +// TAO_IDL - Generated from +// w:\ace_wrappers\tao\tao_idl\be\be_visitor_sequence/sequence_cs.cpp:65 + +#if !defined (_CORBA_LONGDOUBLESEQ_CS_) +#define _CORBA_LONGDOUBLESEQ_CS_ + +CORBA::LongDoubleSeq::LongDoubleSeq (void) +{} + +CORBA::LongDoubleSeq::LongDoubleSeq ( + CORBA::ULong max + ) + : TAO_Unbounded_Sequence< + CORBA::LongDouble + > + (max) +{} + +CORBA::LongDoubleSeq::LongDoubleSeq ( + CORBA::ULong max, + CORBA::ULong length, + CORBA::LongDouble * buffer, + CORBA::Boolean release + ) + : TAO_Unbounded_Sequence< + CORBA::LongDouble + > + (max, length, buffer, release) +{} + +CORBA::LongDoubleSeq::LongDoubleSeq ( + const LongDoubleSeq &seq + ) + : TAO_Unbounded_Sequence< + CORBA::LongDouble + > + (seq) +{} + +CORBA::LongDoubleSeq::~LongDoubleSeq (void) +{} + +void CORBA::LongDoubleSeq::_tao_any_destructor ( + void * _tao_void_pointer + ) +{ + LongDoubleSeq * _tao_tmp_pointer = + static_cast<LongDoubleSeq *> (_tao_void_pointer); + delete _tao_tmp_pointer; +} + +#endif /* end #if !defined */ + +// TAO_IDL - Generated from +// w:\ace_wrappers\tao\tao_idl\be\be_visitor_sequence/cdr_op_cs.cpp:96 + +#if !defined _TAO_CDR_OP_CORBA_LongDoubleSeq_CPP_ +#define _TAO_CDR_OP_CORBA_LongDoubleSeq_CPP_ + +CORBA::Boolean operator<< ( + TAO_OutputCDR &strm, + const CORBA::LongDoubleSeq &_tao_sequence + ) +{ + const CORBA::ULong _tao_seq_len = _tao_sequence.length (); + + if (strm << _tao_seq_len) + { + // Encode all elements. + return strm.write_longdouble_array (_tao_sequence.get_buffer (), _tao_sequence.length ()); + } + + return 0; +} + +CORBA::Boolean operator>> ( + TAO_InputCDR &strm, + CORBA::LongDoubleSeq &_tao_sequence + ) +{ + CORBA::ULong _tao_seq_len; + + if (strm >> _tao_seq_len) + { + // Add a check to the length of the sequence + // to make sure it does not exceed the length + // of the stream. (See bug 58.) + if (_tao_seq_len > strm.length ()) + { + return 0; + } + + // Set the length of the sequence. + _tao_sequence.length (_tao_seq_len); + + // If length is 0 we return true. + if (0 >= _tao_seq_len) + { + return 1; + } + + // Retrieve all the elements. + return strm.read_longdouble_array (_tao_sequence.get_buffer (), _tao_sequence.length ()); + + } + + return 0; +} + +#endif /* _TAO_CDR_OP_CORBA_LongDoubleSeq_CPP_ */ + +// TAO_IDL - Generated from +// w:\ace_wrappers\tao\tao_idl\be\be_visitor_root/root.cpp:1628 + +#if defined (ACE_HAS_EXPLICIT_TEMPLATE_INSTANTIATION) + + template class + TAO_FixedSeq_Var_T< + CORBA::LongDoubleSeq, + CORBA::LongDouble + >; + + template class + TAO_Seq_Var_Base_T< + CORBA::LongDoubleSeq, + CORBA::LongDouble + >; + + template class + TAO_Seq_Out_T< + CORBA::LongDoubleSeq, + CORBA::LongDoubleSeq_var, + CORBA::LongDouble + >; + +#elif defined (ACE_HAS_TEMPLATE_INSTANTIATION_PRAGMA) + +# pragma instantiate \ + TAO_FixedSeq_Var_T< \ + CORBA::LongDoubleSeq, \ + CORBA::LongDouble \ + > + +# pragma instantiate \ + TAO_Seq_Var_Base_T< \ + CORBA::LongDoubleSeq, \ + CORBA::LongDouble \ + > + +# pragma instantiate \ + TAO_Seq_Out_T< \ + CORBA::LongDoubleSeq, \ + CORBA::LongDoubleSeq_var, \ + CORBA::LongDouble \ + > + +#endif /* !ACE_HAS_EXPLICIT_TEMPLATE_INSTANTIATION */ + diff --git a/TAO/tao/LongDoubleSeqC.h b/TAO/tao/LongDoubleSeqC.h new file mode 100644 index 00000000000..a555dd14de4 --- /dev/null +++ b/TAO/tao/LongDoubleSeqC.h @@ -0,0 +1,187 @@ +// -*- C++ -*- +// +// $Id$ + +// **** Code generated by the The ACE ORB (TAO) IDL Compiler **** +// TAO and the TAO IDL Compiler have been developed by: +// Center for Distributed Object Computing +// Washington University +// St. Louis, MO +// USA +// http://www.cs.wustl.edu/~schmidt/doc-center.html +// and +// Distributed Object Computing Laboratory +// University of California at Irvine +// Irvine, CA +// USA +// http://doc.ece.uci.edu/ +// and +// Institute for Software Integrated Systems +// Vanderbilt University +// Nashville, TN +// USA +// http://www.isis.vanderbilt.edu/ +// +// Information about TAO is available at: +// http://www.cs.wustl.edu/~schmidt/TAO.html + +// TAO_IDL - Generated from +// .\be\be_codegen.cpp:153 + +#ifndef _TAO_IDL_ORIG_LONGDOUBLESEQC_H_ +#define _TAO_IDL_ORIG_LONGDOUBLESEQC_H_ + +#include /**/ "ace/pre.h" + + +#include "ace/config-all.h" + +#if !defined (ACE_LACKS_PRAGMA_ONCE) +# pragma once +#endif /* ACE_LACKS_PRAGMA_ONCE */ + +#include "tao/ORB.h" +#include "tao/Environment.h" +#include "tao/Sequence_T.h" +#include "tao/Seq_Var_T.h" +#include "tao/Seq_Out_T.h" + +#if defined (TAO_EXPORT_MACRO) +#undef TAO_EXPORT_MACRO +#endif +#define TAO_EXPORT_MACRO TAO_Export + +#if defined (TAO_EXPORT_NESTED_CLASSES) +# if defined (TAO_EXPORT_NESTED_MACRO) +# undef TAO_EXPORT_NESTED_MACRO +# endif /* defined (TAO_EXPORT_NESTED_MACRO) */ +# define TAO_EXPORT_NESTED_MACRO TAO_Export +#endif /* TAO_EXPORT_NESTED_CLASSES */ + +#if defined(_MSC_VER) +#if (_MSC_VER >= 1200) +#pragma warning(push) +#endif /* _MSC_VER >= 1200 */ +#pragma warning(disable:4250) +#endif /* _MSC_VER */ + +#if defined (__BORLANDC__) +#pragma option push -w-rvl -w-rch -w-ccc -w-inl +#endif /* __BORLANDC__ */ + +// TAO_IDL - Generated from +// w:\ace_wrappers\tao\tao_idl\be\be_visitor_module/module_ch.cpp:48 + +namespace CORBA +{ + + // TAO_IDL - Generated from + // w:\ace_wrappers\tao\tao_idl\be\be_visitor_sequence/sequence_ch.cpp:101 + +#if !defined (_CORBA_LONGDOUBLESEQ_CH_) +#define _CORBA_LONGDOUBLESEQ_CH_ + + class LongDoubleSeq; + + typedef + TAO_FixedSeq_Var_T< + LongDoubleSeq, + CORBA::LongDouble + > + LongDoubleSeq_var; + + typedef + TAO_Seq_Out_T< + LongDoubleSeq, + LongDoubleSeq_var, + CORBA::LongDouble + > + LongDoubleSeq_out; + + class TAO_Export LongDoubleSeq + : public + TAO_Unbounded_Sequence< + CORBA::LongDouble + > + { + public: + LongDoubleSeq (void); + LongDoubleSeq (CORBA::ULong max); + LongDoubleSeq ( + CORBA::ULong max, + CORBA::ULong length, + CORBA::LongDouble* buffer, + CORBA::Boolean release = 0 + ); + LongDoubleSeq (const LongDoubleSeq &); + ~LongDoubleSeq (void); + + static void _tao_any_destructor (void *); + + typedef LongDoubleSeq_var _var_type; + }; + +#endif /* end #if !defined */ + + // TAO_IDL - Generated from + // w:\ace_wrappers\tao\tao_idl\be\be_visitor_typecode/typecode_decl.cpp:44 + + TAO_NAMESPACE_STORAGE_CLASS ::CORBA::TypeCode_ptr _tc_LongDoubleSeq; + +// TAO_IDL - Generated from +// w:\ace_wrappers\tao\tao_idl\be\be_visitor_module/module_ch.cpp:66 + +} // module CORBA + +// TAO_IDL - Generated from +// .\be\be_visitor_traits.cpp:59 + +// Traits specializations. +namespace TAO +{ +} + +// TAO_IDL - Generated from +// w:\ace_wrappers\tao\tao_idl\be\be_visitor_sequence/any_op_ch.cpp:52 + +TAO_Export void operator<<= (CORBA::Any &, const CORBA::LongDoubleSeq &); // copying version +TAO_Export void operator<<= (CORBA::Any &, CORBA::LongDoubleSeq*); // noncopying version +TAO_Export CORBA::Boolean operator>>= (const CORBA::Any &, CORBA::LongDoubleSeq *&); // deprecated +TAO_Export CORBA::Boolean operator>>= (const CORBA::Any &, const CORBA::LongDoubleSeq *&); + +// TAO_IDL - Generated from +// w:\ace_wrappers\tao\tao_idl\be\be_visitor_sequence/cdr_op_ch.cpp:71 + +#if !defined _TAO_CDR_OP_CORBA_LongDoubleSeq_H_ +#define _TAO_CDR_OP_CORBA_LongDoubleSeq_H_ + +TAO_Export CORBA::Boolean operator<< ( + TAO_OutputCDR &, + const CORBA::LongDoubleSeq & + ); +TAO_Export CORBA::Boolean operator>> ( + TAO_InputCDR &, + CORBA::LongDoubleSeq & + ); + +#endif /* _TAO_CDR_OP_CORBA_LongDoubleSeq_H_ */ + +// TAO_IDL - Generated from +// .\be\be_codegen.cpp:958 + +#if defined (__ACE_INLINE__) +#include "LongDoubleSeqC.inl" +#endif /* defined __ACE_INLINE__ */ + +#if defined(_MSC_VER) && (_MSC_VER >= 1200) +#pragma warning(pop) +#endif /* _MSC_VER */ + +#if defined (__BORLANDC__) +#pragma option pop +#endif /* __BORLANDC__ */ + +#include /**/ "ace/post.h" + +#endif /* ifndef */ + diff --git a/TAO/tao/OctetSeqS.i b/TAO/tao/LongDoubleSeqC.inl index 1d2df31bd57..38aa32569ba 100644 --- a/TAO/tao/OctetSeqS.i +++ b/TAO/tao/LongDoubleSeqC.inl @@ -24,3 +24,5 @@ // // Information about TAO is available at: // http://www.cs.wustl.edu/~schmidt/TAO.html + + diff --git a/TAO/tao/LongDoubleSeqS.h b/TAO/tao/LongDoubleSeqS.h new file mode 100644 index 00000000000..29768eca1fc --- /dev/null +++ b/TAO/tao/LongDoubleSeqS.h @@ -0,0 +1,78 @@ +// -*- C++ -*- +// +// $Id$ + +// **** Code generated by the The ACE ORB (TAO) IDL Compiler **** +// TAO and the TAO IDL Compiler have been developed by: +// Center for Distributed Object Computing +// Washington University +// St. Louis, MO +// USA +// http://www.cs.wustl.edu/~schmidt/doc-center.html +// and +// Distributed Object Computing Laboratory +// University of California at Irvine +// Irvine, CA +// USA +// http://doc.ece.uci.edu/ +// and +// Institute for Software Integrated Systems +// Vanderbilt University +// Nashville, TN +// USA +// http://www.isis.vanderbilt.edu/ +// +// Information about TAO is available at: +// http://www.cs.wustl.edu/~schmidt/TAO.html + +// TAO_IDL - Generated from +// .\be\be_codegen.cpp:391 + +#ifndef _TAO_IDL_ORIG_LONGDOUBLESEQS_H_ +#define _TAO_IDL_ORIG_LONGDOUBLESEQS_H_ + +#include /**/ "ace/pre.h" + +#include "LongDoubleSeqC.h" + +#if !defined (ACE_LACKS_PRAGMA_ONCE) +# pragma once +#endif /* ACE_LACKS_PRAGMA_ONCE */ + +#include "tao/Collocation_Proxy_Broker.h" +#include "tao/PortableServer/PortableServer.h" +#include "tao/PortableServer/Servant_Base.h" + +#if defined(_MSC_VER) +#if (_MSC_VER >= 1200) +#pragma warning(push) +#endif /* _MSC_VER >= 1200 */ +#pragma warning(disable:4250) +#endif /* _MSC_VER */ + +#if defined (__BORLANDC__) +#pragma option push -w-rvl -w-rch -w-ccc -w-inl +#endif /* __BORLANDC__ */ + +// TAO_IDL - Generated from +// w:\ace_wrappers\tao\tao_idl\be\be_visitor_module/module_sh.cpp:49 + +namespace POA_CORBA +{ + + +// TAO_IDL - Generated from +// w:\ace_wrappers\tao\tao_idl\be\be_visitor_module/module_sh.cpp:80 + +} // module CORBA + +#if defined(_MSC_VER) && (_MSC_VER >= 1200) +#pragma warning(pop) +#endif /* _MSC_VER */ + +#if defined (__BORLANDC__) +#pragma option pop +#endif /* __BORLANDC__ */ + +#include /**/ "ace/post.h" +#endif /* ifndef */ diff --git a/TAO/tao/LongLongSeq.pidl b/TAO/tao/LongLongSeq.pidl new file mode 100644 index 00000000000..18af58777e1 --- /dev/null +++ b/TAO/tao/LongLongSeq.pidl @@ -0,0 +1,31 @@ +// -*- IDL -*- +// +// $Id$ + +// ================================================================ +/** + * This file was used to generate the code in LongLongSeq*.* + * The command used to generate code is: + * + * tao_idl + * -o orig -Ge 1 -Sc -GT -GA + * -Wb,export_macro=TAO_Export + * -Wb,export_include=TAO_Export.h + * -Wb,pre_include="ace/pre.h" + * -Wb,post_include="ace/post.h" + * LongLongSeq.pidl + * + */ +// ================================================================ + +#ifndef TAO_CORBA_LONGLONG_SEQ_IDL +#define TAO_CORBA_LONGLONG_SEQ_IDL + +#pragma prefix "omg.org" + +module CORBA +{ + typedef sequence<long long> LongLongSeq; +}; + +#endif /* TAO_CORBA_LONGLONG_SEQ_IDL */ diff --git a/TAO/tao/LongLongSeqC.cpp b/TAO/tao/LongLongSeqC.cpp new file mode 100644 index 00000000000..500fe02c505 --- /dev/null +++ b/TAO/tao/LongLongSeqC.cpp @@ -0,0 +1,210 @@ +// -*- C++ -*- +// +// $Id$ + +// **** Code generated by the The ACE ORB (TAO) IDL Compiler **** +// TAO and the TAO IDL Compiler have been developed by: +// Center for Distributed Object Computing +// Washington University +// St. Louis, MO +// USA +// http://www.cs.wustl.edu/~schmidt/doc-center.html +// and +// Distributed Object Computing Laboratory +// University of California at Irvine +// Irvine, CA +// USA +// http://doc.ece.uci.edu/ +// and +// Institute for Software Integrated Systems +// Vanderbilt University +// Nashville, TN +// USA +// http://www.isis.vanderbilt.edu/ +// +// Information about TAO is available at: +// http://www.cs.wustl.edu/~schmidt/TAO.html + +// TAO_IDL - Generated from +// .\be\be_codegen.cpp:303 + + +#include "LongLongSeqC.h" +#include "tao/CDR.h" +#include "tao/Typecode.h" + +#if defined (__BORLANDC__) +#pragma option -w-rvl -w-rch -w-ccc -w-aus -w-sig +#endif /* __BORLANDC__ */ + +#if !defined (__ACE_INLINE__) +#include "LongLongSeqC.inl" +#endif /* !defined __ACE_INLINE__ */ + +// TAO_IDL - Generated from +// .\be\be_visitor_arg_traits.cpp:64 + +// Arg traits specializations. +namespace TAO +{ +} + + +// TAO_IDL - Generated from +// w:\ace_wrappers\tao\tao_idl\be\be_visitor_sequence/sequence_cs.cpp:65 + +#if !defined (_CORBA_LONGLONGSEQ_CS_) +#define _CORBA_LONGLONGSEQ_CS_ + +CORBA::LongLongSeq::LongLongSeq (void) +{} + +CORBA::LongLongSeq::LongLongSeq ( + CORBA::ULong max + ) + : TAO_Unbounded_Sequence< + CORBA::LongLong + > + (max) +{} + +CORBA::LongLongSeq::LongLongSeq ( + CORBA::ULong max, + CORBA::ULong length, + CORBA::LongLong * buffer, + CORBA::Boolean release + ) + : TAO_Unbounded_Sequence< + CORBA::LongLong + > + (max, length, buffer, release) +{} + +CORBA::LongLongSeq::LongLongSeq ( + const LongLongSeq &seq + ) + : TAO_Unbounded_Sequence< + CORBA::LongLong + > + (seq) +{} + +CORBA::LongLongSeq::~LongLongSeq (void) +{} + +void CORBA::LongLongSeq::_tao_any_destructor ( + void * _tao_void_pointer + ) +{ + LongLongSeq * _tao_tmp_pointer = + static_cast<LongLongSeq *> (_tao_void_pointer); + delete _tao_tmp_pointer; +} + +#endif /* end #if !defined */ + +// TAO_IDL - Generated from +// w:\ace_wrappers\tao\tao_idl\be\be_visitor_sequence/cdr_op_cs.cpp:96 + +#if !defined _TAO_CDR_OP_CORBA_LongLongSeq_CPP_ +#define _TAO_CDR_OP_CORBA_LongLongSeq_CPP_ + +CORBA::Boolean operator<< ( + TAO_OutputCDR &strm, + const CORBA::LongLongSeq &_tao_sequence + ) +{ + const CORBA::ULong _tao_seq_len = _tao_sequence.length (); + + if (strm << _tao_seq_len) + { + // Encode all elements. + return strm.write_longlong_array (_tao_sequence.get_buffer (), _tao_sequence.length ()); + } + + return 0; +} + +CORBA::Boolean operator>> ( + TAO_InputCDR &strm, + CORBA::LongLongSeq &_tao_sequence + ) +{ + CORBA::ULong _tao_seq_len; + + if (strm >> _tao_seq_len) + { + // Add a check to the length of the sequence + // to make sure it does not exceed the length + // of the stream. (See bug 58.) + if (_tao_seq_len > strm.length ()) + { + return 0; + } + + // Set the length of the sequence. + _tao_sequence.length (_tao_seq_len); + + // If length is 0 we return true. + if (0 >= _tao_seq_len) + { + return 1; + } + + // Retrieve all the elements. + return strm.read_longlong_array (_tao_sequence.get_buffer (), _tao_sequence.length ()); + + } + + return 0; +} + +#endif /* _TAO_CDR_OP_CORBA_LongLongSeq_CPP_ */ + +// TAO_IDL - Generated from +// w:\ace_wrappers\tao\tao_idl\be\be_visitor_root/root.cpp:1628 + +#if defined (ACE_HAS_EXPLICIT_TEMPLATE_INSTANTIATION) + + template class + TAO_FixedSeq_Var_T< + CORBA::LongLongSeq, + CORBA::LongLong + >; + + template class + TAO_Seq_Var_Base_T< + CORBA::LongLongSeq, + CORBA::LongLong + >; + + template class + TAO_Seq_Out_T< + CORBA::LongLongSeq, + CORBA::LongLongSeq_var, + CORBA::LongLong + >; + +#elif defined (ACE_HAS_TEMPLATE_INSTANTIATION_PRAGMA) + +# pragma instantiate \ + TAO_FixedSeq_Var_T< \ + CORBA::LongLongSeq, \ + CORBA::LongLong \ + > + +# pragma instantiate \ + TAO_Seq_Var_Base_T< \ + CORBA::LongLongSeq, \ + CORBA::LongLong \ + > + +# pragma instantiate \ + TAO_Seq_Out_T< \ + CORBA::LongLongSeq, \ + CORBA::LongLongSeq_var, \ + CORBA::LongLong \ + > + +#endif /* !ACE_HAS_EXPLICIT_TEMPLATE_INSTANTIATION */ + diff --git a/TAO/tao/LongLongSeqC.h b/TAO/tao/LongLongSeqC.h new file mode 100644 index 00000000000..bf9d6055156 --- /dev/null +++ b/TAO/tao/LongLongSeqC.h @@ -0,0 +1,187 @@ +// -*- C++ -*- +// +// $Id$ + +// **** Code generated by the The ACE ORB (TAO) IDL Compiler **** +// TAO and the TAO IDL Compiler have been developed by: +// Center for Distributed Object Computing +// Washington University +// St. Louis, MO +// USA +// http://www.cs.wustl.edu/~schmidt/doc-center.html +// and +// Distributed Object Computing Laboratory +// University of California at Irvine +// Irvine, CA +// USA +// http://doc.ece.uci.edu/ +// and +// Institute for Software Integrated Systems +// Vanderbilt University +// Nashville, TN +// USA +// http://www.isis.vanderbilt.edu/ +// +// Information about TAO is available at: +// http://www.cs.wustl.edu/~schmidt/TAO.html + +// TAO_IDL - Generated from +// .\be\be_codegen.cpp:153 + +#ifndef _TAO_IDL_ORIG_LONGLONGSEQC_H_ +#define _TAO_IDL_ORIG_LONGLONGSEQC_H_ + +#include /**/ "ace/pre.h" + + +#include "ace/config-all.h" + +#if !defined (ACE_LACKS_PRAGMA_ONCE) +# pragma once +#endif /* ACE_LACKS_PRAGMA_ONCE */ + +#include "tao/ORB.h" +#include "tao/Environment.h" +#include "tao/Sequence_T.h" +#include "tao/Seq_Var_T.h" +#include "tao/Seq_Out_T.h" + +#if defined (TAO_EXPORT_MACRO) +#undef TAO_EXPORT_MACRO +#endif +#define TAO_EXPORT_MACRO TAO_Export + +#if defined (TAO_EXPORT_NESTED_CLASSES) +# if defined (TAO_EXPORT_NESTED_MACRO) +# undef TAO_EXPORT_NESTED_MACRO +# endif /* defined (TAO_EXPORT_NESTED_MACRO) */ +# define TAO_EXPORT_NESTED_MACRO TAO_Export +#endif /* TAO_EXPORT_NESTED_CLASSES */ + +#if defined(_MSC_VER) +#if (_MSC_VER >= 1200) +#pragma warning(push) +#endif /* _MSC_VER >= 1200 */ +#pragma warning(disable:4250) +#endif /* _MSC_VER */ + +#if defined (__BORLANDC__) +#pragma option push -w-rvl -w-rch -w-ccc -w-inl +#endif /* __BORLANDC__ */ + +// TAO_IDL - Generated from +// w:\ace_wrappers\tao\tao_idl\be\be_visitor_module/module_ch.cpp:48 + +namespace CORBA +{ + + // TAO_IDL - Generated from + // w:\ace_wrappers\tao\tao_idl\be\be_visitor_sequence/sequence_ch.cpp:101 + +#if !defined (_CORBA_LONGLONGSEQ_CH_) +#define _CORBA_LONGLONGSEQ_CH_ + + class LongLongSeq; + + typedef + TAO_FixedSeq_Var_T< + LongLongSeq, + CORBA::LongLong + > + LongLongSeq_var; + + typedef + TAO_Seq_Out_T< + LongLongSeq, + LongLongSeq_var, + CORBA::LongLong + > + LongLongSeq_out; + + class TAO_Export LongLongSeq + : public + TAO_Unbounded_Sequence< + CORBA::LongLong + > + { + public: + LongLongSeq (void); + LongLongSeq (CORBA::ULong max); + LongLongSeq ( + CORBA::ULong max, + CORBA::ULong length, + CORBA::LongLong* buffer, + CORBA::Boolean release = 0 + ); + LongLongSeq (const LongLongSeq &); + ~LongLongSeq (void); + + static void _tao_any_destructor (void *); + + typedef LongLongSeq_var _var_type; + }; + +#endif /* end #if !defined */ + + // TAO_IDL - Generated from + // w:\ace_wrappers\tao\tao_idl\be\be_visitor_typecode/typecode_decl.cpp:44 + + TAO_NAMESPACE_STORAGE_CLASS ::CORBA::TypeCode_ptr _tc_LongLongSeq; + +// TAO_IDL - Generated from +// w:\ace_wrappers\tao\tao_idl\be\be_visitor_module/module_ch.cpp:66 + +} // module CORBA + +// TAO_IDL - Generated from +// .\be\be_visitor_traits.cpp:59 + +// Traits specializations. +namespace TAO +{ +} + +// TAO_IDL - Generated from +// w:\ace_wrappers\tao\tao_idl\be\be_visitor_sequence/any_op_ch.cpp:52 + +TAO_Export void operator<<= (CORBA::Any &, const CORBA::LongLongSeq &); // copying version +TAO_Export void operator<<= (CORBA::Any &, CORBA::LongLongSeq*); // noncopying version +TAO_Export CORBA::Boolean operator>>= (const CORBA::Any &, CORBA::LongLongSeq *&); // deprecated +TAO_Export CORBA::Boolean operator>>= (const CORBA::Any &, const CORBA::LongLongSeq *&); + +// TAO_IDL - Generated from +// w:\ace_wrappers\tao\tao_idl\be\be_visitor_sequence/cdr_op_ch.cpp:71 + +#if !defined _TAO_CDR_OP_CORBA_LongLongSeq_H_ +#define _TAO_CDR_OP_CORBA_LongLongSeq_H_ + +TAO_Export CORBA::Boolean operator<< ( + TAO_OutputCDR &, + const CORBA::LongLongSeq & + ); +TAO_Export CORBA::Boolean operator>> ( + TAO_InputCDR &, + CORBA::LongLongSeq & + ); + +#endif /* _TAO_CDR_OP_CORBA_LongLongSeq_H_ */ + +// TAO_IDL - Generated from +// .\be\be_codegen.cpp:958 + +#if defined (__ACE_INLINE__) +#include "LongLongSeqC.inl" +#endif /* defined __ACE_INLINE__ */ + +#if defined(_MSC_VER) && (_MSC_VER >= 1200) +#pragma warning(pop) +#endif /* _MSC_VER */ + +#if defined (__BORLANDC__) +#pragma option pop +#endif /* __BORLANDC__ */ + +#include /**/ "ace/post.h" + +#endif /* ifndef */ + diff --git a/TAO/tao/LongLongSeqC.inl b/TAO/tao/LongLongSeqC.inl new file mode 100644 index 00000000000..38aa32569ba --- /dev/null +++ b/TAO/tao/LongLongSeqC.inl @@ -0,0 +1,28 @@ +// -*- C++ -*- +// +// $Id$ + +// **** Code generated by the The ACE ORB (TAO) IDL Compiler **** +// TAO and the TAO IDL Compiler have been developed by: +// Center for Distributed Object Computing +// Washington University +// St. Louis, MO +// USA +// http://www.cs.wustl.edu/~schmidt/doc-center.html +// and +// Distributed Object Computing Laboratory +// University of California at Irvine +// Irvine, CA +// USA +// http://doc.ece.uci.edu/ +// and +// Institute for Software Integrated Systems +// Vanderbilt University +// Nashville, TN +// USA +// http://www.isis.vanderbilt.edu/ +// +// Information about TAO is available at: +// http://www.cs.wustl.edu/~schmidt/TAO.html + + diff --git a/TAO/tao/LongLongSeqS.h b/TAO/tao/LongLongSeqS.h new file mode 100644 index 00000000000..b8a5f3235e1 --- /dev/null +++ b/TAO/tao/LongLongSeqS.h @@ -0,0 +1,78 @@ +// -*- C++ -*- +// +// $Id$ + +// **** Code generated by the The ACE ORB (TAO) IDL Compiler **** +// TAO and the TAO IDL Compiler have been developed by: +// Center for Distributed Object Computing +// Washington University +// St. Louis, MO +// USA +// http://www.cs.wustl.edu/~schmidt/doc-center.html +// and +// Distributed Object Computing Laboratory +// University of California at Irvine +// Irvine, CA +// USA +// http://doc.ece.uci.edu/ +// and +// Institute for Software Integrated Systems +// Vanderbilt University +// Nashville, TN +// USA +// http://www.isis.vanderbilt.edu/ +// +// Information about TAO is available at: +// http://www.cs.wustl.edu/~schmidt/TAO.html + +// TAO_IDL - Generated from +// .\be\be_codegen.cpp:391 + +#ifndef _TAO_IDL_ORIG_LONGLONGSEQS_H_ +#define _TAO_IDL_ORIG_LONGLONGSEQS_H_ + +#include /**/ "ace/pre.h" + +#include "LongLongSeqC.h" + +#if !defined (ACE_LACKS_PRAGMA_ONCE) +# pragma once +#endif /* ACE_LACKS_PRAGMA_ONCE */ + +#include "tao/Collocation_Proxy_Broker.h" +#include "tao/PortableServer/PortableServer.h" +#include "tao/PortableServer/Servant_Base.h" + +#if defined(_MSC_VER) +#if (_MSC_VER >= 1200) +#pragma warning(push) +#endif /* _MSC_VER >= 1200 */ +#pragma warning(disable:4250) +#endif /* _MSC_VER */ + +#if defined (__BORLANDC__) +#pragma option push -w-rvl -w-rch -w-ccc -w-inl +#endif /* __BORLANDC__ */ + +// TAO_IDL - Generated from +// w:\ace_wrappers\tao\tao_idl\be\be_visitor_module/module_sh.cpp:49 + +namespace POA_CORBA +{ + + +// TAO_IDL - Generated from +// w:\ace_wrappers\tao\tao_idl\be\be_visitor_module/module_sh.cpp:80 + +} // module CORBA + +#if defined(_MSC_VER) && (_MSC_VER >= 1200) +#pragma warning(pop) +#endif /* _MSC_VER */ + +#if defined (__BORLANDC__) +#pragma option pop +#endif /* __BORLANDC__ */ + +#include /**/ "ace/post.h" +#endif /* ifndef */ diff --git a/TAO/tao/LongSeq.pidl b/TAO/tao/LongSeq.pidl new file mode 100644 index 00000000000..21b0572c14e --- /dev/null +++ b/TAO/tao/LongSeq.pidl @@ -0,0 +1,31 @@ +// -*- IDL -*- +// +// $Id$ + +// ================================================================ +/** + * This file was used to generate the code in LongSeq*.* + * The command used to generate code is: + * + * tao_idl + * -o orig -Ge 1 -Sc -GT -GA + * -Wb,export_macro=TAO_Export + * -Wb,export_include=TAO_Export.h + * -Wb,pre_include="ace/pre.h" + * -Wb,post_include="ace/post.h" + * LongSeq.pidl + * + */ +// ================================================================ + +#ifndef TAO_CORBA_LONG_SEQ_IDL +#define TAO_CORBA_LONG_SEQ_IDL + +#pragma prefix "omg.org" + +module CORBA +{ + typedef sequence<long> LongSeq; +}; + +#endif /* TAO_CORBA_LONG_SEQ_IDL */ diff --git a/TAO/tao/LongSeqC.cpp b/TAO/tao/LongSeqC.cpp new file mode 100644 index 00000000000..8e0bb5d1a7a --- /dev/null +++ b/TAO/tao/LongSeqC.cpp @@ -0,0 +1,210 @@ +// -*- C++ -*- +// +// $Id$ + +// **** Code generated by the The ACE ORB (TAO) IDL Compiler **** +// TAO and the TAO IDL Compiler have been developed by: +// Center for Distributed Object Computing +// Washington University +// St. Louis, MO +// USA +// http://www.cs.wustl.edu/~schmidt/doc-center.html +// and +// Distributed Object Computing Laboratory +// University of California at Irvine +// Irvine, CA +// USA +// http://doc.ece.uci.edu/ +// and +// Institute for Software Integrated Systems +// Vanderbilt University +// Nashville, TN +// USA +// http://www.isis.vanderbilt.edu/ +// +// Information about TAO is available at: +// http://www.cs.wustl.edu/~schmidt/TAO.html + +// TAO_IDL - Generated from +// .\be\be_codegen.cpp:303 + + +#include "LongSeqC.h" +#include "tao/CDR.h" +#include "tao/Typecode.h" + +#if defined (__BORLANDC__) +#pragma option -w-rvl -w-rch -w-ccc -w-aus -w-sig +#endif /* __BORLANDC__ */ + +#if !defined (__ACE_INLINE__) +#include "LongSeqC.inl" +#endif /* !defined __ACE_INLINE__ */ + +// TAO_IDL - Generated from +// .\be\be_visitor_arg_traits.cpp:64 + +// Arg traits specializations. +namespace TAO +{ +} + + +// TAO_IDL - Generated from +// w:\ace_wrappers\tao\tao_idl\be\be_visitor_sequence/sequence_cs.cpp:65 + +#if !defined (_CORBA_LONGSEQ_CS_) +#define _CORBA_LONGSEQ_CS_ + +CORBA::LongSeq::LongSeq (void) +{} + +CORBA::LongSeq::LongSeq ( + CORBA::ULong max + ) + : TAO_Unbounded_Sequence< + CORBA::Long + > + (max) +{} + +CORBA::LongSeq::LongSeq ( + CORBA::ULong max, + CORBA::ULong length, + CORBA::Long * buffer, + CORBA::Boolean release + ) + : TAO_Unbounded_Sequence< + CORBA::Long + > + (max, length, buffer, release) +{} + +CORBA::LongSeq::LongSeq ( + const LongSeq &seq + ) + : TAO_Unbounded_Sequence< + CORBA::Long + > + (seq) +{} + +CORBA::LongSeq::~LongSeq (void) +{} + +void CORBA::LongSeq::_tao_any_destructor ( + void * _tao_void_pointer + ) +{ + LongSeq * _tao_tmp_pointer = + static_cast<LongSeq *> (_tao_void_pointer); + delete _tao_tmp_pointer; +} + +#endif /* end #if !defined */ + +// TAO_IDL - Generated from +// w:\ace_wrappers\tao\tao_idl\be\be_visitor_sequence/cdr_op_cs.cpp:96 + +#if !defined _TAO_CDR_OP_CORBA_LongSeq_CPP_ +#define _TAO_CDR_OP_CORBA_LongSeq_CPP_ + +CORBA::Boolean operator<< ( + TAO_OutputCDR &strm, + const CORBA::LongSeq &_tao_sequence + ) +{ + const CORBA::ULong _tao_seq_len = _tao_sequence.length (); + + if (strm << _tao_seq_len) + { + // Encode all elements. + return strm.write_long_array (_tao_sequence.get_buffer (), _tao_sequence.length ()); + } + + return 0; +} + +CORBA::Boolean operator>> ( + TAO_InputCDR &strm, + CORBA::LongSeq &_tao_sequence + ) +{ + CORBA::ULong _tao_seq_len; + + if (strm >> _tao_seq_len) + { + // Add a check to the length of the sequence + // to make sure it does not exceed the length + // of the stream. (See bug 58.) + if (_tao_seq_len > strm.length ()) + { + return 0; + } + + // Set the length of the sequence. + _tao_sequence.length (_tao_seq_len); + + // If length is 0 we return true. + if (0 >= _tao_seq_len) + { + return 1; + } + + // Retrieve all the elements. + return strm.read_long_array (_tao_sequence.get_buffer (), _tao_sequence.length ()); + + } + + return 0; +} + +#endif /* _TAO_CDR_OP_CORBA_LongSeq_CPP_ */ + +// TAO_IDL - Generated from +// w:\ace_wrappers\tao\tao_idl\be\be_visitor_root/root.cpp:1628 + +#if defined (ACE_HAS_EXPLICIT_TEMPLATE_INSTANTIATION) + + template class + TAO_FixedSeq_Var_T< + CORBA::LongSeq, + CORBA::Long + >; + + template class + TAO_Seq_Var_Base_T< + CORBA::LongSeq, + CORBA::Long + >; + + template class + TAO_Seq_Out_T< + CORBA::LongSeq, + CORBA::LongSeq_var, + CORBA::Long + >; + +#elif defined (ACE_HAS_TEMPLATE_INSTANTIATION_PRAGMA) + +# pragma instantiate \ + TAO_FixedSeq_Var_T< \ + CORBA::LongSeq, \ + CORBA::Long \ + > + +# pragma instantiate \ + TAO_Seq_Var_Base_T< \ + CORBA::LongSeq, \ + CORBA::Long \ + > + +# pragma instantiate \ + TAO_Seq_Out_T< \ + CORBA::LongSeq, \ + CORBA::LongSeq_var, \ + CORBA::Long \ + > + +#endif /* !ACE_HAS_EXPLICIT_TEMPLATE_INSTANTIATION */ + diff --git a/TAO/tao/LongSeqC.h b/TAO/tao/LongSeqC.h new file mode 100644 index 00000000000..9d6d9f5f562 --- /dev/null +++ b/TAO/tao/LongSeqC.h @@ -0,0 +1,187 @@ +// -*- C++ -*- +// +// $Id$ + +// **** Code generated by the The ACE ORB (TAO) IDL Compiler **** +// TAO and the TAO IDL Compiler have been developed by: +// Center for Distributed Object Computing +// Washington University +// St. Louis, MO +// USA +// http://www.cs.wustl.edu/~schmidt/doc-center.html +// and +// Distributed Object Computing Laboratory +// University of California at Irvine +// Irvine, CA +// USA +// http://doc.ece.uci.edu/ +// and +// Institute for Software Integrated Systems +// Vanderbilt University +// Nashville, TN +// USA +// http://www.isis.vanderbilt.edu/ +// +// Information about TAO is available at: +// http://www.cs.wustl.edu/~schmidt/TAO.html + +// TAO_IDL - Generated from +// .\be\be_codegen.cpp:153 + +#ifndef _TAO_IDL_ORIG_LONGSEQC_H_ +#define _TAO_IDL_ORIG_LONGSEQC_H_ + +#include /**/ "ace/pre.h" + + +#include "ace/config-all.h" + +#if !defined (ACE_LACKS_PRAGMA_ONCE) +# pragma once +#endif /* ACE_LACKS_PRAGMA_ONCE */ + +#include "tao/ORB.h" +#include "tao/Environment.h" +#include "tao/Sequence_T.h" +#include "tao/Seq_Var_T.h" +#include "tao/Seq_Out_T.h" + +#if defined (TAO_EXPORT_MACRO) +#undef TAO_EXPORT_MACRO +#endif +#define TAO_EXPORT_MACRO TAO_Export + +#if defined (TAO_EXPORT_NESTED_CLASSES) +# if defined (TAO_EXPORT_NESTED_MACRO) +# undef TAO_EXPORT_NESTED_MACRO +# endif /* defined (TAO_EXPORT_NESTED_MACRO) */ +# define TAO_EXPORT_NESTED_MACRO TAO_Export +#endif /* TAO_EXPORT_NESTED_CLASSES */ + +#if defined(_MSC_VER) +#if (_MSC_VER >= 1200) +#pragma warning(push) +#endif /* _MSC_VER >= 1200 */ +#pragma warning(disable:4250) +#endif /* _MSC_VER */ + +#if defined (__BORLANDC__) +#pragma option push -w-rvl -w-rch -w-ccc -w-inl +#endif /* __BORLANDC__ */ + +// TAO_IDL - Generated from +// w:\ace_wrappers\tao\tao_idl\be\be_visitor_module/module_ch.cpp:48 + +namespace CORBA +{ + + // TAO_IDL - Generated from + // w:\ace_wrappers\tao\tao_idl\be\be_visitor_sequence/sequence_ch.cpp:101 + +#if !defined (_CORBA_LONGSEQ_CH_) +#define _CORBA_LONGSEQ_CH_ + + class LongSeq; + + typedef + TAO_FixedSeq_Var_T< + LongSeq, + CORBA::Long + > + LongSeq_var; + + typedef + TAO_Seq_Out_T< + LongSeq, + LongSeq_var, + CORBA::Long + > + LongSeq_out; + + class TAO_Export LongSeq + : public + TAO_Unbounded_Sequence< + CORBA::Long + > + { + public: + LongSeq (void); + LongSeq (CORBA::ULong max); + LongSeq ( + CORBA::ULong max, + CORBA::ULong length, + CORBA::Long* buffer, + CORBA::Boolean release = 0 + ); + LongSeq (const LongSeq &); + ~LongSeq (void); + + static void _tao_any_destructor (void *); + + typedef LongSeq_var _var_type; + }; + +#endif /* end #if !defined */ + + // TAO_IDL - Generated from + // w:\ace_wrappers\tao\tao_idl\be\be_visitor_typecode/typecode_decl.cpp:44 + + TAO_NAMESPACE_STORAGE_CLASS ::CORBA::TypeCode_ptr _tc_LongSeq; + +// TAO_IDL - Generated from +// w:\ace_wrappers\tao\tao_idl\be\be_visitor_module/module_ch.cpp:66 + +} // module CORBA + +// TAO_IDL - Generated from +// .\be\be_visitor_traits.cpp:59 + +// Traits specializations. +namespace TAO +{ +} + +// TAO_IDL - Generated from +// w:\ace_wrappers\tao\tao_idl\be\be_visitor_sequence/any_op_ch.cpp:52 + +TAO_Export void operator<<= (CORBA::Any &, const CORBA::LongSeq &); // copying version +TAO_Export void operator<<= (CORBA::Any &, CORBA::LongSeq*); // noncopying version +TAO_Export CORBA::Boolean operator>>= (const CORBA::Any &, CORBA::LongSeq *&); // deprecated +TAO_Export CORBA::Boolean operator>>= (const CORBA::Any &, const CORBA::LongSeq *&); + +// TAO_IDL - Generated from +// w:\ace_wrappers\tao\tao_idl\be\be_visitor_sequence/cdr_op_ch.cpp:71 + +#if !defined _TAO_CDR_OP_CORBA_LongSeq_H_ +#define _TAO_CDR_OP_CORBA_LongSeq_H_ + +TAO_Export CORBA::Boolean operator<< ( + TAO_OutputCDR &, + const CORBA::LongSeq & + ); +TAO_Export CORBA::Boolean operator>> ( + TAO_InputCDR &, + CORBA::LongSeq & + ); + +#endif /* _TAO_CDR_OP_CORBA_LongSeq_H_ */ + +// TAO_IDL - Generated from +// .\be\be_codegen.cpp:958 + +#if defined (__ACE_INLINE__) +#include "LongSeqC.inl" +#endif /* defined __ACE_INLINE__ */ + +#if defined(_MSC_VER) && (_MSC_VER >= 1200) +#pragma warning(pop) +#endif /* _MSC_VER */ + +#if defined (__BORLANDC__) +#pragma option pop +#endif /* __BORLANDC__ */ + +#include /**/ "ace/post.h" + +#endif /* ifndef */ + diff --git a/TAO/tao/LongSeqC.inl b/TAO/tao/LongSeqC.inl new file mode 100644 index 00000000000..38aa32569ba --- /dev/null +++ b/TAO/tao/LongSeqC.inl @@ -0,0 +1,28 @@ +// -*- C++ -*- +// +// $Id$ + +// **** Code generated by the The ACE ORB (TAO) IDL Compiler **** +// TAO and the TAO IDL Compiler have been developed by: +// Center for Distributed Object Computing +// Washington University +// St. Louis, MO +// USA +// http://www.cs.wustl.edu/~schmidt/doc-center.html +// and +// Distributed Object Computing Laboratory +// University of California at Irvine +// Irvine, CA +// USA +// http://doc.ece.uci.edu/ +// and +// Institute for Software Integrated Systems +// Vanderbilt University +// Nashville, TN +// USA +// http://www.isis.vanderbilt.edu/ +// +// Information about TAO is available at: +// http://www.cs.wustl.edu/~schmidt/TAO.html + + diff --git a/TAO/tao/LongSeqS.h b/TAO/tao/LongSeqS.h new file mode 100644 index 00000000000..fba787dde8d --- /dev/null +++ b/TAO/tao/LongSeqS.h @@ -0,0 +1,78 @@ +// -*- C++ -*- +// +// $Id$ + +// **** Code generated by the The ACE ORB (TAO) IDL Compiler **** +// TAO and the TAO IDL Compiler have been developed by: +// Center for Distributed Object Computing +// Washington University +// St. Louis, MO +// USA +// http://www.cs.wustl.edu/~schmidt/doc-center.html +// and +// Distributed Object Computing Laboratory +// University of California at Irvine +// Irvine, CA +// USA +// http://doc.ece.uci.edu/ +// and +// Institute for Software Integrated Systems +// Vanderbilt University +// Nashville, TN +// USA +// http://www.isis.vanderbilt.edu/ +// +// Information about TAO is available at: +// http://www.cs.wustl.edu/~schmidt/TAO.html + +// TAO_IDL - Generated from +// .\be\be_codegen.cpp:391 + +#ifndef _TAO_IDL_ORIG_LONGSEQS_H_ +#define _TAO_IDL_ORIG_LONGSEQS_H_ + +#include /**/ "ace/pre.h" + +#include "LongSeqC.h" + +#if !defined (ACE_LACKS_PRAGMA_ONCE) +# pragma once +#endif /* ACE_LACKS_PRAGMA_ONCE */ + +#include "tao/Collocation_Proxy_Broker.h" +#include "tao/PortableServer/PortableServer.h" +#include "tao/PortableServer/Servant_Base.h" + +#if defined(_MSC_VER) +#if (_MSC_VER >= 1200) +#pragma warning(push) +#endif /* _MSC_VER >= 1200 */ +#pragma warning(disable:4250) +#endif /* _MSC_VER */ + +#if defined (__BORLANDC__) +#pragma option push -w-rvl -w-rch -w-ccc -w-inl +#endif /* __BORLANDC__ */ + +// TAO_IDL - Generated from +// w:\ace_wrappers\tao\tao_idl\be\be_visitor_module/module_sh.cpp:49 + +namespace POA_CORBA +{ + + +// TAO_IDL - Generated from +// w:\ace_wrappers\tao\tao_idl\be\be_visitor_module/module_sh.cpp:80 + +} // module CORBA + +#if defined(_MSC_VER) && (_MSC_VER >= 1200) +#pragma warning(pop) +#endif /* _MSC_VER */ + +#if defined (__BORLANDC__) +#pragma option pop +#endif /* __BORLANDC__ */ + +#include /**/ "ace/post.h" +#endif /* ifndef */ diff --git a/TAO/tao/OctetSeqC.cpp b/TAO/tao/OctetSeqC.cpp index b726135c647..9cd587047be 100644 --- a/TAO/tao/OctetSeqC.cpp +++ b/TAO/tao/OctetSeqC.cpp @@ -26,7 +26,7 @@ // http://www.cs.wustl.edu/~schmidt/TAO.html // TAO_IDL - Generated from -// be\be_codegen.cpp:323 +// .\be\be_codegen.cpp:303 #include "OctetSeqC.h" @@ -39,11 +39,11 @@ #endif /* __BORLANDC__ */ #if !defined (__ACE_INLINE__) -#include "OctetSeqC.i" -#endif /* !defined INLINE */ +#include "OctetSeqC.inl" +#endif /* !defined __ACE_INLINE__ */ // TAO_IDL - Generated from -// be\be_visitor_arg_traits.cpp:64 +// .\be\be_visitor_arg_traits.cpp:64 // Arg traits specializations. namespace TAO @@ -52,7 +52,7 @@ namespace TAO // TAO_IDL - Generated from -// be\be_visitor_sequence/sequence_cs.cpp:65 +// w:\ace_wrappers\tao\tao_idl\be\be_visitor_sequence/sequence_cs.cpp:65 #if !defined (_CORBA_OCTETSEQ_CS_) #define _CORBA_OCTETSEQ_CS_ @@ -98,14 +98,14 @@ void CORBA::OctetSeq::_tao_any_destructor ( ) { OctetSeq * _tao_tmp_pointer = - ACE_static_cast (OctetSeq *, _tao_void_pointer); + static_cast<OctetSeq *> (_tao_void_pointer); delete _tao_tmp_pointer; } #endif /* end #if !defined */ // TAO_IDL - Generated from -// be\be_visitor_sequence/cdr_op_cs.cpp:96 +// w:\ace_wrappers\tao\tao_idl\be\be_visitor_sequence/cdr_op_cs.cpp:96 #if !defined _TAO_CDR_OP_CORBA_OctetSeq_CPP_ #define _TAO_CDR_OP_CORBA_OctetSeq_CPP_ @@ -115,7 +115,7 @@ CORBA::Boolean operator<< ( const CORBA::OctetSeq &_tao_sequence ) { - CORBA::ULong _tao_seq_len = _tao_sequence.length (); + const CORBA::ULong _tao_seq_len = _tao_sequence.length (); if (strm << _tao_seq_len) { @@ -124,7 +124,7 @@ CORBA::Boolean operator<< ( #if (TAO_NO_COPY_OCTET_SEQUENCES == 1) { TAO_Unbounded_Sequence<CORBA::Octet> *oseq = - ACE_static_cast (TAO_Unbounded_Sequence<CORBA::Octet>*, (CORBA::OctetSeq *)&_tao_sequence); + static_cast<TAO_Unbounded_Sequence<CORBA::Octet> *> ((CORBA::OctetSeq *)&_tao_sequence); if (oseq->mb ()) return strm.write_octet_array_mb (oseq->mb ()); else @@ -178,7 +178,7 @@ CORBA::Boolean operator>> ( input_cdr_allocator_type_locked () == 1) { TAO_Unbounded_Sequence<CORBA::Octet> *oseq = - ACE_static_cast(TAO_Unbounded_Sequence<CORBA::Octet>*, &_tao_sequence); + static_cast<TAO_Unbounded_Sequence<CORBA::Octet> *> (&_tao_sequence); oseq->replace (_tao_seq_len, strm.start ()); oseq->mb ()->wr_ptr (oseq->mb()->rd_ptr () + _tao_seq_len); strm.skip_bytes (_tao_seq_len); @@ -199,7 +199,7 @@ CORBA::Boolean operator>> ( #endif /* _TAO_CDR_OP_CORBA_OctetSeq_CPP_ */ // TAO_IDL - Generated from -// be\be_visitor_root/root.cpp:1628 +// w:\ace_wrappers\tao\tao_idl\be\be_visitor_root/root.cpp:1628 #if defined (ACE_HAS_EXPLICIT_TEMPLATE_INSTANTIATION) diff --git a/TAO/tao/OctetSeqC.h b/TAO/tao/OctetSeqC.h index c928d7a1207..918391bd520 100644 --- a/TAO/tao/OctetSeqC.h +++ b/TAO/tao/OctetSeqC.h @@ -26,7 +26,7 @@ // http://www.cs.wustl.edu/~schmidt/TAO.html // TAO_IDL - Generated from -// be\be_codegen.cpp:171 +// .\be\be_codegen.cpp:153 #ifndef _TAO_IDL_ORIG_OCTETSEQC_H_ #define _TAO_IDL_ORIG_OCTETSEQC_H_ @@ -68,13 +68,13 @@ #endif /* __BORLANDC__ */ // TAO_IDL - Generated from -// be\be_visitor_module/module_ch.cpp:48 +// w:\ace_wrappers\tao\tao_idl\be\be_visitor_module/module_ch.cpp:48 namespace CORBA { // TAO_IDL - Generated from - // be\be_visitor_sequence/sequence_ch.cpp:101 + // w:\ace_wrappers\tao\tao_idl\be\be_visitor_sequence/sequence_ch.cpp:101 #if !defined (_CORBA_OCTETSEQ_CH_) #define _CORBA_OCTETSEQ_CH_ @@ -130,37 +130,25 @@ namespace CORBA #endif /* end #if !defined */ // TAO_IDL - Generated from - // be\be_visitor_typecode/typecode_decl.cpp:44 + // w:\ace_wrappers\tao\tao_idl\be\be_visitor_typecode/typecode_decl.cpp:44 TAO_NAMESPACE_STORAGE_CLASS ::CORBA::TypeCode_ptr _tc_OctetSeq; // TAO_IDL - Generated from -// be\be_visitor_module/module_ch.cpp:66 +// w:\ace_wrappers\tao\tao_idl\be\be_visitor_module/module_ch.cpp:66 } // module CORBA // TAO_IDL - Generated from -// be\be_visitor_traits.cpp:59 +// .\be\be_visitor_traits.cpp:59 // Traits specializations. namespace TAO { } -// Workaround for a Visual Studio .NET bug where this class is not -// properly imported by an application if typedef'd or subclassed, -// resulting in 'multiply defined' link errors. The export macro -// here forces an explicit import by the application. Please see -// http://support.microsoft.com/default.aspx?scid=kb;en-us;309801 -// The problem stems from use of the type below in PortableServer, -// but we put the instantiation here because the application will -// need to see it in *C.h to avoid the error. -#if defined ACE_HAS_EXPLICIT_TEMPLATE_INSTANTIATION_EXPORT - template class TAO_Export TAO_Unbounded_Sequence<CORBA::OctetSeq>; -#endif /* ACE_HAS_EXPLICIT_TEMPLATE_INSTANTIATION_EXPORT */ - // TAO_IDL - Generated from -// be\be_visitor_sequence/any_op_ch.cpp:52 +// w:\ace_wrappers\tao\tao_idl\be\be_visitor_sequence/any_op_ch.cpp:52 TAO_Export void operator<<= (CORBA::Any &, const CORBA::OctetSeq &); // copying version TAO_Export void operator<<= (CORBA::Any &, CORBA::OctetSeq*); // noncopying version @@ -168,7 +156,7 @@ TAO_Export CORBA::Boolean operator>>= (const CORBA::Any &, CORBA::OctetSeq *&); TAO_Export CORBA::Boolean operator>>= (const CORBA::Any &, const CORBA::OctetSeq *&); // TAO_IDL - Generated from -// be\be_visitor_sequence/cdr_op_ch.cpp:71 +// w:\ace_wrappers\tao\tao_idl\be\be_visitor_sequence/cdr_op_ch.cpp:71 #if !defined _TAO_CDR_OP_CORBA_OctetSeq_H_ #define _TAO_CDR_OP_CORBA_OctetSeq_H_ @@ -185,11 +173,11 @@ TAO_Export CORBA::Boolean operator>> ( #endif /* _TAO_CDR_OP_CORBA_OctetSeq_H_ */ // TAO_IDL - Generated from -// be\be_codegen.cpp:978 +// .\be\be_codegen.cpp:958 #if defined (__ACE_INLINE__) -#include "OctetSeqC.i" -#endif /* defined INLINE */ +#include "OctetSeqC.inl" +#endif /* defined __ACE_INLINE__ */ #if defined(_MSC_VER) && (_MSC_VER >= 1200) #pragma warning(pop) diff --git a/TAO/tao/OctetSeqC.inl b/TAO/tao/OctetSeqC.inl new file mode 100644 index 00000000000..38aa32569ba --- /dev/null +++ b/TAO/tao/OctetSeqC.inl @@ -0,0 +1,28 @@ +// -*- C++ -*- +// +// $Id$ + +// **** Code generated by the The ACE ORB (TAO) IDL Compiler **** +// TAO and the TAO IDL Compiler have been developed by: +// Center for Distributed Object Computing +// Washington University +// St. Louis, MO +// USA +// http://www.cs.wustl.edu/~schmidt/doc-center.html +// and +// Distributed Object Computing Laboratory +// University of California at Irvine +// Irvine, CA +// USA +// http://doc.ece.uci.edu/ +// and +// Institute for Software Integrated Systems +// Vanderbilt University +// Nashville, TN +// USA +// http://www.isis.vanderbilt.edu/ +// +// Information about TAO is available at: +// http://www.cs.wustl.edu/~schmidt/TAO.html + + diff --git a/TAO/tao/OctetSeqS.cpp b/TAO/tao/OctetSeqS.cpp deleted file mode 100644 index 5fb1fc5bfcb..00000000000 --- a/TAO/tao/OctetSeqS.cpp +++ /dev/null @@ -1,85 +0,0 @@ -// -*- C++ -*- -// -// $Id$ - -// **** Code generated by the The ACE ORB (TAO) IDL Compiler **** -// TAO and the TAO IDL Compiler have been developed by: -// Center for Distributed Object Computing -// Washington University -// St. Louis, MO -// USA -// http://www.cs.wustl.edu/~schmidt/doc-center.html -// and -// Distributed Object Computing Laboratory -// University of California at Irvine -// Irvine, CA -// USA -// http://doc.ece.uci.edu/ -// and -// Institute for Software Integrated Systems -// Vanderbilt University -// Nashville, TN -// USA -// http://www.isis.vanderbilt.edu/ -// -// Information about TAO is available at: -// http://www.cs.wustl.edu/~schmidt/TAO.html - - -// TAO_IDL - Generated from -// W:\ACE_wrappers\TAO\TAO_IDL\be\be_codegen.cpp:610 - -#ifndef _TAO_IDL_ORIG_OCTETSEQS_CPP_ -#define _TAO_IDL_ORIG_OCTETSEQS_CPP_ - - -#include "OctetSeqS.h" -#include "tao/PortableServer/Object_Adapter.h" -#include "tao/PortableServer/Operation_Table.h" -#include "tao/TAO_Server_Request.h" -#include "tao/ORB_Core.h" -#include "tao/Profile.h" -#include "tao/Stub.h" -#include "tao/IFR_Client_Adapter.h" -#include "tao/Object_T.h" -#include "tao/Typecode.h" -#include "tao/DynamicC.h" -#include "tao/PortableInterceptor.h" -#if TAO_HAS_INTERCEPTORS == 1 -#include "tao/RequestInfo_Util.h" -#include "tao/PICurrent.h" -#include "tao/PortableServer/ServerRequestInfo.h" -#include "tao/PortableServer/ServerInterceptorAdapter.h" -#endif /* TAO_HAS_INTERCEPTORS == 1 */ - -#include "ace/Dynamic_Service.h" -#include "ace/config-all.h" - -#if defined (__BORLANDC__) -#pragma option -w-rvl -w-rch -w-ccc -w-aus -#endif /* __BORLANDC__ */ - -#if !defined (__ACE_INLINE__) -#include "OctetSeqS.i" -#endif /* !defined INLINE */ - - - -// TAO_IDL - Generated from -// W:\ACE_wrappers\TAO\TAO_IDL\be\be_visitor_arg_traits.cpp:60 - -// Arg traits specializations. -namespace TAO -{ -}; - -// TAO_IDL - Generated from -// W:\ACE_wrappers\TAO\TAO_IDL\be\be_visitor_root/root.cpp:1739 - -#if defined (ACE_HAS_EXPLICIT_TEMPLATE_INSTANTIATION) - -#elif defined (ACE_HAS_TEMPLATE_INSTANTIATION_PRAGMA) - -#endif /* !ACE_HAS_EXPLICIT_TEMPLATE_INSTANTIATION */ - -#endif /* ifndef */ diff --git a/TAO/tao/OctetSeqS.h b/TAO/tao/OctetSeqS.h index 6728595c020..574cbf97971 100644 --- a/TAO/tao/OctetSeqS.h +++ b/TAO/tao/OctetSeqS.h @@ -26,12 +26,13 @@ // http://www.cs.wustl.edu/~schmidt/TAO.html // TAO_IDL - Generated from -// W:\ACE_wrappers\TAO\TAO_IDL\be\be_codegen.cpp:390 +// .\be\be_codegen.cpp:391 #ifndef _TAO_IDL_ORIG_OCTETSEQS_H_ #define _TAO_IDL_ORIG_OCTETSEQS_H_ #include /**/ "ace/pre.h" + #include "OctetSeqC.h" #if !defined (ACE_LACKS_PRAGMA_ONCE) @@ -54,26 +55,17 @@ #endif /* __BORLANDC__ */ // TAO_IDL - Generated from -// W:\ACE_wrappers\TAO\TAO_IDL\be\be_visitor_module/module_sh.cpp:49 +// w:\ace_wrappers\tao\tao_idl\be\be_visitor_module/module_sh.cpp:49 namespace POA_CORBA { // TAO_IDL - Generated from -// W:\ACE_wrappers\TAO\TAO_IDL\be\be_visitor_module/module_sh.cpp:80 +// w:\ace_wrappers\tao\tao_idl\be\be_visitor_module/module_sh.cpp:80 } // module CORBA -// TAO_IDL - Generated from -// W:\ACE_wrappers\TAO\TAO_IDL\be\be_codegen.cpp:946 - -#include "OctetSeqS_T.h" - -#if defined (__ACE_INLINE__) -#include "OctetSeqS.i" -#endif /* defined INLINE */ - #if defined(_MSC_VER) && (_MSC_VER >= 1200) #pragma warning(pop) #endif /* _MSC_VER */ diff --git a/TAO/tao/OctetSeqS_T.cpp b/TAO/tao/OctetSeqS_T.cpp deleted file mode 100644 index 50e54d98bc6..00000000000 --- a/TAO/tao/OctetSeqS_T.cpp +++ /dev/null @@ -1,41 +0,0 @@ -// -*- C++ -*- -// -// $Id$ - -// **** Code generated by the The ACE ORB (TAO) IDL Compiler **** -// TAO and the TAO IDL Compiler have been developed by: -// Center for Distributed Object Computing -// Washington University -// St. Louis, MO -// USA -// http://www.cs.wustl.edu/~schmidt/doc-center.html -// and -// Distributed Object Computing Laboratory -// University of California at Irvine -// Irvine, CA -// USA -// http://doc.ece.uci.edu/ -// and -// Institute for Software Integrated Systems -// Vanderbilt University -// Nashville, TN -// USA -// http://www.isis.vanderbilt.edu/ -// -// Information about TAO is available at: -// http://www.cs.wustl.edu/~schmidt/TAO.html - -// TAO_IDL - Generated from -// W:\ACE_wrappers\TAO\TAO_IDL\be\be_codegen.cpp:684 - -#ifndef _TAO_IDL_ORIG_OCTETSEQS_T_CPP_ -#define _TAO_IDL_ORIG_OCTETSEQS_T_CPP_ - -#include "OctetSeqS_T.h" - -#if !defined (__ACE_INLINE__) -#include "OctetSeqS_T.i" -#endif /* !defined INLINE */ - - -#endif /* ifndef */ diff --git a/TAO/tao/StringSeq.pidl b/TAO/tao/StringSeq.pidl index a8c7f2a50b7..d1ca2e3b097 100644 --- a/TAO/tao/StringSeq.pidl +++ b/TAO/tao/StringSeq.pidl @@ -27,7 +27,6 @@ module CORBA { typedef sequence<string> StringSeq; - typedef sequence<wstring> WStringSeq; }; #endif /* TAO_CORBA_STRING_SEQ_IDL */ diff --git a/TAO/tao/StringSeqA.cpp b/TAO/tao/StringSeqA.cpp index 9c18619bc4a..a3e9ca18a58 100644 --- a/TAO/tao/StringSeqA.cpp +++ b/TAO/tao/StringSeqA.cpp @@ -30,28 +30,28 @@ #include "tao/Any_Dual_Impl_T.h" // TAO_IDL - Generated from -// be\be_visitor_typecode/typecode_defn.cpp:290 +// w:\ace_wrappers\tao\tao_idl\be\be_visitor_typecode/typecode_defn.cpp:290 static const CORBA::Long _oc_CORBA_StringSeq[] = { TAO_ENCAP_BYTE_ORDER, // byte order 32, - ACE_NTOHL (0x49444c3a), - ACE_NTOHL (0x6f6d672e), - ACE_NTOHL (0x6f72672f), - ACE_NTOHL (0x434f5242), - ACE_NTOHL (0x412f5374), - ACE_NTOHL (0x72696e67), - ACE_NTOHL (0x5365713a), + ACE_NTOHL (0x49444c3a), + ACE_NTOHL (0x6f6d672e), + ACE_NTOHL (0x6f72672f), + ACE_NTOHL (0x434f5242), + ACE_NTOHL (0x412f5374), + ACE_NTOHL (0x72696e67), + ACE_NTOHL (0x5365713a), ACE_NTOHL (0x312e3000), // repository ID = IDL:omg.org/CORBA/StringSeq:1.0 10, - ACE_NTOHL (0x53747269), - ACE_NTOHL (0x6e675365), + ACE_NTOHL (0x53747269), + ACE_NTOHL (0x6e675365), ACE_NTOHL (0x71000000), // name = StringSeq CORBA::tk_sequence, // typecode kind 16, // encapsulation length TAO_ENCAP_BYTE_ORDER, // byte order - CORBA::tk_string, + CORBA::tk_string, 0U, // string length 0U, @@ -71,51 +71,8 @@ namespace CORBA &_tc_TAO_tc_CORBA_StringSeq; } -// TAO_IDL - Generated from -// be\be_visitor_typecode/typecode_defn.cpp:290 - -static const CORBA::Long _oc_CORBA_WStringSeq[] = -{ - TAO_ENCAP_BYTE_ORDER, // byte order - 33, - ACE_NTOHL (0x49444c3a), - ACE_NTOHL (0x6f6d672e), - ACE_NTOHL (0x6f72672f), - ACE_NTOHL (0x434f5242), - ACE_NTOHL (0x412f5753), - ACE_NTOHL (0x7472696e), - ACE_NTOHL (0x67536571), - ACE_NTOHL (0x3a312e30), - ACE_NTOHL (0x0), // repository ID = IDL:omg.org/CORBA/WStringSeq:1.0 - 11, - ACE_NTOHL (0x57537472), - ACE_NTOHL (0x696e6753), - ACE_NTOHL (0x65710000), // name = WStringSeq - CORBA::tk_sequence, // typecode kind - 16, // encapsulation length - TAO_ENCAP_BYTE_ORDER, // byte order - CORBA::tk_wstring, - 0U, // string length - 0U, - -}; - -static CORBA::TypeCode _tc_TAO_tc_CORBA_WStringSeq ( - CORBA::tk_alias, - sizeof (_oc_CORBA_WStringSeq), - (char *) &_oc_CORBA_WStringSeq, - 0, - sizeof (CORBA::WStringSeq) - ); - -namespace CORBA -{ - ::CORBA::TypeCode_ptr _tc_WStringSeq = - &_tc_TAO_tc_CORBA_WStringSeq; -} - -// TAO_IDL - Generated from -// be\be_visitor_sequence/any_op_cs.cpp:54 +// TAO_IDL - Generated from +// w:\ace_wrappers\tao\tao_idl\be\be_visitor_sequence/any_op_cs.cpp:54 // Copying insertion. void operator<<= ( @@ -151,8 +108,8 @@ CORBA::Boolean operator>>= ( CORBA::StringSeq *&_tao_elem ) { - return _tao_any >>= ACE_const_cast ( - const CORBA::StringSeq *&, + return _tao_any >>= const_cast< + const CORBA::StringSeq *&> ( _tao_elem ); } @@ -172,64 +129,6 @@ CORBA::Boolean operator>>= ( ); } -// TAO_IDL - Generated from -// be\be_visitor_sequence/any_op_cs.cpp:54 - -// Copying insertion. -void operator<<= ( - CORBA::Any &_tao_any, - const CORBA::WStringSeq &_tao_elem - ) -{ - TAO::Any_Dual_Impl_T<CORBA::WStringSeq>::insert_copy ( - _tao_any, - CORBA::WStringSeq::_tao_any_destructor, - CORBA::_tc_WStringSeq, - _tao_elem - ); -} - -// Non-copying insertion. -void operator<<= ( - CORBA::Any &_tao_any, - CORBA::WStringSeq *_tao_elem - ) -{ - TAO::Any_Dual_Impl_T<CORBA::WStringSeq>::insert ( - _tao_any, - CORBA::WStringSeq::_tao_any_destructor, - CORBA::_tc_WStringSeq, - _tao_elem - ); -} - -// Extraction to non-const pointer (deprecated). -CORBA::Boolean operator>>= ( - const CORBA::Any &_tao_any, - CORBA::WStringSeq *&_tao_elem - ) -{ - return _tao_any >>= ACE_const_cast ( - const CORBA::WStringSeq *&, - _tao_elem - ); -} - -// Extraction to const pointer. -CORBA::Boolean operator>>= ( - const CORBA::Any &_tao_any, - const CORBA::WStringSeq *&_tao_elem - ) -{ - return - TAO::Any_Dual_Impl_T<CORBA::WStringSeq>::extract ( - _tao_any, - CORBA::WStringSeq::_tao_any_destructor, - CORBA::_tc_WStringSeq, - _tao_elem - ); -} - #if defined (ACE_HAS_EXPLICIT_TEMPLATE_INSTANTIATION) @@ -239,11 +138,6 @@ CORBA::Boolean operator>>= ( CORBA::StringSeq >; - template class - TAO::Any_Dual_Impl_T< - CORBA::WStringSeq - >; - #elif defined (ACE_HAS_TEMPLATE_INSTANTIATION_PRAGMA) # pragma instantiate \ @@ -251,10 +145,4 @@ CORBA::Boolean operator>>= ( CORBA::StringSeq \ > -# pragma instantiate \ - TAO::Any_Dual_Impl_T< \ - CORBA::WStringSeq \ - > - #endif /* !ACE_HAS_EXPLICIT_TEMPLATE_INSTANTIATION */ - diff --git a/TAO/tao/StringSeqC.cpp b/TAO/tao/StringSeqC.cpp index b4666879270..10ff244c508 100644 --- a/TAO/tao/StringSeqC.cpp +++ b/TAO/tao/StringSeqC.cpp @@ -26,7 +26,7 @@ // http://www.cs.wustl.edu/~schmidt/TAO.html // TAO_IDL - Generated from -// be\be_codegen.cpp:323 +// .\be\be_codegen.cpp:303 #include "StringSeqC.h" @@ -38,11 +38,11 @@ #endif /* __BORLANDC__ */ #if !defined (__ACE_INLINE__) -#include "StringSeqC.i" -#endif /* !defined INLINE */ +#include "StringSeqC.inl" +#endif /* !defined __ACE_INLINE__ */ // TAO_IDL - Generated from -// be\be_visitor_arg_traits.cpp:64 +// .\be\be_visitor_arg_traits.cpp:64 // Arg traits specializations. namespace TAO @@ -51,7 +51,7 @@ namespace TAO // TAO_IDL - Generated from -// be\be_visitor_sequence/sequence_cs.cpp:65 +// w:\ace_wrappers\tao\tao_idl\be\be_visitor_sequence/sequence_cs.cpp:65 #if !defined (_CORBA_STRINGSEQ_CS_) #define _CORBA_STRINGSEQ_CS_ @@ -91,61 +91,14 @@ void CORBA::StringSeq::_tao_any_destructor ( ) { StringSeq * _tao_tmp_pointer = - ACE_static_cast (StringSeq *, _tao_void_pointer); - delete _tao_tmp_pointer; -} - -#endif /* end #if !defined */ - -// TAO_IDL - Generated from -// be\be_visitor_sequence/sequence_cs.cpp:65 - -#if !defined (_CORBA_WSTRINGSEQ_CS_) -#define _CORBA_WSTRINGSEQ_CS_ - -CORBA::WStringSeq::WStringSeq (void) -{} - -CORBA::WStringSeq::WStringSeq ( - CORBA::ULong max - ) - : TAO_Unbounded_WString_Sequence - (max) -{} - -CORBA::WStringSeq::WStringSeq ( - CORBA::ULong max, - CORBA::ULong length, - CORBA::WChar * * buffer, - CORBA::Boolean release - ) - : TAO_Unbounded_WString_Sequence - (max, length, buffer, release) -{} - -CORBA::WStringSeq::WStringSeq ( - const WStringSeq &seq - ) - : TAO_Unbounded_WString_Sequence - (seq) -{} - -CORBA::WStringSeq::~WStringSeq (void) -{} - -void CORBA::WStringSeq::_tao_any_destructor ( - void * _tao_void_pointer - ) -{ - WStringSeq * _tao_tmp_pointer = - ACE_static_cast (WStringSeq *, _tao_void_pointer); + static_cast<StringSeq *> (_tao_void_pointer); delete _tao_tmp_pointer; } #endif /* end #if !defined */ // TAO_IDL - Generated from -// be\be_visitor_sequence/cdr_op_cs.cpp:96 +// w:\ace_wrappers\tao\tao_idl\be\be_visitor_sequence/cdr_op_cs.cpp:96 #if !defined _TAO_CDR_OP_CORBA_StringSeq_CPP_ #define _TAO_CDR_OP_CORBA_StringSeq_CPP_ @@ -155,7 +108,7 @@ CORBA::Boolean operator<< ( const CORBA::StringSeq &_tao_sequence ) { - CORBA::ULong _tao_seq_len = _tao_sequence.length (); + const CORBA::ULong _tao_seq_len = _tao_sequence.length (); if (strm << _tao_seq_len) { @@ -218,80 +171,7 @@ return 0; #endif /* _TAO_CDR_OP_CORBA_StringSeq_CPP_ */ // TAO_IDL - Generated from -// be\be_visitor_sequence/cdr_op_cs.cpp:96 - -#if !defined _TAO_CDR_OP_CORBA_WStringSeq_CPP_ -#define _TAO_CDR_OP_CORBA_WStringSeq_CPP_ - -CORBA::Boolean operator<< ( - TAO_OutputCDR &strm, - const CORBA::WStringSeq &_tao_sequence - ) -{ - CORBA::ULong _tao_seq_len = _tao_sequence.length (); - - if (strm << _tao_seq_len) - { - // Encode all elements. - CORBA::Boolean _tao_marshal_flag = 1; - - for (CORBA::ULong i = 0; i < _tao_seq_len && _tao_marshal_flag; ++i) - { - _tao_marshal_flag = (strm << _tao_sequence[i].in ()); - } - - return _tao_marshal_flag; - } - - return 0; -} - -CORBA::Boolean operator>> ( - TAO_InputCDR &strm, - CORBA::WStringSeq &_tao_sequence - ) -{ - CORBA::ULong _tao_seq_len; - - if (strm >> _tao_seq_len) - { - // Add a check to the length of the sequence - // to make sure it does not exceed the length - // of the stream. (See bug 58.) - if (_tao_seq_len > strm.length ()) - { - return 0; - } - - // Set the length of the sequence. - _tao_sequence.length (_tao_seq_len); - - // If length is 0 we return true. - if (0 >= _tao_seq_len) - { - return 1; - } - - // Retrieve all the elements. - CORBA::Boolean _tao_marshal_flag = 1; - - for (CORBA::ULong i = 0; i < _tao_seq_len && _tao_marshal_flag; ++i) - { - _tao_marshal_flag = (strm >> _tao_sequence[i].out ()); - - } - - return _tao_marshal_flag; - - } - -return 0; -} - -#endif /* _TAO_CDR_OP_CORBA_WStringSeq_CPP_ */ - -// TAO_IDL - Generated from -// be\be_visitor_root/root.cpp:1628 +// w:\ace_wrappers\tao\tao_idl\be\be_visitor_root/root.cpp:1628 #if defined (ACE_HAS_EXPLICIT_TEMPLATE_INSTANTIATION) @@ -314,25 +194,6 @@ return 0; TAO_SeqElem_String_Manager >; - template class - TAO_MngSeq_Var_T< - CORBA::WStringSeq, - TAO_SeqElem_WString_Manager - >; - - template class - TAO_Seq_Var_Base_T< - CORBA::WStringSeq, - TAO_SeqElem_WString_Manager - >; - - template class - TAO_MngSeq_Out_T< - CORBA::WStringSeq, - CORBA::WStringSeq_var, - TAO_SeqElem_WString_Manager - >; - #elif defined (ACE_HAS_TEMPLATE_INSTANTIATION_PRAGMA) # pragma instantiate \ @@ -354,24 +215,5 @@ return 0; TAO_SeqElem_String_Manager \ > -# pragma instantiate \ - TAO_MngSeq_Var_T< \ - CORBA::WStringSeq, \ - TAO_SeqElem_WString_Manager \ - > - -# pragma instantiate \ - TAO_Seq_Var_Base_T< \ - CORBA::WStringSeq, \ - TAO_SeqElem_WString_Manager \ - > - -# pragma instantiate \ - TAO_MngSeq_Out_T< \ - CORBA::WStringSeq, \ - CORBA::WStringSeq_var, \ - TAO_SeqElem_WString_Manager \ - > - #endif /* !ACE_HAS_EXPLICIT_TEMPLATE_INSTANTIATION */ diff --git a/TAO/tao/StringSeqC.h b/TAO/tao/StringSeqC.h index cf5501a439c..69ad64c2a3f 100644 --- a/TAO/tao/StringSeqC.h +++ b/TAO/tao/StringSeqC.h @@ -26,20 +26,22 @@ // http://www.cs.wustl.edu/~schmidt/TAO.html // TAO_IDL - Generated from -// be\be_codegen.cpp:171 +// .\be\be_codegen.cpp:153 #ifndef _TAO_IDL_ORIG_STRINGSEQC_H_ #define _TAO_IDL_ORIG_STRINGSEQC_H_ #include /**/ "ace/pre.h" -#include "tao/Environment.h" + +#include "ace/config-all.h" #if !defined (ACE_LACKS_PRAGMA_ONCE) # pragma once #endif /* ACE_LACKS_PRAGMA_ONCE */ -#include "tao/TAO_Export.h" +#include "tao/ORB.h" +#include "tao/Environment.h" #include "tao/Sequence_T.h" #include "tao/Seq_Var_T.h" #include "tao/Seq_Out_T.h" @@ -68,13 +70,13 @@ #endif /* __BORLANDC__ */ // TAO_IDL - Generated from -// be\be_visitor_module/module_ch.cpp:48 +// w:\ace_wrappers\tao\tao_idl\be\be_visitor_module/module_ch.cpp:48 namespace CORBA { // TAO_IDL - Generated from - // be\be_visitor_sequence/sequence_ch.cpp:101 + // w:\ace_wrappers\tao\tao_idl\be\be_visitor_sequence/sequence_ch.cpp:101 #if !defined (_CORBA_STRINGSEQ_CH_) #define _CORBA_STRINGSEQ_CH_ @@ -120,68 +122,17 @@ namespace CORBA #endif /* end #if !defined */ // TAO_IDL - Generated from - // be\be_visitor_typecode/typecode_decl.cpp:44 + // w:\ace_wrappers\tao\tao_idl\be\be_visitor_typecode/typecode_decl.cpp:44 TAO_NAMESPACE_STORAGE_CLASS ::CORBA::TypeCode_ptr _tc_StringSeq; - - // TAO_IDL - Generated from - // be\be_visitor_sequence/sequence_ch.cpp:101 - -#if !defined (_CORBA_WSTRINGSEQ_CH_) -#define _CORBA_WSTRINGSEQ_CH_ - - class WStringSeq; - - typedef - TAO_MngSeq_Var_T< - WStringSeq, - TAO_SeqElem_WString_Manager - > - WStringSeq_var; - - typedef - TAO_MngSeq_Out_T< - WStringSeq, - WStringSeq_var, - TAO_SeqElem_WString_Manager - > - WStringSeq_out; - - class TAO_Export WStringSeq - : public - TAO_Unbounded_WString_Sequence - { - public: - WStringSeq (void); - WStringSeq (CORBA::ULong max); - WStringSeq ( - CORBA::ULong max, - CORBA::ULong length, - CORBA::WChar ** buffer, - CORBA::Boolean release = 0 - ); - WStringSeq (const WStringSeq &); - ~WStringSeq (void); - - static void _tao_any_destructor (void *); - - typedef WStringSeq_var _var_type; - }; - -#endif /* end #if !defined */ - - // TAO_IDL - Generated from - // be\be_visitor_typecode/typecode_decl.cpp:44 - - TAO_NAMESPACE_STORAGE_CLASS ::CORBA::TypeCode_ptr _tc_WStringSeq; // TAO_IDL - Generated from -// be\be_visitor_module/module_ch.cpp:66 +// w:\ace_wrappers\tao\tao_idl\be\be_visitor_module/module_ch.cpp:66 } // module CORBA // TAO_IDL - Generated from -// be\be_visitor_traits.cpp:59 +// .\be\be_visitor_traits.cpp:59 // Traits specializations. namespace TAO @@ -189,7 +140,7 @@ namespace TAO } // TAO_IDL - Generated from -// be\be_visitor_sequence/any_op_ch.cpp:52 +// w:\ace_wrappers\tao\tao_idl\be\be_visitor_sequence/any_op_ch.cpp:52 TAO_Export void operator<<= (CORBA::Any &, const CORBA::StringSeq &); // copying version TAO_Export void operator<<= (CORBA::Any &, CORBA::StringSeq*); // noncopying version @@ -197,15 +148,7 @@ TAO_Export CORBA::Boolean operator>>= (const CORBA::Any &, CORBA::StringSeq *&); TAO_Export CORBA::Boolean operator>>= (const CORBA::Any &, const CORBA::StringSeq *&); // TAO_IDL - Generated from -// be\be_visitor_sequence/any_op_ch.cpp:52 - -TAO_Export void operator<<= (CORBA::Any &, const CORBA::WStringSeq &); // copying version -TAO_Export void operator<<= (CORBA::Any &, CORBA::WStringSeq*); // noncopying version -TAO_Export CORBA::Boolean operator>>= (const CORBA::Any &, CORBA::WStringSeq *&); // deprecated -TAO_Export CORBA::Boolean operator>>= (const CORBA::Any &, const CORBA::WStringSeq *&); - -// TAO_IDL - Generated from -// be\be_visitor_sequence/cdr_op_ch.cpp:71 +// w:\ace_wrappers\tao\tao_idl\be\be_visitor_sequence/cdr_op_ch.cpp:71 #if !defined _TAO_CDR_OP_CORBA_StringSeq_H_ #define _TAO_CDR_OP_CORBA_StringSeq_H_ @@ -222,28 +165,11 @@ TAO_Export CORBA::Boolean operator>> ( #endif /* _TAO_CDR_OP_CORBA_StringSeq_H_ */ // TAO_IDL - Generated from -// be\be_visitor_sequence/cdr_op_ch.cpp:71 - -#if !defined _TAO_CDR_OP_CORBA_WStringSeq_H_ -#define _TAO_CDR_OP_CORBA_WStringSeq_H_ - -TAO_Export CORBA::Boolean operator<< ( - TAO_OutputCDR &, - const CORBA::WStringSeq & - ); -TAO_Export CORBA::Boolean operator>> ( - TAO_InputCDR &, - CORBA::WStringSeq & - ); - -#endif /* _TAO_CDR_OP_CORBA_WStringSeq_H_ */ - -// TAO_IDL - Generated from -// be\be_codegen.cpp:978 +// .\be\be_codegen.cpp:958 #if defined (__ACE_INLINE__) -#include "StringSeqC.i" -#endif /* defined INLINE */ +#include "StringSeqC.inl" +#endif /* defined __ACE_INLINE__ */ #if defined(_MSC_VER) && (_MSC_VER >= 1200) #pragma warning(pop) diff --git a/TAO/tao/StringSeqC.inl b/TAO/tao/StringSeqC.inl new file mode 100644 index 00000000000..38aa32569ba --- /dev/null +++ b/TAO/tao/StringSeqC.inl @@ -0,0 +1,28 @@ +// -*- C++ -*- +// +// $Id$ + +// **** Code generated by the The ACE ORB (TAO) IDL Compiler **** +// TAO and the TAO IDL Compiler have been developed by: +// Center for Distributed Object Computing +// Washington University +// St. Louis, MO +// USA +// http://www.cs.wustl.edu/~schmidt/doc-center.html +// and +// Distributed Object Computing Laboratory +// University of California at Irvine +// Irvine, CA +// USA +// http://doc.ece.uci.edu/ +// and +// Institute for Software Integrated Systems +// Vanderbilt University +// Nashville, TN +// USA +// http://www.isis.vanderbilt.edu/ +// +// Information about TAO is available at: +// http://www.cs.wustl.edu/~schmidt/TAO.html + + diff --git a/TAO/tao/StringSeqS.h b/TAO/tao/StringSeqS.h index 1d4a9a45b6f..5a31faeb7ff 100644 --- a/TAO/tao/StringSeqS.h +++ b/TAO/tao/StringSeqS.h @@ -26,12 +26,53 @@ // http://www.cs.wustl.edu/~schmidt/TAO.html // TAO_IDL - Generated from -// .\be\be_codegen.cpp:411 +// .\be\be_codegen.cpp:391 #ifndef _TAO_IDL_ORIG_STRINGSEQS_H_ #define _TAO_IDL_ORIG_STRINGSEQS_H_ #include /**/ "ace/pre.h" +#include "StringSeqC.h" + +#if !defined (ACE_LACKS_PRAGMA_ONCE) +# pragma once +#endif /* ACE_LACKS_PRAGMA_ONCE */ + +#include "tao/Collocation_Proxy_Broker.h" +#include "tao/PortableServer/PortableServer.h" +#include "tao/PortableServer/Servant_Base.h" + +#if defined(_MSC_VER) +#if (_MSC_VER >= 1200) +#pragma warning(push) +#endif /* _MSC_VER >= 1200 */ +#pragma warning(disable:4250) +#endif /* _MSC_VER */ + +#if defined (__BORLANDC__) +#pragma option push -w-rvl -w-rch -w-ccc -w-inl +#endif /* __BORLANDC__ */ + +// TAO_IDL - Generated from +// w:\ace_wrappers\tao\tao_idl\be\be_visitor_module/module_sh.cpp:49 + +namespace POA_CORBA +{ + + +// TAO_IDL - Generated from +// w:\ace_wrappers\tao\tao_idl\be\be_visitor_module/module_sh.cpp:80 + +} // module CORBA + +#if defined(_MSC_VER) && (_MSC_VER >= 1200) +#pragma warning(pop) +#endif /* _MSC_VER */ + +#if defined (__BORLANDC__) +#pragma option pop +#endif /* __BORLANDC__ */ + #include /**/ "ace/post.h" #endif /* ifndef */ diff --git a/TAO/tao/ULongLongSeq.pidl b/TAO/tao/ULongLongSeq.pidl new file mode 100644 index 00000000000..9f3736dedf4 --- /dev/null +++ b/TAO/tao/ULongLongSeq.pidl @@ -0,0 +1,31 @@ +// -*- IDL -*- +// +// $Id$ + +// ================================================================ +/** + * This file was used to generate the code in ULongLongSeq*.* + * The command used to generate code is: + * + * tao_idl + * -o orig -Ge 1 -Sc -GT -GA + * -Wb,export_macro=TAO_Export + * -Wb,export_include=TAO_Export.h + * -Wb,pre_include="ace/pre.h" + * -Wb,post_include="ace/post.h" + * ULongLongSeq.pidl + * + */ +// ================================================================ + +#ifndef TAO_CORBA_ULONGLONG_SEQ_IDL +#define TAO_CORBA_ULONGLONG_SEQ_IDL + +#pragma prefix "omg.org" + +module CORBA +{ + typedef sequence<unsigned long long> ULongLongSeq; +}; + +#endif /* TAO_CORBA_ULONGLONG_SEQ_IDL */ diff --git a/TAO/tao/ULongLongSeqC.cpp b/TAO/tao/ULongLongSeqC.cpp new file mode 100644 index 00000000000..76ef2292145 --- /dev/null +++ b/TAO/tao/ULongLongSeqC.cpp @@ -0,0 +1,210 @@ +// -*- C++ -*- +// +// $Id$ + +// **** Code generated by the The ACE ORB (TAO) IDL Compiler **** +// TAO and the TAO IDL Compiler have been developed by: +// Center for Distributed Object Computing +// Washington University +// St. Louis, MO +// USA +// http://www.cs.wustl.edu/~schmidt/doc-center.html +// and +// Distributed Object Computing Laboratory +// University of California at Irvine +// Irvine, CA +// USA +// http://doc.ece.uci.edu/ +// and +// Institute for Software Integrated Systems +// Vanderbilt University +// Nashville, TN +// USA +// http://www.isis.vanderbilt.edu/ +// +// Information about TAO is available at: +// http://www.cs.wustl.edu/~schmidt/TAO.html + +// TAO_IDL - Generated from +// .\be\be_codegen.cpp:303 + + +#include "ULongLongSeqC.h" +#include "tao/CDR.h" +#include "tao/Typecode.h" + +#if defined (__BORLANDC__) +#pragma option -w-rvl -w-rch -w-ccc -w-aus -w-sig +#endif /* __BORLANDC__ */ + +#if !defined (__ACE_INLINE__) +#include "ULongLongSeqC.inl" +#endif /* !defined __ACE_INLINE__ */ + +// TAO_IDL - Generated from +// .\be\be_visitor_arg_traits.cpp:64 + +// Arg traits specializations. +namespace TAO +{ +} + + +// TAO_IDL - Generated from +// w:\ace_wrappers\tao\tao_idl\be\be_visitor_sequence/sequence_cs.cpp:65 + +#if !defined (_CORBA_ULONGLONGSEQ_CS_) +#define _CORBA_ULONGLONGSEQ_CS_ + +CORBA::ULongLongSeq::ULongLongSeq (void) +{} + +CORBA::ULongLongSeq::ULongLongSeq ( + CORBA::ULong max + ) + : TAO_Unbounded_Sequence< + CORBA::ULongLong + > + (max) +{} + +CORBA::ULongLongSeq::ULongLongSeq ( + CORBA::ULong max, + CORBA::ULong length, + CORBA::ULongLong * buffer, + CORBA::Boolean release + ) + : TAO_Unbounded_Sequence< + CORBA::ULongLong + > + (max, length, buffer, release) +{} + +CORBA::ULongLongSeq::ULongLongSeq ( + const ULongLongSeq &seq + ) + : TAO_Unbounded_Sequence< + CORBA::ULongLong + > + (seq) +{} + +CORBA::ULongLongSeq::~ULongLongSeq (void) +{} + +void CORBA::ULongLongSeq::_tao_any_destructor ( + void * _tao_void_pointer + ) +{ + ULongLongSeq * _tao_tmp_pointer = + static_cast<ULongLongSeq *> (_tao_void_pointer); + delete _tao_tmp_pointer; +} + +#endif /* end #if !defined */ + +// TAO_IDL - Generated from +// w:\ace_wrappers\tao\tao_idl\be\be_visitor_sequence/cdr_op_cs.cpp:96 + +#if !defined _TAO_CDR_OP_CORBA_ULongLongSeq_CPP_ +#define _TAO_CDR_OP_CORBA_ULongLongSeq_CPP_ + +CORBA::Boolean operator<< ( + TAO_OutputCDR &strm, + const CORBA::ULongLongSeq &_tao_sequence + ) +{ + const CORBA::ULong _tao_seq_len = _tao_sequence.length (); + + if (strm << _tao_seq_len) + { + // Encode all elements. + return strm.write_ulonglong_array (_tao_sequence.get_buffer (), _tao_sequence.length ()); + } + + return 0; +} + +CORBA::Boolean operator>> ( + TAO_InputCDR &strm, + CORBA::ULongLongSeq &_tao_sequence + ) +{ + CORBA::ULong _tao_seq_len; + + if (strm >> _tao_seq_len) + { + // Add a check to the length of the sequence + // to make sure it does not exceed the length + // of the stream. (See bug 58.) + if (_tao_seq_len > strm.length ()) + { + return 0; + } + + // Set the length of the sequence. + _tao_sequence.length (_tao_seq_len); + + // If length is 0 we return true. + if (0 >= _tao_seq_len) + { + return 1; + } + + // Retrieve all the elements. + return strm.read_ulonglong_array (_tao_sequence.get_buffer (), _tao_sequence.length ()); + + } + + return 0; +} + +#endif /* _TAO_CDR_OP_CORBA_ULongLongSeq_CPP_ */ + +// TAO_IDL - Generated from +// w:\ace_wrappers\tao\tao_idl\be\be_visitor_root/root.cpp:1628 + +#if defined (ACE_HAS_EXPLICIT_TEMPLATE_INSTANTIATION) + + template class + TAO_FixedSeq_Var_T< + CORBA::ULongLongSeq, + CORBA::ULongLong + >; + + template class + TAO_Seq_Var_Base_T< + CORBA::ULongLongSeq, + CORBA::ULongLong + >; + + template class + TAO_Seq_Out_T< + CORBA::ULongLongSeq, + CORBA::ULongLongSeq_var, + CORBA::ULongLong + >; + +#elif defined (ACE_HAS_TEMPLATE_INSTANTIATION_PRAGMA) + +# pragma instantiate \ + TAO_FixedSeq_Var_T< \ + CORBA::ULongLongSeq, \ + CORBA::ULongLong \ + > + +# pragma instantiate \ + TAO_Seq_Var_Base_T< \ + CORBA::ULongLongSeq, \ + CORBA::ULongLong \ + > + +# pragma instantiate \ + TAO_Seq_Out_T< \ + CORBA::ULongLongSeq, \ + CORBA::ULongLongSeq_var, \ + CORBA::ULongLong \ + > + +#endif /* !ACE_HAS_EXPLICIT_TEMPLATE_INSTANTIATION */ + diff --git a/TAO/tao/ULongLongSeqC.h b/TAO/tao/ULongLongSeqC.h new file mode 100644 index 00000000000..01c3cb9341f --- /dev/null +++ b/TAO/tao/ULongLongSeqC.h @@ -0,0 +1,187 @@ +// -*- C++ -*- +// +// $Id$ + +// **** Code generated by the The ACE ORB (TAO) IDL Compiler **** +// TAO and the TAO IDL Compiler have been developed by: +// Center for Distributed Object Computing +// Washington University +// St. Louis, MO +// USA +// http://www.cs.wustl.edu/~schmidt/doc-center.html +// and +// Distributed Object Computing Laboratory +// University of California at Irvine +// Irvine, CA +// USA +// http://doc.ece.uci.edu/ +// and +// Institute for Software Integrated Systems +// Vanderbilt University +// Nashville, TN +// USA +// http://www.isis.vanderbilt.edu/ +// +// Information about TAO is available at: +// http://www.cs.wustl.edu/~schmidt/TAO.html + +// TAO_IDL - Generated from +// .\be\be_codegen.cpp:153 + +#ifndef _TAO_IDL_ORIG_ULONGLONGSEQC_H_ +#define _TAO_IDL_ORIG_ULONGLONGSEQC_H_ + +#include /**/ "ace/pre.h" + + +#include "ace/config-all.h" + +#if !defined (ACE_LACKS_PRAGMA_ONCE) +# pragma once +#endif /* ACE_LACKS_PRAGMA_ONCE */ + +#include "tao/ORB.h" +#include "tao/Environment.h" +#include "tao/Sequence_T.h" +#include "tao/Seq_Var_T.h" +#include "tao/Seq_Out_T.h" + +#if defined (TAO_EXPORT_MACRO) +#undef TAO_EXPORT_MACRO +#endif +#define TAO_EXPORT_MACRO TAO_Export + +#if defined (TAO_EXPORT_NESTED_CLASSES) +# if defined (TAO_EXPORT_NESTED_MACRO) +# undef TAO_EXPORT_NESTED_MACRO +# endif /* defined (TAO_EXPORT_NESTED_MACRO) */ +# define TAO_EXPORT_NESTED_MACRO TAO_Export +#endif /* TAO_EXPORT_NESTED_CLASSES */ + +#if defined(_MSC_VER) +#if (_MSC_VER >= 1200) +#pragma warning(push) +#endif /* _MSC_VER >= 1200 */ +#pragma warning(disable:4250) +#endif /* _MSC_VER */ + +#if defined (__BORLANDC__) +#pragma option push -w-rvl -w-rch -w-ccc -w-inl +#endif /* __BORLANDC__ */ + +// TAO_IDL - Generated from +// w:\ace_wrappers\tao\tao_idl\be\be_visitor_module/module_ch.cpp:48 + +namespace CORBA +{ + + // TAO_IDL - Generated from + // w:\ace_wrappers\tao\tao_idl\be\be_visitor_sequence/sequence_ch.cpp:101 + +#if !defined (_CORBA_ULONGLONGSEQ_CH_) +#define _CORBA_ULONGLONGSEQ_CH_ + + class ULongLongSeq; + + typedef + TAO_FixedSeq_Var_T< + ULongLongSeq, + CORBA::ULongLong + > + ULongLongSeq_var; + + typedef + TAO_Seq_Out_T< + ULongLongSeq, + ULongLongSeq_var, + CORBA::ULongLong + > + ULongLongSeq_out; + + class TAO_Export ULongLongSeq + : public + TAO_Unbounded_Sequence< + CORBA::ULongLong + > + { + public: + ULongLongSeq (void); + ULongLongSeq (CORBA::ULong max); + ULongLongSeq ( + CORBA::ULong max, + CORBA::ULong length, + CORBA::ULongLong* buffer, + CORBA::Boolean release = 0 + ); + ULongLongSeq (const ULongLongSeq &); + ~ULongLongSeq (void); + + static void _tao_any_destructor (void *); + + typedef ULongLongSeq_var _var_type; + }; + +#endif /* end #if !defined */ + + // TAO_IDL - Generated from + // w:\ace_wrappers\tao\tao_idl\be\be_visitor_typecode/typecode_decl.cpp:44 + + TAO_NAMESPACE_STORAGE_CLASS ::CORBA::TypeCode_ptr _tc_ULongLongSeq; + +// TAO_IDL - Generated from +// w:\ace_wrappers\tao\tao_idl\be\be_visitor_module/module_ch.cpp:66 + +} // module CORBA + +// TAO_IDL - Generated from +// .\be\be_visitor_traits.cpp:59 + +// Traits specializations. +namespace TAO +{ +} + +// TAO_IDL - Generated from +// w:\ace_wrappers\tao\tao_idl\be\be_visitor_sequence/any_op_ch.cpp:52 + +TAO_Export void operator<<= (CORBA::Any &, const CORBA::ULongLongSeq &); // copying version +TAO_Export void operator<<= (CORBA::Any &, CORBA::ULongLongSeq*); // noncopying version +TAO_Export CORBA::Boolean operator>>= (const CORBA::Any &, CORBA::ULongLongSeq *&); // deprecated +TAO_Export CORBA::Boolean operator>>= (const CORBA::Any &, const CORBA::ULongLongSeq *&); + +// TAO_IDL - Generated from +// w:\ace_wrappers\tao\tao_idl\be\be_visitor_sequence/cdr_op_ch.cpp:71 + +#if !defined _TAO_CDR_OP_CORBA_ULongLongSeq_H_ +#define _TAO_CDR_OP_CORBA_ULongLongSeq_H_ + +TAO_Export CORBA::Boolean operator<< ( + TAO_OutputCDR &, + const CORBA::ULongLongSeq & + ); +TAO_Export CORBA::Boolean operator>> ( + TAO_InputCDR &, + CORBA::ULongLongSeq & + ); + +#endif /* _TAO_CDR_OP_CORBA_ULongLongSeq_H_ */ + +// TAO_IDL - Generated from +// .\be\be_codegen.cpp:958 + +#if defined (__ACE_INLINE__) +#include "ULongLongSeqC.inl" +#endif /* defined __ACE_INLINE__ */ + +#if defined(_MSC_VER) && (_MSC_VER >= 1200) +#pragma warning(pop) +#endif /* _MSC_VER */ + +#if defined (__BORLANDC__) +#pragma option pop +#endif /* __BORLANDC__ */ + +#include /**/ "ace/post.h" + +#endif /* ifndef */ + diff --git a/TAO/tao/ULongLongSeqC.inl b/TAO/tao/ULongLongSeqC.inl new file mode 100644 index 00000000000..38aa32569ba --- /dev/null +++ b/TAO/tao/ULongLongSeqC.inl @@ -0,0 +1,28 @@ +// -*- C++ -*- +// +// $Id$ + +// **** Code generated by the The ACE ORB (TAO) IDL Compiler **** +// TAO and the TAO IDL Compiler have been developed by: +// Center for Distributed Object Computing +// Washington University +// St. Louis, MO +// USA +// http://www.cs.wustl.edu/~schmidt/doc-center.html +// and +// Distributed Object Computing Laboratory +// University of California at Irvine +// Irvine, CA +// USA +// http://doc.ece.uci.edu/ +// and +// Institute for Software Integrated Systems +// Vanderbilt University +// Nashville, TN +// USA +// http://www.isis.vanderbilt.edu/ +// +// Information about TAO is available at: +// http://www.cs.wustl.edu/~schmidt/TAO.html + + diff --git a/TAO/tao/ULongLongSeqS.h b/TAO/tao/ULongLongSeqS.h new file mode 100644 index 00000000000..64d7e2feb87 --- /dev/null +++ b/TAO/tao/ULongLongSeqS.h @@ -0,0 +1,78 @@ +// -*- C++ -*- +// +// $Id$ + +// **** Code generated by the The ACE ORB (TAO) IDL Compiler **** +// TAO and the TAO IDL Compiler have been developed by: +// Center for Distributed Object Computing +// Washington University +// St. Louis, MO +// USA +// http://www.cs.wustl.edu/~schmidt/doc-center.html +// and +// Distributed Object Computing Laboratory +// University of California at Irvine +// Irvine, CA +// USA +// http://doc.ece.uci.edu/ +// and +// Institute for Software Integrated Systems +// Vanderbilt University +// Nashville, TN +// USA +// http://www.isis.vanderbilt.edu/ +// +// Information about TAO is available at: +// http://www.cs.wustl.edu/~schmidt/TAO.html + +// TAO_IDL - Generated from +// .\be\be_codegen.cpp:391 + +#ifndef _TAO_IDL_ORIG_ULONGLONGSEQS_H_ +#define _TAO_IDL_ORIG_ULONGLONGSEQS_H_ + +#include /**/ "ace/pre.h" + +#include "ULongLongSeqC.h" + +#if !defined (ACE_LACKS_PRAGMA_ONCE) +# pragma once +#endif /* ACE_LACKS_PRAGMA_ONCE */ + +#include "tao/Collocation_Proxy_Broker.h" +#include "tao/PortableServer/PortableServer.h" +#include "tao/PortableServer/Servant_Base.h" + +#if defined(_MSC_VER) +#if (_MSC_VER >= 1200) +#pragma warning(push) +#endif /* _MSC_VER >= 1200 */ +#pragma warning(disable:4250) +#endif /* _MSC_VER */ + +#if defined (__BORLANDC__) +#pragma option push -w-rvl -w-rch -w-ccc -w-inl +#endif /* __BORLANDC__ */ + +// TAO_IDL - Generated from +// w:\ace_wrappers\tao\tao_idl\be\be_visitor_module/module_sh.cpp:49 + +namespace POA_CORBA +{ + + +// TAO_IDL - Generated from +// w:\ace_wrappers\tao\tao_idl\be\be_visitor_module/module_sh.cpp:80 + +} // module CORBA + +#if defined(_MSC_VER) && (_MSC_VER >= 1200) +#pragma warning(pop) +#endif /* _MSC_VER */ + +#if defined (__BORLANDC__) +#pragma option pop +#endif /* __BORLANDC__ */ + +#include /**/ "ace/post.h" +#endif /* ifndef */ diff --git a/TAO/tao/WCharSeq.pidl b/TAO/tao/WCharSeq.pidl new file mode 100644 index 00000000000..7915d596a0f --- /dev/null +++ b/TAO/tao/WCharSeq.pidl @@ -0,0 +1,31 @@ +// -*- IDL -*- +// +// $Id$ + +// ================================================================ +/** + * This file was used to generate the code in WCharSeq*.* + * The command used to generate code is: + * + * tao_idl + * -o orig -Ge 1 -Sc -GT -GA + * -Wb,export_macro=TAO_Export + * -Wb,export_include=TAO_Export.h + * -Wb,pre_include="ace/pre.h" + * -Wb,post_include="ace/post.h" + * WCharSeq.pidl + * + */ +// ================================================================ + +#ifndef TAO_CORBA_WCHAR_SEQ_IDL +#define TAO_CORBA_WCHAR_SEQ_IDL + +#pragma prefix "omg.org" + +module CORBA +{ + typedef sequence<wchar> WCharSeq; +}; + +#endif /* TAO_CORBA_WCHAR_SEQ_IDL */ diff --git a/TAO/tao/WCharSeqC.cpp b/TAO/tao/WCharSeqC.cpp new file mode 100644 index 00000000000..77eb0f61aca --- /dev/null +++ b/TAO/tao/WCharSeqC.cpp @@ -0,0 +1,210 @@ +// -*- C++ -*- +// +// $Id$ + +// **** Code generated by the The ACE ORB (TAO) IDL Compiler **** +// TAO and the TAO IDL Compiler have been developed by: +// Center for Distributed Object Computing +// Washington University +// St. Louis, MO +// USA +// http://www.cs.wustl.edu/~schmidt/doc-center.html +// and +// Distributed Object Computing Laboratory +// University of California at Irvine +// Irvine, CA +// USA +// http://doc.ece.uci.edu/ +// and +// Institute for Software Integrated Systems +// Vanderbilt University +// Nashville, TN +// USA +// http://www.isis.vanderbilt.edu/ +// +// Information about TAO is available at: +// http://www.cs.wustl.edu/~schmidt/TAO.html + +// TAO_IDL - Generated from +// .\be\be_codegen.cpp:303 + + +#include "WCharSeqC.h" +#include "tao/CDR.h" +#include "tao/Typecode.h" + +#if defined (__BORLANDC__) +#pragma option -w-rvl -w-rch -w-ccc -w-aus -w-sig +#endif /* __BORLANDC__ */ + +#if !defined (__ACE_INLINE__) +#include "WCharSeqC.inl" +#endif /* !defined __ACE_INLINE__ */ + +// TAO_IDL - Generated from +// .\be\be_visitor_arg_traits.cpp:64 + +// Arg traits specializations. +namespace TAO +{ +} + + +// TAO_IDL - Generated from +// w:\ace_wrappers\tao\tao_idl\be\be_visitor_sequence/sequence_cs.cpp:65 + +#if !defined (_CORBA_WCHARSEQ_CS_) +#define _CORBA_WCHARSEQ_CS_ + +CORBA::WCharSeq::WCharSeq (void) +{} + +CORBA::WCharSeq::WCharSeq ( + CORBA::ULong max + ) + : TAO_Unbounded_Sequence< + CORBA::WChar + > + (max) +{} + +CORBA::WCharSeq::WCharSeq ( + CORBA::ULong max, + CORBA::ULong length, + CORBA::WChar * buffer, + CORBA::Boolean release + ) + : TAO_Unbounded_Sequence< + CORBA::WChar + > + (max, length, buffer, release) +{} + +CORBA::WCharSeq::WCharSeq ( + const WCharSeq &seq + ) + : TAO_Unbounded_Sequence< + CORBA::WChar + > + (seq) +{} + +CORBA::WCharSeq::~WCharSeq (void) +{} + +void CORBA::WCharSeq::_tao_any_destructor ( + void * _tao_void_pointer + ) +{ + WCharSeq * _tao_tmp_pointer = + static_cast<WCharSeq *> (_tao_void_pointer); + delete _tao_tmp_pointer; +} + +#endif /* end #if !defined */ + +// TAO_IDL - Generated from +// w:\ace_wrappers\tao\tao_idl\be\be_visitor_sequence/cdr_op_cs.cpp:96 + +#if !defined _TAO_CDR_OP_CORBA_WCharSeq_CPP_ +#define _TAO_CDR_OP_CORBA_WCharSeq_CPP_ + +CORBA::Boolean operator<< ( + TAO_OutputCDR &strm, + const CORBA::WCharSeq &_tao_sequence + ) +{ + const CORBA::ULong _tao_seq_len = _tao_sequence.length (); + + if (strm << _tao_seq_len) + { + // Encode all elements. + return strm.write_wchar_array (_tao_sequence.get_buffer (), _tao_sequence.length ()); + } + + return 0; +} + +CORBA::Boolean operator>> ( + TAO_InputCDR &strm, + CORBA::WCharSeq &_tao_sequence + ) +{ + CORBA::ULong _tao_seq_len; + + if (strm >> _tao_seq_len) + { + // Add a check to the length of the sequence + // to make sure it does not exceed the length + // of the stream. (See bug 58.) + if (_tao_seq_len > strm.length ()) + { + return 0; + } + + // Set the length of the sequence. + _tao_sequence.length (_tao_seq_len); + + // If length is 0 we return true. + if (0 >= _tao_seq_len) + { + return 1; + } + + // Retrieve all the elements. + return strm.read_wchar_array (_tao_sequence.get_buffer (), _tao_sequence.length ()); + + } + + return 0; +} + +#endif /* _TAO_CDR_OP_CORBA_WCharSeq_CPP_ */ + +// TAO_IDL - Generated from +// w:\ace_wrappers\tao\tao_idl\be\be_visitor_root/root.cpp:1628 + +#if defined (ACE_HAS_EXPLICIT_TEMPLATE_INSTANTIATION) + + template class + TAO_FixedSeq_Var_T< + CORBA::WCharSeq, + CORBA::WChar + >; + + template class + TAO_Seq_Var_Base_T< + CORBA::WCharSeq, + CORBA::WChar + >; + + template class + TAO_Seq_Out_T< + CORBA::WCharSeq, + CORBA::WCharSeq_var, + CORBA::WChar + >; + +#elif defined (ACE_HAS_TEMPLATE_INSTANTIATION_PRAGMA) + +# pragma instantiate \ + TAO_FixedSeq_Var_T< \ + CORBA::WCharSeq, \ + CORBA::WChar \ + > + +# pragma instantiate \ + TAO_Seq_Var_Base_T< \ + CORBA::WCharSeq, \ + CORBA::WChar \ + > + +# pragma instantiate \ + TAO_Seq_Out_T< \ + CORBA::WCharSeq, \ + CORBA::WCharSeq_var, \ + CORBA::WChar \ + > + +#endif /* !ACE_HAS_EXPLICIT_TEMPLATE_INSTANTIATION */ + diff --git a/TAO/tao/WCharSeqC.h b/TAO/tao/WCharSeqC.h new file mode 100644 index 00000000000..bde7d5ef51c --- /dev/null +++ b/TAO/tao/WCharSeqC.h @@ -0,0 +1,187 @@ +// -*- C++ -*- +// +// $Id$ + +// **** Code generated by the The ACE ORB (TAO) IDL Compiler **** +// TAO and the TAO IDL Compiler have been developed by: +// Center for Distributed Object Computing +// Washington University +// St. Louis, MO +// USA +// http://www.cs.wustl.edu/~schmidt/doc-center.html +// and +// Distributed Object Computing Laboratory +// University of California at Irvine +// Irvine, CA +// USA +// http://doc.ece.uci.edu/ +// and +// Institute for Software Integrated Systems +// Vanderbilt University +// Nashville, TN +// USA +// http://www.isis.vanderbilt.edu/ +// +// Information about TAO is available at: +// http://www.cs.wustl.edu/~schmidt/TAO.html + +// TAO_IDL - Generated from +// .\be\be_codegen.cpp:153 + +#ifndef _TAO_IDL_ORIG_WCHARSEQC_H_ +#define _TAO_IDL_ORIG_WCHARSEQC_H_ + +#include /**/ "ace/pre.h" + + +#include "ace/config-all.h" + +#if !defined (ACE_LACKS_PRAGMA_ONCE) +# pragma once +#endif /* ACE_LACKS_PRAGMA_ONCE */ + +#include "tao/ORB.h" +#include "tao/Environment.h" +#include "tao/Sequence_T.h" +#include "tao/Seq_Var_T.h" +#include "tao/Seq_Out_T.h" + +#if defined (TAO_EXPORT_MACRO) +#undef TAO_EXPORT_MACRO +#endif +#define TAO_EXPORT_MACRO TAO_Export + +#if defined (TAO_EXPORT_NESTED_CLASSES) +# if defined (TAO_EXPORT_NESTED_MACRO) +# undef TAO_EXPORT_NESTED_MACRO +# endif /* defined (TAO_EXPORT_NESTED_MACRO) */ +# define TAO_EXPORT_NESTED_MACRO TAO_Export +#endif /* TAO_EXPORT_NESTED_CLASSES */ + +#if defined(_MSC_VER) +#if (_MSC_VER >= 1200) +#pragma warning(push) +#endif /* _MSC_VER >= 1200 */ +#pragma warning(disable:4250) +#endif /* _MSC_VER */ + +#if defined (__BORLANDC__) +#pragma option push -w-rvl -w-rch -w-ccc -w-inl +#endif /* __BORLANDC__ */ + +// TAO_IDL - Generated from +// w:\ace_wrappers\tao\tao_idl\be\be_visitor_module/module_ch.cpp:48 + +namespace CORBA +{ + + // TAO_IDL - Generated from + // w:\ace_wrappers\tao\tao_idl\be\be_visitor_sequence/sequence_ch.cpp:101 + +#if !defined (_CORBA_WCHARSEQ_CH_) +#define _CORBA_WCHARSEQ_CH_ + + class WCharSeq; + + typedef + TAO_FixedSeq_Var_T< + WCharSeq, + CORBA::WChar + > + WCharSeq_var; + + typedef + TAO_Seq_Out_T< + WCharSeq, + WCharSeq_var, + CORBA::WChar + > + WCharSeq_out; + + class TAO_Export WCharSeq + : public + TAO_Unbounded_Sequence< + CORBA::WChar + > + { + public: + WCharSeq (void); + WCharSeq (CORBA::ULong max); + WCharSeq ( + CORBA::ULong max, + CORBA::ULong length, + CORBA::WChar* buffer, + CORBA::Boolean release = 0 + ); + WCharSeq (const WCharSeq &); + ~WCharSeq (void); + + static void _tao_any_destructor (void *); + + typedef WCharSeq_var _var_type; + }; + +#endif /* end #if !defined */ + + // TAO_IDL - Generated from + // w:\ace_wrappers\tao\tao_idl\be\be_visitor_typecode/typecode_decl.cpp:44 + + TAO_NAMESPACE_STORAGE_CLASS ::CORBA::TypeCode_ptr _tc_WCharSeq; + +// TAO_IDL - Generated from +// w:\ace_wrappers\tao\tao_idl\be\be_visitor_module/module_ch.cpp:66 + +} // module CORBA + +// TAO_IDL - Generated from +// .\be\be_visitor_traits.cpp:59 + +// Traits specializations. +namespace TAO +{ +} + +// TAO_IDL - Generated from +// w:\ace_wrappers\tao\tao_idl\be\be_visitor_sequence/any_op_ch.cpp:52 + +TAO_Export void operator<<= (CORBA::Any &, const CORBA::WCharSeq &); // copying version +TAO_Export void operator<<= (CORBA::Any &, CORBA::WCharSeq*); // noncopying version +TAO_Export CORBA::Boolean operator>>= (const CORBA::Any &, CORBA::WCharSeq *&); // deprecated +TAO_Export CORBA::Boolean operator>>= (const CORBA::Any &, const CORBA::WCharSeq *&); + +// TAO_IDL - Generated from +// w:\ace_wrappers\tao\tao_idl\be\be_visitor_sequence/cdr_op_ch.cpp:71 + +#if !defined _TAO_CDR_OP_CORBA_WCharSeq_H_ +#define _TAO_CDR_OP_CORBA_WCharSeq_H_ + +TAO_Export CORBA::Boolean operator<< ( + TAO_OutputCDR &, + const CORBA::WCharSeq & + ); +TAO_Export CORBA::Boolean operator>> ( + TAO_InputCDR &, + CORBA::WCharSeq & + ); + +#endif /* _TAO_CDR_OP_CORBA_WCharSeq_H_ */ + +// TAO_IDL - Generated from +// .\be\be_codegen.cpp:958 + +#if defined (__ACE_INLINE__) +#include "WCharSeqC.inl" +#endif /* defined __ACE_INLINE__ */ + +#if defined(_MSC_VER) && (_MSC_VER >= 1200) +#pragma warning(pop) +#endif /* _MSC_VER */ + +#if defined (__BORLANDC__) +#pragma option pop +#endif /* __BORLANDC__ */ + +#include /**/ "ace/post.h" + +#endif /* ifndef */ + diff --git a/TAO/tao/WCharSeqC.inl b/TAO/tao/WCharSeqC.inl new file mode 100644 index 00000000000..38aa32569ba --- /dev/null +++ b/TAO/tao/WCharSeqC.inl @@ -0,0 +1,28 @@ +// -*- C++ -*- +// +// $Id$ + +// **** Code generated by the The ACE ORB (TAO) IDL Compiler **** +// TAO and the TAO IDL Compiler have been developed by: +// Center for Distributed Object Computing +// Washington University +// St. Louis, MO +// USA +// http://www.cs.wustl.edu/~schmidt/doc-center.html +// and +// Distributed Object Computing Laboratory +// University of California at Irvine +// Irvine, CA +// USA +// http://doc.ece.uci.edu/ +// and +// Institute for Software Integrated Systems +// Vanderbilt University +// Nashville, TN +// USA +// http://www.isis.vanderbilt.edu/ +// +// Information about TAO is available at: +// http://www.cs.wustl.edu/~schmidt/TAO.html + + diff --git a/TAO/tao/WCharSeqS.h b/TAO/tao/WCharSeqS.h new file mode 100644 index 00000000000..92982cb9109 --- /dev/null +++ b/TAO/tao/WCharSeqS.h @@ -0,0 +1,78 @@ +// -*- C++ -*- +// +// $Id$ + +// **** Code generated by the The ACE ORB (TAO) IDL Compiler **** +// TAO and the TAO IDL Compiler have been developed by: +// Center for Distributed Object Computing +// Washington University +// St. Louis, MO +// USA +// http://www.cs.wustl.edu/~schmidt/doc-center.html +// and +// Distributed Object Computing Laboratory +// University of California at Irvine +// Irvine, CA +// USA +// http://doc.ece.uci.edu/ +// and +// Institute for Software Integrated Systems +// Vanderbilt University +// Nashville, TN +// USA +// http://www.isis.vanderbilt.edu/ +// +// Information about TAO is available at: +// http://www.cs.wustl.edu/~schmidt/TAO.html + +// TAO_IDL - Generated from +// .\be\be_codegen.cpp:391 + +#ifndef _TAO_IDL_ORIG_WCHARSEQS_H_ +#define _TAO_IDL_ORIG_WCHARSEQS_H_ + +#include /**/ "ace/pre.h" + +#include "WCharSeqC.h" + +#if !defined (ACE_LACKS_PRAGMA_ONCE) +# pragma once +#endif /* ACE_LACKS_PRAGMA_ONCE */ + +#include "tao/Collocation_Proxy_Broker.h" +#include "tao/PortableServer/PortableServer.h" +#include "tao/PortableServer/Servant_Base.h" + +#if defined(_MSC_VER) +#if (_MSC_VER >= 1200) +#pragma warning(push) +#endif /* _MSC_VER >= 1200 */ +#pragma warning(disable:4250) +#endif /* _MSC_VER */ + +#if defined (__BORLANDC__) +#pragma option push -w-rvl -w-rch -w-ccc -w-inl +#endif /* __BORLANDC__ */ + +// TAO_IDL - Generated from +// w:\ace_wrappers\tao\tao_idl\be\be_visitor_module/module_sh.cpp:49 + +namespace POA_CORBA +{ + + +// TAO_IDL - Generated from +// w:\ace_wrappers\tao\tao_idl\be\be_visitor_module/module_sh.cpp:80 + +} // module CORBA + +#if defined(_MSC_VER) && (_MSC_VER >= 1200) +#pragma warning(pop) +#endif /* _MSC_VER */ + +#if defined (__BORLANDC__) +#pragma option pop +#endif /* __BORLANDC__ */ + +#include /**/ "ace/post.h" +#endif /* ifndef */ diff --git a/TAO/tao/WStringSeq.pidl b/TAO/tao/WStringSeq.pidl new file mode 100644 index 00000000000..a80088c3468 --- /dev/null +++ b/TAO/tao/WStringSeq.pidl @@ -0,0 +1,32 @@ +// -*- IDL -*- +// +// $Id$ + +// ================================================================ +// +// This file was used to generate the code in WStringSeqC.* +// The command used to generate code is: +// +// tao_idl +// -o orig -Ge 1 -GT -GA -Sc +// -Wb,export_macro=TAO_Export +// -Wb,pre_include="ace/pre.h" +// -Wb,post_include="ace/post.h" +// WStringSeq.pidl +// +// Patches for changes to the generated code are available in the +// `diffs' directory. +// ================================================================ + + +#ifndef TAO_CORBA_WSTRING_SEQ_IDL +#define TAO_CORBA_WSTRING_SEQ_IDL + +#pragma prefix "omg.org" + +module CORBA +{ + typedef sequence<wstring> WStringSeq; +}; + +#endif /* TAO_CORBA_WSTRING_SEQ_IDL */ diff --git a/TAO/tao/WStringSeqC.cpp b/TAO/tao/WStringSeqC.cpp new file mode 100644 index 00000000000..04fbfbbfbf2 --- /dev/null +++ b/TAO/tao/WStringSeqC.cpp @@ -0,0 +1,219 @@ +// -*- C++ -*- +// +// $Id$ + +// **** Code generated by the The ACE ORB (TAO) IDL Compiler **** +// TAO and the TAO IDL Compiler have been developed by: +// Center for Distributed Object Computing +// Washington University +// St. Louis, MO +// USA +// http://www.cs.wustl.edu/~schmidt/doc-center.html +// and +// Distributed Object Computing Laboratory +// University of California at Irvine +// Irvine, CA +// USA +// http://doc.ece.uci.edu/ +// and +// Institute for Software Integrated Systems +// Vanderbilt University +// Nashville, TN +// USA +// http://www.isis.vanderbilt.edu/ +// +// Information about TAO is available at: +// http://www.cs.wustl.edu/~schmidt/TAO.html + +// TAO_IDL - Generated from +// .\be\be_codegen.cpp:303 + + +#include "WStringSeqC.h" +#include "tao/CDR.h" +#include "tao/Typecode.h" + +#if defined (__BORLANDC__) +#pragma option -w-rvl -w-rch -w-ccc -w-aus -w-sig +#endif /* __BORLANDC__ */ + +#if !defined (__ACE_INLINE__) +#include "WStringSeqC.inl" +#endif /* !defined __ACE_INLINE__ */ + +// TAO_IDL - Generated from +// .\be\be_visitor_arg_traits.cpp:64 + +// Arg traits specializations. +namespace TAO +{ +} + + +// TAO_IDL - Generated from +// w:\ace_wrappers\tao\tao_idl\be\be_visitor_sequence/sequence_cs.cpp:65 + +#if !defined (_CORBA_WSTRINGSEQ_CS_) +#define _CORBA_WSTRINGSEQ_CS_ + +CORBA::WStringSeq::WStringSeq (void) +{} + +CORBA::WStringSeq::WStringSeq ( + CORBA::ULong max + ) + : TAO_Unbounded_WString_Sequence + (max) +{} + +CORBA::WStringSeq::WStringSeq ( + CORBA::ULong max, + CORBA::ULong length, + CORBA::WChar * * buffer, + CORBA::Boolean release + ) + : TAO_Unbounded_WString_Sequence + (max, length, buffer, release) +{} + +CORBA::WStringSeq::WStringSeq ( + const WStringSeq &seq + ) + : TAO_Unbounded_WString_Sequence + (seq) +{} + +CORBA::WStringSeq::~WStringSeq (void) +{} + +void CORBA::WStringSeq::_tao_any_destructor ( + void * _tao_void_pointer + ) +{ + WStringSeq * _tao_tmp_pointer = + static_cast<WStringSeq *> (_tao_void_pointer); + delete _tao_tmp_pointer; +} + +#endif /* end #if !defined */ + +// TAO_IDL - Generated from +// w:\ace_wrappers\tao\tao_idl\be\be_visitor_sequence/cdr_op_cs.cpp:96 + +#if !defined _TAO_CDR_OP_CORBA_WStringSeq_CPP_ +#define _TAO_CDR_OP_CORBA_WStringSeq_CPP_ + +CORBA::Boolean operator<< ( + TAO_OutputCDR &strm, + const CORBA::WStringSeq &_tao_sequence + ) +{ + const CORBA::ULong _tao_seq_len = _tao_sequence.length (); + + if (strm << _tao_seq_len) + { + // Encode all elements. + CORBA::Boolean _tao_marshal_flag = 1; + + for (CORBA::ULong i = 0; i < _tao_seq_len && _tao_marshal_flag; ++i) + { + _tao_marshal_flag = (strm << _tao_sequence[i].in ()); + } + + return _tao_marshal_flag; + } + + return 0; +} + +CORBA::Boolean operator>> ( + TAO_InputCDR &strm, + CORBA::WStringSeq &_tao_sequence + ) +{ + CORBA::ULong _tao_seq_len; + + if (strm >> _tao_seq_len) + { + // Add a check to the length of the sequence + // to make sure it does not exceed the length + // of the stream. (See bug 58.) + if (_tao_seq_len > strm.length ()) + { + return 0; + } + + // Set the length of the sequence. + _tao_sequence.length (_tao_seq_len); + + // If length is 0 we return true. + if (0 >= _tao_seq_len) + { + return 1; + } + + // Retrieve all the elements. + CORBA::Boolean _tao_marshal_flag = 1; + + for (CORBA::ULong i = 0; i < _tao_seq_len && _tao_marshal_flag; ++i) + { + _tao_marshal_flag = (strm >> _tao_sequence[i].out ()); + + } + + return _tao_marshal_flag; + + } + +return 0; +} + +#endif /* _TAO_CDR_OP_CORBA_WStringSeq_CPP_ */ + +// TAO_IDL - Generated from +// w:\ace_wrappers\tao\tao_idl\be\be_visitor_root/root.cpp:1628 + +#if defined (ACE_HAS_EXPLICIT_TEMPLATE_INSTANTIATION) + + template class + TAO_MngSeq_Var_T< + CORBA::WStringSeq, + TAO_SeqElem_WString_Manager + >; + + template class + TAO_Seq_Var_Base_T< + CORBA::WStringSeq, + TAO_SeqElem_WString_Manager + >; + + template class + TAO_MngSeq_Out_T< + CORBA::WStringSeq, + CORBA::WStringSeq_var, + TAO_SeqElem_WString_Manager + >; + +#elif defined (ACE_HAS_TEMPLATE_INSTANTIATION_PRAGMA) + +# pragma instantiate \ + TAO_MngSeq_Var_T< \ + CORBA::WStringSeq, \ + TAO_SeqElem_WString_Manager \ + > + +# pragma instantiate \ + TAO_Seq_Var_Base_T< \ + CORBA::WStringSeq, \ + TAO_SeqElem_WString_Manager \ + > + +# pragma instantiate \ + TAO_MngSeq_Out_T< \ + CORBA::WStringSeq, \ + CORBA::WStringSeq_var, \ + TAO_SeqElem_WString_Manager \ + > + +#endif /* !ACE_HAS_EXPLICIT_TEMPLATE_INSTANTIATION */ + diff --git a/TAO/tao/WStringSeqC.h b/TAO/tao/WStringSeqC.h new file mode 100644 index 00000000000..cf60409f74e --- /dev/null +++ b/TAO/tao/WStringSeqC.h @@ -0,0 +1,185 @@ +// -*- C++ -*- +// +// $Id$ + +// **** Code generated by the The ACE ORB (TAO) IDL Compiler **** +// TAO and the TAO IDL Compiler have been developed by: +// Center for Distributed Object Computing +// Washington University +// St. Louis, MO +// USA +// http://www.cs.wustl.edu/~schmidt/doc-center.html +// and +// Distributed Object Computing Laboratory +// University of California at Irvine +// Irvine, CA +// USA +// http://doc.ece.uci.edu/ +// and +// Institute for Software Integrated Systems +// Vanderbilt University +// Nashville, TN +// USA +// http://www.isis.vanderbilt.edu/ +// +// Information about TAO is available at: +// http://www.cs.wustl.edu/~schmidt/TAO.html + +// TAO_IDL - Generated from +// .\be\be_codegen.cpp:153 + +#ifndef _TAO_IDL_ORIG_WSTRINGSEQC_H_ +#define _TAO_IDL_ORIG_WSTRINGSEQC_H_ + +#include /**/ "ace/pre.h" + + +#include "ace/config-all.h" + +#if !defined (ACE_LACKS_PRAGMA_ONCE) +# pragma once +#endif /* ACE_LACKS_PRAGMA_ONCE */ + +#include "tao/ORB.h" +#include "tao/Environment.h" +#include "tao/Sequence_T.h" +#include "tao/Seq_Var_T.h" +#include "tao/Seq_Out_T.h" + +#if defined (TAO_EXPORT_MACRO) +#undef TAO_EXPORT_MACRO +#endif +#define TAO_EXPORT_MACRO TAO_Export + +#if defined (TAO_EXPORT_NESTED_CLASSES) +# if defined (TAO_EXPORT_NESTED_MACRO) +# undef TAO_EXPORT_NESTED_MACRO +# endif /* defined (TAO_EXPORT_NESTED_MACRO) */ +# define TAO_EXPORT_NESTED_MACRO TAO_Export +#endif /* TAO_EXPORT_NESTED_CLASSES */ + +#if defined(_MSC_VER) +#if (_MSC_VER >= 1200) +#pragma warning(push) +#endif /* _MSC_VER >= 1200 */ +#pragma warning(disable:4250) +#endif /* _MSC_VER */ + +#if defined (__BORLANDC__) +#pragma option push -w-rvl -w-rch -w-ccc -w-inl +#endif /* __BORLANDC__ */ + +// TAO_IDL - Generated from +// w:\ace_wrappers\tao\tao_idl\be\be_visitor_module/module_ch.cpp:48 + +namespace CORBA +{ + + // TAO_IDL - Generated from + // w:\ace_wrappers\tao\tao_idl\be\be_visitor_sequence/sequence_ch.cpp:101 + +#if !defined (_CORBA_WSTRINGSEQ_CH_) +#define _CORBA_WSTRINGSEQ_CH_ + + class WStringSeq; + + typedef + TAO_MngSeq_Var_T< + WStringSeq, + TAO_SeqElem_WString_Manager + > + WStringSeq_var; + + typedef + TAO_MngSeq_Out_T< + WStringSeq, + WStringSeq_var, + TAO_SeqElem_WString_Manager + > + WStringSeq_out; + + class TAO_Export WStringSeq + : public + TAO_Unbounded_WString_Sequence + { + public: + WStringSeq (void); + WStringSeq (CORBA::ULong max); + WStringSeq ( + CORBA::ULong max, + CORBA::ULong length, + CORBA::WChar ** buffer, + CORBA::Boolean release = 0 + ); + WStringSeq (const WStringSeq &); + ~WStringSeq (void); + + static void _tao_any_destructor (void *); + + typedef WStringSeq_var _var_type; + }; + +#endif /* end #if !defined */ + + // TAO_IDL - Generated from + // w:\ace_wrappers\tao\tao_idl\be\be_visitor_typecode/typecode_decl.cpp:44 + + TAO_NAMESPACE_STORAGE_CLASS ::CORBA::TypeCode_ptr _tc_WStringSeq; + +// TAO_IDL - Generated from +// w:\ace_wrappers\tao\tao_idl\be\be_visitor_module/module_ch.cpp:66 + +} // module CORBA + +// TAO_IDL - Generated from +// .\be\be_visitor_traits.cpp:59 + +// Traits specializations. +namespace TAO +{ +} + +// TAO_IDL - Generated from +// w:\ace_wrappers\tao\tao_idl\be\be_visitor_sequence/any_op_ch.cpp:52 + +TAO_Export void operator<<= (CORBA::Any &, const CORBA::WStringSeq &); // copying version +TAO_Export void operator<<= (CORBA::Any &, CORBA::WStringSeq*); // noncopying version +TAO_Export CORBA::Boolean operator>>= (const CORBA::Any &, CORBA::WStringSeq *&); // deprecated +TAO_Export CORBA::Boolean operator>>= (const CORBA::Any &, const CORBA::WStringSeq *&); + +// TAO_IDL - Generated from +// w:\ace_wrappers\tao\tao_idl\be\be_visitor_sequence/cdr_op_ch.cpp:71 + +#if !defined _TAO_CDR_OP_CORBA_WStringSeq_H_ +#define _TAO_CDR_OP_CORBA_WStringSeq_H_ + +TAO_Export CORBA::Boolean operator<< ( + TAO_OutputCDR &, + const CORBA::WStringSeq & + ); +TAO_Export CORBA::Boolean operator>> ( + TAO_InputCDR &, + CORBA::WStringSeq & + ); + +#endif /* _TAO_CDR_OP_CORBA_WStringSeq_H_ */ + +// TAO_IDL - Generated from +// .\be\be_codegen.cpp:958 + +#if defined (__ACE_INLINE__) +#include "WStringSeqC.inl" +#endif /* defined __ACE_INLINE__ */ + +#if defined(_MSC_VER) && (_MSC_VER >= 1200) +#pragma warning(pop) +#endif /* _MSC_VER */ + +#if defined (__BORLANDC__) +#pragma option pop +#endif /* __BORLANDC__ */ + +#include /**/ "ace/post.h" + +#endif /* ifndef */ + diff --git a/TAO/tao/WStringSeqC.inl b/TAO/tao/WStringSeqC.inl new file mode 100644 index 00000000000..38aa32569ba --- /dev/null +++ b/TAO/tao/WStringSeqC.inl @@ -0,0 +1,28 @@ +// -*- C++ -*- +// +// $Id$ + +// **** Code generated by the The ACE ORB (TAO) IDL Compiler **** +// TAO and the TAO IDL Compiler have been developed by: +// Center for Distributed Object Computing +// Washington University +// St. Louis, MO +// USA +// http://www.cs.wustl.edu/~schmidt/doc-center.html +// and +// Distributed Object Computing Laboratory +// University of California at Irvine +// Irvine, CA +// USA +// http://doc.ece.uci.edu/ +// and +// Institute for Software Integrated Systems +// Vanderbilt University +// Nashville, TN +// USA +// http://www.isis.vanderbilt.edu/ +// +// Information about TAO is available at: +// http://www.cs.wustl.edu/~schmidt/TAO.html + + diff --git a/TAO/tao/WStringSeqS.h b/TAO/tao/WStringSeqS.h new file mode 100644 index 00000000000..6e5a50e293b --- /dev/null +++ b/TAO/tao/WStringSeqS.h @@ -0,0 +1,78 @@ +// -*- C++ -*- +// +// $Id$ + +// **** Code generated by the The ACE ORB (TAO) IDL Compiler **** +// TAO and the TAO IDL Compiler have been developed by: +// Center for Distributed Object Computing +// Washington University +// St. Louis, MO +// USA +// http://www.cs.wustl.edu/~schmidt/doc-center.html +// and +// Distributed Object Computing Laboratory +// University of California at Irvine +// Irvine, CA +// USA +// http://doc.ece.uci.edu/ +// and +// Institute for Software Integrated Systems +// Vanderbilt University +// Nashville, TN +// USA +// http://www.isis.vanderbilt.edu/ +// +// Information about TAO is available at: +// http://www.cs.wustl.edu/~schmidt/TAO.html + +// TAO_IDL - Generated from +// .\be\be_codegen.cpp:391 + +#ifndef _TAO_IDL_ORIG_WSTRINGSEQS_H_ +#define _TAO_IDL_ORIG_WSTRINGSEQS_H_ + +#include /**/ "ace/pre.h" + +#include "WStringSeqC.h" + +#if !defined (ACE_LACKS_PRAGMA_ONCE) +# pragma once +#endif /* ACE_LACKS_PRAGMA_ONCE */ + +#include "tao/Collocation_Proxy_Broker.h" +#include "tao/PortableServer/PortableServer.h" +#include "tao/PortableServer/Servant_Base.h" + +#if defined(_MSC_VER) +#if (_MSC_VER >= 1200) +#pragma warning(push) +#endif /* _MSC_VER >= 1200 */ +#pragma warning(disable:4250) +#endif /* _MSC_VER */ + +#if defined (__BORLANDC__) +#pragma option push -w-rvl -w-rch -w-ccc -w-inl +#endif /* __BORLANDC__ */ + +// TAO_IDL - Generated from +// w:\ace_wrappers\tao\tao_idl\be\be_visitor_module/module_sh.cpp:49 + +namespace POA_CORBA +{ + + +// TAO_IDL - Generated from +// w:\ace_wrappers\tao\tao_idl\be\be_visitor_module/module_sh.cpp:80 + +} // module CORBA + +#if defined(_MSC_VER) && (_MSC_VER >= 1200) +#pragma warning(pop) +#endif /* _MSC_VER */ + +#if defined (__BORLANDC__) +#pragma option pop +#endif /* __BORLANDC__ */ + +#include /**/ "ace/post.h" +#endif /* ifndef */ diff --git a/TAO/tao/orb.idl b/TAO/tao/orb.idl index 4cd6037a537..c8438735aef 100644 --- a/TAO/tao/orb.idl +++ b/TAO/tao/orb.idl @@ -8,8 +8,28 @@ #define TAO_ORB_IDL ///FUZZ: disable check_for_include/ +#include <tao/AnySeq.pidl> +#include <tao/BooleanSeq.pidl> +#include <tao/CharSeq.pidl> +#include <tao/DoubleSeq.pidl> +#include <tao/FloatSeq.pidl> +#include <tao/LongDoubleSeq.pidl> +#include <tao/LongSeq.pidl> #include <tao/OctetSeq.pidl> +#include <tao/ShortSeq.pidl> #include <tao/StringSeq.pidl> +#include <tao/ULongSeq.pidl> +#include <tao/UShortSeq.pidl> +#include <tao/WCharSeq.pidl> +#include <tao/WStringSeq.pidl> + +#if ! defined (ACE_LACKS_LONGLONG_T) +#include <tao/LongLongSeq.pidl> +#endif /* ! defined (ACE_LACKS_LONGLONG_T) */ + +#if ! defined (ACE_LACKS_U_LONGLONG_T) +#include <tao/ULongLongSeq.pidl> +#endif /* ! defined (ACE_LACKS_U_LONGLONG_T) */ #include <tao/Policy.pidl> #include <tao/Services.pidl> diff --git a/TAO/tao/tao.mpc b/TAO/tao/tao.mpc index 5a78cb71a06..e0de395d74e 100644 --- a/TAO/tao/tao.mpc +++ b/TAO/tao/tao.mpc @@ -135,20 +135,38 @@ project(TAO) : acelib, taoversion, core, tao_output, taodefaults, extra_core { Dynamic_ParameterC.cpp Dynamic_ParameterA.cpp ParameterMode.cpp + AnySeqA.cpp + AnySeqC.cpp BooleanSeqA.cpp BooleanSeqC.cpp + CharSeqA.cpp + CharSeqC.cpp + DoubleSeqA.cpp + DoubleSeqC.cpp FloatSeqA.cpp FloatSeqC.cpp + LongDoubleSeqA.cpp + LongDoubleSeqC.cpp + LongLongSeqA.cpp + LongLongSeqC.cpp + LongSeqA.cpp + LongSeqC.cpp OctetSeqA.cpp OctetSeqC.cpp ShortSeqA.cpp ShortSeqC.cpp StringSeqA.cpp StringSeqC.cpp + ULongLongSeqA.cpp + ULongLongSeqC.cpp ULongSeqA.cpp ULongSeqC.cpp UShortSeqA.cpp UShortSeqC.cpp + WCharSeqA.cpp + WCharSeqC.cpp + WStringSeqA.cpp + WStringSeqC.cpp Codeset_Manager.cpp Codeset_Translator_Factory.cpp UTF16_BOM_Translator.cpp |