diff options
Diffstat (limited to 'TAO/TAO_IDL/be_include')
282 files changed, 0 insertions, 19984 deletions
diff --git a/TAO/TAO_IDL/be_include/Makefile.am b/TAO/TAO_IDL/be_include/Makefile.am deleted file mode 100644 index 5574114093a..00000000000 --- a/TAO/TAO_IDL/be_include/Makefile.am +++ /dev/null @@ -1,84 +0,0 @@ -##---------------------------------------------------------------------------- -## $Id$ -## -## Makefile.am for the TAO IDL compiler --- 'be_include' sub-directory -##---------------------------------------------------------------------------- - -## -## Process this file with automake to create Makefile.in -## - -## The number in AUTOMAKE_OPTIONS is the minimum required version automake -## needed to process this file. -AUTOMAKE_OPTIONS = 1.4 - -noinst_HEADERS = \ - be.h \ - be_argument.h \ - be_array.h \ - be_attribute.h \ - be_codegen.h \ - be_constant.h \ - be_decl.h \ - be_enum.h \ - be_enum_val.h \ - be_exception.h \ - be_expression.h \ - be_field.h \ - be_generator.h \ - be_helper.h \ - be_interface.h \ - be_interface_fwd.h \ - be_module.h \ - be_native.h \ - be_operation.h \ - be_predefined_type.h \ - be_root.h \ - be_scope.h \ - be_sequence.h \ - be_state.h \ - be_stream_factory.h \ - be_string.h \ - be_structure.h \ - be_sunsoft.h \ - be_type.h \ - be_typedef.h \ - be_union.h \ - be_union_branch.h \ - be_union_label.h \ - be_visitor.h \ - be_visitor_argument.h \ - be_visitor_array.h \ - be_visitor_attribute.h \ - be_visitor_constant.h \ - be_visitor_context.h \ - be_visitor_decl.h \ - be_visitor_enum.h \ - be_visitor_exception.h \ - be_visitor_factory.h \ - be_visitor_field.h \ - be_visitor_interface.h \ - be_visitor_interface_fwd.h \ - be_visitor_module.h \ - be_visitor_operation.h \ - be_visitor_root.h \ - be_visitor_scope.h \ - be_visitor_sequence.h \ - be_visitor_structure.h \ - be_visitor_typecode.h \ - be_visitor_typedef.h \ - be_visitor_union.h \ - be_visitor_union_branch.h - -dist-hook: - list=`find * -name CVS -prune -o -type d -print`; for p in $$list; do \ - $(mkinstalldirs) $(distdir)/$$p; \ - cp $$p/*.h $(distdir)/$$p; \ - done - -## Clean up some additional files/directories possibly created during -## the configure script tests. -clean-local: - -rm -f *.bak *.rpo *.sym lib*.*_pure_* Makefile.old core - -rm -rf ptrepository Templates.DB gcctemp.c gcctemp so_locations - diff --git a/TAO/TAO_IDL/be_include/be.h b/TAO/TAO_IDL/be_include/be.h deleted file mode 100644 index b2c9ee43602..00000000000 --- a/TAO/TAO_IDL/be_include/be.h +++ /dev/null @@ -1,134 +0,0 @@ -// $Id$ - -/* - -COPYRIGHT - -Copyright 1992, 1993, 1994 Sun Microsystems, Inc. Printed in the United -States of America. All Rights Reserved. - -This product is protected by copyright and distributed under the following -license restricting its use. - -The Interface Definition Language Compiler Front End (CFE) is made -available for your use provided that you include this license and copyright -notice on all media and documentation and the software program in which -this product is incorporated in whole or part. You may copy and extend -functionality (but may not remove functionality) of the Interface -Definition Language CFE without charge, but you are not authorized to -license or distribute it to anyone else except as part of a product or -program developed by you or with the express written consent of Sun -Microsystems, Inc. ("Sun"). - -The names of Sun Microsystems, Inc. and any of its subsidiaries or -affiliates may not be used in advertising or publicity pertaining to -distribution of Interface Definition Language CFE as permitted herein. - -This license is effective until terminated by Sun for failure to comply -with this license. Upon termination, you shall destroy or return all code -and documentation for the Interface Definition Language CFE. - -INTERFACE DEFINITION LANGUAGE CFE IS PROVIDED AS IS WITH NO WARRANTIES OF -ANY KIND INCLUDING THE WARRANTIES OF DESIGN, MERCHANTIBILITY AND FITNESS -FOR A PARTICULAR PURPOSE, NONINFRINGEMENT, OR ARISING FROM A COURSE OF -DEALING, USAGE OR TRADE PRACTICE. - -INTERFACE DEFINITION LANGUAGE CFE IS PROVIDED WITH NO SUPPORT AND WITHOUT -ANY OBLIGATION ON THE PART OF Sun OR ANY OF ITS SUBSIDIARIES OR AFFILIATES -TO ASSIST IN ITS USE, CORRECTION, MODIFICATION OR ENHANCEMENT. - -SUN OR ANY OF ITS SUBSIDIARIES OR AFFILIATES SHALL HAVE NO LIABILITY WITH -RESPECT TO THE INFRINGEMENT OF COPYRIGHTS, TRADE SECRETS OR ANY PATENTS BY -INTERFACE DEFINITION LANGUAGE CFE OR ANY PART THEREOF. - -IN NO EVENT WILL SUN OR ANY OF ITS SUBSIDIARIES OR AFFILIATES BE LIABLE FOR -ANY LOST REVENUE OR PROFITS OR OTHER SPECIAL, INDIRECT AND CONSEQUENTIAL -DAMAGES, EVEN IF SUN HAS BEEN ADVISED OF THE POSSIBILITY OF SUCH DAMAGES. - -Use, duplication, or disclosure by the government is subject to -restrictions as set forth in subparagraph (c)(1)(ii) of the Rights in -Technical Data and Computer Software clause at DFARS 252.227-7013 and FAR -52.227-19. - -Sun, Sun Microsystems and the Sun logo are trademarks or registered -trademarks of Sun Microsystems, Inc. - -SunSoft, Inc. -2550 Garcia Avenue -Mountain View, California 94043 - -NOTE: - -SunOS, SunSoft, Sun, Solaris, Sun Microsystems or the Sun logo are -trademarks or registered trademarks of Sun Microsystems, Inc. - - */ - -#ifndef _BE_BE_HH -#define _BE_BE_HH - -// be.h -// - -#if defined (ACE_WIN32) -#pragma warning(disable:4250) -#endif /* ACE_WIN32 */ - -// ACE includes - -#include "ace/ACE.h" - -#if !defined (ACE_LACKS_PRAGMA_ONCE) -# pragma once -#endif /* ACE_LACKS_PRAGMA_ONCE */ - -#include "ace/OS.h" -#include "ace/Singleton.h" -#include "ace/Synch.h" -#include "ace/Log_Msg.h" -#include "ace/Containers.h" -#include "ace/Process.h" - -/* - * BE includes - */ - -#include "be_decl.h" // class BE_Decl -#include "be_scope.h" // class BE_Scope -#include "be_generator.h" // BE generator class -#include "be_type.h" -#include "be_predefined_type.h" // class BE_PredefinedType -#include "be_module.h" // class BE_Module -#include "be_interface.h" // class BE_Interface -#include "be_interface_fwd.h" // class BE_InterfaceFwd -#include "be_valuetype.h" // class be_valuetype -#include "be_valuetype_fwd.h" // class be_valuetype_fwd -#include "be_structure.h" // class BE_Structure -#include "be_exception.h" // class BE_Exception -#include "be_expression.h" // class BE_Expr_val -#include "be_enum.h" // class BE_Enum -#include "be_operation.h" // class BE_Operation -#include "be_field.h" // class BE_Field -#include "be_argument.h" // class BE_Argument -#include "be_attribute.h" // class BE_Attribute -#include "be_union.h" // class BE_Union -#include "be_union_branch.h" // class BE_UnionBranch -#include "be_union_label.h" // class BE_UnionLabel -#include "be_constant.h" // class BE_Constant -#include "be_enum_val.h" // class BE_EnumVal -#include "be_array.h" // class BE_Array -#include "be_sequence.h" // class BE_Sequence -#include "be_string.h" // class BE_String -#include "be_typedef.h" // class BE_Typedef -#include "be_root.h" // class BE_Root -#include "be_native.h" // class BE_Native - -#include "be_helper.h" // helper functions -#include "be_codegen.h" // code generator -#include "be_stream_factory.h" // output stream factory - -#include "be_visitor.h" // abstract visitor -#include "be_visitor_factory.h" // visitor factory -#include "be_visitor_context.h" // visitor context - -#endif // _BE_BE_HH diff --git a/TAO/TAO_IDL/be_include/be_argument.h b/TAO/TAO_IDL/be_include/be_argument.h deleted file mode 100644 index d32814e2335..00000000000 --- a/TAO/TAO_IDL/be_include/be_argument.h +++ /dev/null @@ -1,56 +0,0 @@ -// $Id$ - -// ============================================================================ -// -// = LIBRARY -// TAO IDL -// -// = FILENAME -// be_argument.h -// -// = DESCRIPTION -// Extension of class AST_Argument that provides additional means for C++ -// mapping. -// -// = AUTHOR -// Copyright 1994-1995 by Sun Microsystems, Inc. -// and -// Aniruddha Gokhale -// -// ============================================================================ - -#ifndef BE_ARGUMENT_H -#define BE_ARGUMENT_H - -#include "be_decl.h" -#include "ast_argument.h" - -class AST_Type; -class UTL_StrList; -class be_visitor; - -/* - * BE_Argument - */ -class be_argument : public virtual AST_Argument, - public virtual be_decl -{ -public: - // =Operations - - be_argument (void); - // default constructor - - be_argument (AST_Argument::Direction d, AST_Type *ft, UTL_ScopedName *n, - UTL_StrList *p); - // constructor - - // Visiting - virtual int accept (be_visitor *visitor); - - // Narrowing - DEF_NARROW_METHODS2 (be_argument, AST_Argument, be_decl); - DEF_NARROW_FROM_DECL (be_argument); -}; - -#endif diff --git a/TAO/TAO_IDL/be_include/be_array.h b/TAO/TAO_IDL/be_include/be_array.h deleted file mode 100644 index fd9afcf42e7..00000000000 --- a/TAO/TAO_IDL/be_include/be_array.h +++ /dev/null @@ -1,75 +0,0 @@ -// $Id$ - -// ============================================================================ -// -// = LIBRARY -// TAO IDL -// -// = FILENAME -// be_array.h -// -// = DESCRIPTION -// Extension of class AST_Array that provides additional means for C++ -// mapping. -// -// = AUTHOR -// Copyright 1994-1995 by Sun Microsystems, Inc. -// and -// Aniruddha Gokhale -// -// ============================================================================ - -#ifndef BE_ARRAY_H -#define BE_ARRAY_H - -#include "be_type.h" -#include "ast_array.h" - -class UTL_ExprList; -class TAO_OutStream; -class be_visitor; - -/* - * BE_Array - */ -class be_array : public virtual AST_Array, - public virtual be_type -{ -public: - // =Operations - - be_array (void); - // default constructor - - be_array (UTL_ScopedName *n, unsigned long ndims, UTL_ExprList *dims); - // constructor - - ~be_array (void); - - virtual int gen_dimensions (TAO_OutStream *os, unsigned short slice=0); - // generate dimensions. If slice == 1, generate dimensions for the slice - // definition - - // Visiting - virtual int accept (be_visitor *visitor); - - // Narrowing - DEF_NARROW_METHODS2 (be_array, AST_Array, be_type); - DEF_NARROW_FROM_DECL (be_array); - -protected: - virtual int compute_size_type (void); - // compute the size type if it is unknown - - virtual int create_name (void); - // create a name for us - - const char* tao_name (void); - -private: - char* tao_name_; - // We need a name to generate typecodes and other objects, but it - // must be different from the typedef name.... -}; - -#endif diff --git a/TAO/TAO_IDL/be_include/be_attribute.h b/TAO/TAO_IDL/be_include/be_attribute.h deleted file mode 100644 index 345d63c14a2..00000000000 --- a/TAO/TAO_IDL/be_include/be_attribute.h +++ /dev/null @@ -1,55 +0,0 @@ -// $Id$ - -// ============================================================================ -// -// = LIBRARY -// TAO IDL -// -// = FILENAME -// be_attribute.h -// -// = DESCRIPTION -// Extension of class AST_Attribute that provides additional means for C++ -// mapping. -// -// = AUTHOR -// Copyright 1994-1995 by Sun Microsystems, Inc. -// and -// Aniruddha Gokhale -// -// ============================================================================ - -#ifndef BE_ATTRIBUTE_H -#define BE_ATTRIBUTE_H - -#include "be_decl.h" -#include "ast_attribute.h" - -class AST_Type; -class UTL_StrList; -class be_visitor; - -/* - * BE_Attribute - */ -class be_attribute : public virtual AST_Attribute, - public virtual be_decl -{ -public: - // =Operations - - be_attribute (void); - // default constructor - - be_attribute (idl_bool ro, AST_Type *ft, UTL_ScopedName *n, UTL_StrList *p); - // constructor - - // Visiting - virtual int accept (be_visitor *visitor); - - // Narrowing - DEF_NARROW_METHODS2 (be_attribute, AST_Attribute, be_decl); - DEF_NARROW_FROM_DECL (be_attribute); -}; - -#endif diff --git a/TAO/TAO_IDL/be_include/be_codegen.h b/TAO/TAO_IDL/be_include/be_codegen.h deleted file mode 100644 index 19edeafc611..00000000000 --- a/TAO/TAO_IDL/be_include/be_codegen.h +++ /dev/null @@ -1,695 +0,0 @@ -// $Id$ -/* -*- c++ -*- */ -// ================================================================ -// -// = LIBRARY -// TAO IDL -// -// = FILENAME -// be_codegen.h -// -// = DESCRIPTION -// The Code generator class -// -// = AUTHOR -// Aniruddha Gokhale -// -// ================================================================ - -#ifndef TAO_BE_CODEGEN_H -#define TAO_BE_CODEGEN_H - -#include "ace/Singleton.h" -#include "ace/Synch.h" - -#define NAMEBUFSIZE 1024 -// maximum length of static buffers used to store names - -class TAO_Visitor_Factory; -class TAO_OutStream; -class be_visitor_context; -class be_visitor; -class be_decl; - -class TAO_CodeGen -{ - // = TITLE - // TAO_CodeGen - // - // = DESCRIPTION - // Holds global parameters for the Back End and generates the C++ mapping - // -public: - - // define all the code generation states. - // The first letter C/S of the suffix stands for client/server-side - // The second letter H/I/S stands for header/inline/impl file. - // These are used to denote the state or the context of code - // generation we are in and serves to produce the right kind of - // visitor for us - - enum CG_STATE - { - // initial state - TAO_INITIAL, - - // rest of the state in alphabetical order of the types - - // emitting code for arguments of an operation. No distinction between - // headers, inlines, stubs. - TAO_ARGUMENT_ARGLIST_CH, // argument in op signature of - // ... client header - TAO_ARGUMENT_ARGLIST_OTHERS, // ... in other cases - TAO_ARGUMENT_PRE_INVOKE_CS, // preprocessing of argument - // variable before passing to - // do_static_call (in stub) - TAO_ARGUMENT_INVOKE_CS, // passing argument variable to do_static_call - TAO_ARGUMENT_POST_INVOKE_CS, // postprocessing of argument - // variable after do_static_call - TAO_ARGUMENT_VARDECL_SS, // declaration of argument - // variable in skeleton (server) - TAO_ARGUMENT_MARSHAL_SS, // passing argument node to the - TAO_ARGUMENT_DEMARSHAL_SS, // demarshal and marshal - // operations - TAO_ARGUMENT_POST_MARSHAL_SS, - TAO_ARGUMENT_PRE_UPCALL_SS, // preprocessing of argument - // variable before upcall - TAO_ARGUMENT_UPCALL_SS, // passing argument variable to upcall - TAO_ARGUMENT_COLLOCATED_UPCALL_SS, // passing argument - // variable to upcall - TAO_ARGUMENT_POST_UPCALL_SS, // postprocessing of argument - // variable after upcall - - // emitting code for attributes. - TAO_ATTRIBUTE_CH, // in client header - TAO_ATTRIBUTE_CS, // in client stubs - TAO_ATTRIBUTE_SH, // in server header - TAO_ATTRIBUTE_IH, // in implementation header - TAO_ATTRIBUTE_SS, // in server skeletons - TAO_ATTRIBUTE_IS, // in implementation skeletons - TAO_ATTRIBUTE_THRU_POA_COLLOCATED_SH, // in server header for collocated - TAO_ATTRIBUTE_THRU_POA_COLLOCATED_SS, // in server skeletons for - // collocated - TAO_ATTRIBUTE_DIRECT_COLLOCATED_SH, // in server header for collocated - TAO_ATTRIBUTE_DIRECT_COLLOCATED_SS, // in server skeletons for - // collocated - TAO_ATTRIBUTE_TIE_SH, - TAO_ATTRIBUTE_TIE_SI, - - // emitting code for array defn - TAO_ARRAY_CH, - TAO_ARRAY_CI, - TAO_ARRAY_CS, - TAO_ARRAY_ANY_OP_CH, - TAO_ARRAY_ANY_OP_CS, - TAO_ARRAY_CDR_OP_CH, - TAO_ARRAY_CDR_OP_CI, - TAO_ARRAY_CDR_OP_CS, - - // emitting code for the constants - TAO_CONSTANT_CH, // in client header - TAO_CONSTANT_CI, // XXXASG rm? - TAO_CONSTANT_CS, // in client stub - - // emitting code for enums - TAO_ENUM_CH, // in client header - TAO_ENUM_CS, // in client stubs - TAO_ENUM_ANY_OP_CH, - TAO_ENUM_ANY_OP_CS, - TAO_ENUM_CDR_OP_CH, - TAO_ENUM_CDR_OP_CI, - TAO_ENUM_CDR_OP_CS, - - // emitting code for exceptions - TAO_EXCEPTION_CH, - TAO_EXCEPTION_CTOR_CH, - TAO_EXCEPTION_CI, - TAO_EXCEPTION_CS, - TAO_EXCEPTION_CTOR_CS, - TAO_EXCEPTION_CTOR_ASSIGN_CS, - TAO_EXCEPTION_ANY_OP_CH, - TAO_EXCEPTION_ANY_OP_CS, - TAO_EXCEPTION_CDR_OP_CH, - TAO_EXCEPTION_CDR_OP_CI, - TAO_EXCEPTION_CDR_OP_CS, - - // emitting fields i.e., struct members - TAO_FIELD_CH, - TAO_FIELD_CI, - TAO_FIELD_CS, - TAO_FIELD_CDR_OP_CH, - TAO_FIELD_CDR_OP_CI, - TAO_FIELD_CDR_OP_CS, - TAO_FIELD_OBV_CH, - - // emitting code for the interface - TAO_INTERFACE_CH, - TAO_INTERFACE_CI, - TAO_INTERFACE_CS, - TAO_INTERFACE_SH, - TAO_INTERFACE_IH, - TAO_INTERFACE_SI, - TAO_INTERFACE_SS, - TAO_INTERFACE_IS, - TAO_INTERFACE_THRU_POA_COLLOCATED_SH, - TAO_INTERFACE_THRU_POA_COLLOCATED_SS, - TAO_INTERFACE_DIRECT_COLLOCATED_SH, - TAO_INTERFACE_DIRECT_COLLOCATED_SS, - TAO_INTERFACE_ANY_OP_CH, - TAO_INTERFACE_ANY_OP_CS, - TAO_INTERFACE_CDR_OP_CH, - TAO_INTERFACE_CDR_OP_CI, - TAO_INTERFACE_CDR_OP_CS, - TAO_INTERFACE_TIE_SH, - TAO_INTERFACE_TIE_SI, - - // emitting code for the interface forward declaration - TAO_INTERFACE_FWD_CH, - TAO_INTERFACE_FWD_CI, - TAO_INTERFACE_FWD_CS, - TAO_INTERFACE_FWD_CDR_OP_CH, - TAO_INTERFACE_FWD_CDR_OP_CI, - TAO_INTERFACE_FWD_CDR_OP_CS, - - // emitting code for the valuetype - TAO_VALUETYPE_CH, - TAO_VALUETYPE_CI, - TAO_VALUETYPE_CS, - TAO_VALUETYPE_SH, - TAO_VALUETYPE_IH, - TAO_VALUETYPE_SI, - TAO_VALUETYPE_SS, - TAO_VALUETYPE_IS, - TAO_VALUETYPE_OBV_CH, // OBV_ class - TAO_VALUETYPE_OBV_CI, - TAO_VALUETYPE_OBV_CS, - TAO_VALUETYPE_COLLOCATED_SH, - TAO_VALUETYPE_COLLOCATED_SS, - TAO_VALUETYPE_ANY_OP_CH, - TAO_VALUETYPE_ANY_OP_CS, - TAO_VALUETYPE_MARSHAL_CH, // the actual generation of CDR in header - TAO_VALUETYPE_MARSHAL_CS, // and the implementation, activated from: - TAO_VALUETYPE_CDR_OP_CH, - TAO_VALUETYPE_CDR_OP_CI, - TAO_VALUETYPE_CDR_OP_CS, - //TAO_VALUETYPE_TIE_SH, - //TAO_VALUETYPE_TIE_SI, - - // emitting code for the valuetype forward declaration - TAO_VALUETYPE_FWD_CH, - TAO_VALUETYPE_FWD_CI, - TAO_VALUETYPE_FWD_CS, - TAO_VALUETYPE_FWD_CDR_OP_CH, - TAO_VALUETYPE_FWD_CDR_OP_CI, - TAO_VALUETYPE_FWD_CDR_OP_CS, - - // emitting code for the module - TAO_MODULE_CH, - TAO_MODULE_CI, - TAO_MODULE_CS, - TAO_MODULE_SH, - TAO_MODULE_SI, - TAO_MODULE_IH, - TAO_MODULE_SS, - TAO_MODULE_IS, - TAO_MODULE_ANY_OP_CH, - TAO_MODULE_ANY_OP_CS, - TAO_MODULE_CDR_OP_CH, - TAO_MODULE_CDR_OP_CI, - TAO_MODULE_CDR_OP_CS, - TAO_MODULE_OBV_CH, // for OBV_ (cmp. POA_ namespace) - TAO_MODULE_OBV_CI, - TAO_MODULE_OBV_CS, - - // emitting code for an operation. - TAO_OPERATION_CH, // in client header - TAO_OPERATION_CS, // in client stubs - TAO_OPERATION_SH, // in server header - TAO_OPERATION_IH, // in implementation header - TAO_OPERATION_SS, // in server skeletons - TAO_OPERATION_IS, // in server skeletons - TAO_OPERATION_THRU_POA_COLLOCATED_SH, // in collocated server header - TAO_OPERATION_THRU_POA_COLLOCATED_SS, // in collocated server skel - TAO_OPERATION_DIRECT_COLLOCATED_SH, // in collocated server header - TAO_OPERATION_DIRECT_COLLOCATED_SS, // in collocated server skel - TAO_OPERATION_RETTYPE_CH, // return type in client header op - // signature - TAO_OPERATION_RETTYPE_IS, // return type in client header op - TAO_OPERATION_RETTYPE_OTHERS, // ... in other cases - TAO_OPERATION_ARGLIST_CH, // parameter list in op signature - // ... for client header - TAO_OPERATION_ARGLIST_SH, // ... for server header - TAO_OPERATION_ARGLIST_IH, // ... for implementation header - TAO_OPERATION_ARGLIST_IS, // ... for implementation header - TAO_OPERATION_ARGLIST_COLLOCATED_SH, // ... for collocated server - TAO_OPERATION_ARGLIST_OTHERS, // ... for all other cases - TAO_OPERATION_RETVAL_DECL_CS, // return value variable declaration - TAO_OPERATION_RETVAL_PRE_INVOKE_CS, // preprocessing for return value - // before sending over the wire - TAO_OPERATION_ARG_PRE_INVOKE_CS, // preprocessing of arguments - // before do_static_call - TAO_OPERATION_RETVAL_INVOKE_CS, // passing the return type - // variable to do_static_call - TAO_OPERATION_ARG_INVOKE_CS, // passing argument variable to do_static_call - TAO_OPERATION_RETVAL_POST_INVOKE_CS, // processing of return type - // after do_static_call - TAO_OPERATION_ARG_POST_INVOKE_CS, // processing of arg after do_static_call - TAO_OPERATION_RETVAL_RETURN_CS, // returning the return type - // variable - TAO_OPERATION_EXCEPTLIST_CS, // generating the exception list - TAO_OPERATION_RETVAL_DECL_SS, // return type decl in skeleton - TAO_OPERATION_ARG_DECL_SS, // argument decl in skeleton - TAO_OPERATION_RETVAL_DEMARSHAL_SS, // passing return type variable - TAO_OPERATION_ARG_DEMARSHAL_SS, // and argument variables to the - TAO_OPERATION_RETVAL_MARSHAL_SS, // marshal and demarshal operations - TAO_OPERATION_ARG_MARSHAL_SS, - TAO_OPERATION_ARG_POST_MARSHAL_SS, - TAO_OPERATION_RETVAL_ASSIGN_SS, // assigning to return type - // variable - TAO_OPERATION_ARG_PRE_UPCALL_SS, // pre upcall processing - TAO_OPERATION_ARG_UPCALL_SS, // variables to upcall - TAO_OPERATION_COLLOCATED_ARG_UPCALL_SS, // variables to upcall for - // collocated op - TAO_OPERATION_RETVAL_POST_UPCALL_SS, // post upcall processing for - TAO_OPERATION_ARG_POST_UPCALL_SS, // return and argument variables - TAO_OPERATION_RESULT_SS, // XXXASG rm? - TAO_OPERATION_TIE_SH, - TAO_OPERATION_TIE_SI, - - TAO_OBV_OPERATION_ARGLIST_CH, // parameter list in obv op signature - // ... for client header - TAO_OBV_OPERATION_ARGLIST_OBV_CH, // ... for OBV_ class - TAO_OBV_OPERATION_ARGLIST_SH, // ... for server header - TAO_OBV_OPERATION_ARGLIST_IH, // ... for implementation header - TAO_OBV_OPERATION_ARGLIST_IS, // ... for implementation header - TAO_OBV_OPERATION_ARGLIST_COLLOCATED_SH, // ... for collocated server - TAO_OBV_OPERATION_ARGLIST_OTHERS, // ... for all other cases - - // Emitting code for AMI. - TAO_OPERATION_AMI_CH, // AMI stub generation. - TAO_OPERATION_AMI_CS, // AMI stub generation. - TAO_OPERATION_AMI_ARGLIST_CH, // AMI stubs in client header - TAO_OPERATION_AMI_ARGLIST_CS, // AMI stubs in client cpp. - TAO_OPERATION_ARG_AMI, // AMI stub. - TAO_ARGUMENT_AMI, // Argument in AMI stub. - TAO_ARGUMENT_AMI_ARGLIST_CH, // Arg list in AMI stub. - TAO_ARGUMENT_AMI_ARGLIST_CS, // Arg list in AMI stub. - TAO_AMI_HANDLER_FWD_CH, // FWD decl for AMI handler. - TAO_AMI_HANDLER_FWD_CI, // FWD decl for AMI handler. - - TAO_AMI_HANDLER_SERVANT_CH, // POA_AMI_*_Handler. - TAO_AMI_HANDLER_SERVANT_CS, // POA_AMI_*_Handler. - - TAO_AMI_HANDLER_STUB_CH, // AMI_*_Handler class visitor. - - TAO_AMI_HANDLER_STUB_CS, // AMI_*_Handler class visitor. - - TAO_AMI_HANDLER_SERVANT_OPERATION_CH, // Operation in AMI_*_Handler. - TAO_AMI_HANDLER_STUB_OPERATION_CH, // Operation in POA_AMI_*_Handler. - TAO_AMI_HANDLER_OPERATION_ARGLIST_CH, - TAO_AMI_HANDLER_OPERATION_ARGLIST_CS, - TAO_ARGUMENT_AMI_HANDLER_ARGLIST_CH, - TAO_ARGUMENT_AMI_HANDLER_ARGLIST_CS, - TAO_ARGUMENT_ARGLIST_AMI_HANDLER, - TAO_AMI_HANDLER_OPERATION_RESULT_ARG, - - TAO_AMI_HANDLER_TYPECODE_DECL, // Typecode decl for the AMI_*_Handler. - - TAO_COLLOCATED_AMI_HANDLER_CH, // Collocated AMI_*_Handler class. - - TAO_COLLOCATED_AMI_HANDLER_OPERATION_CH, // Operation inside the collocated AMI handler. - -// @@ Michael TAO_AMI_HANDLER_ARGUMENT_INVOKE_CS, - -// @@ Michael TAO_AMI_HANDLER_OPERATION_ARG_INVOKE_CS, - - TAO_AMI_HANDLER_STUB_OPERATION_CS, - - TAO_AMI_HANDLER_TYPECODE_DEFN, // Typecode definition for AMI Handler class. - - TAO_AMI_OPERATION_ARG_INVOKE_CS, // Invoke arguments for AMI's sendc method. - - TAO_AMI_ARGUMENT_INVOKE_CS, - - TAO_AMI_HANDLER_SKELETON_CS, - - TAO_AMI_HANDLER_OPERATION_RETVAL_DECL_CS, // Result argument declaration. - - TAO_AMI_HANDLER_OPERATION_ARG_DECL_CS, // Argument declartion. - - TAO_AMI_HANDLER_ARGUMENT_VARDECL_CS, // State derived out of the above - - TAO_AMI_HANDLER_OPERATION_ARG_UPCALL_CS, // Argument list for the upcall - // (only out and inout arguments) - TAO_AMI_HANDLER_ARGUMENT_UPCALL_CS, // State derived out of the above - - TAO_AMI_HANDLER_OPERATION_RETVAL_MARSHAL_CS, // Marshalling the return value - - TAO_AMI_HANDLER_OPERATION_RETVAL_DEMARSHAL_CS, // Demarshalling the return value - - TAO_AMI_HANDLER_OPERATION_ARG_MARSHAL_CS, // Marshalling the inout and out arguments - - TAO_AMI_HANDLER_ARGUMENT_MARSHAL_CS, // State derived out of the above - - TAO_AMI_HANDLER_OPERATION_ARG_DEMARSHAL_CS, // Demarshalling the inout and out arguments - - TAO_AMI_HANDLER_ARGUMENT_DEMARSHAL_CS, // State derived out of the above - - // Emitting code for root. - TAO_ROOT_CH, - TAO_ROOT_CI, - TAO_ROOT_CS, - TAO_ROOT_SH, - TAO_ROOT_SI, - TAO_ROOT_SS, - TAO_ROOT_IH, - TAO_ROOT_IS, - TAO_ROOT_ANY_OP_CH, - TAO_ROOT_ANY_OP_CS, - TAO_ROOT_CDR_OP_CH, - TAO_ROOT_CDR_OP_CI, - TAO_ROOT_CDR_OP_CS, - - // emitting sequences - TAO_SEQUENCE_CH, - TAO_SEQUENCE_CI, - TAO_SEQUENCE_CS, - TAO_SEQUENCE_ANY_OP_CH, - TAO_SEQUENCE_ANY_OP_CS, - TAO_SEQUENCE_CDR_OP_CH, - TAO_SEQUENCE_CDR_OP_CI, - TAO_SEQUENCE_CDR_OP_CS, - - // emitting code for sequence base type - TAO_SEQUENCE_BASE_CH, - TAO_SEQUENCE_BASE_CI, - TAO_SEQUENCE_BASE_CS, - - // for special sequnce elements - TAO_SEQELEM_RETTYPE_CH, - TAO_SEQELEM_RETTYPE_CI, - TAO_SEQELEM_RETTYPE_CS, - - // for sequence buffer types - TAO_SEQUENCE_BUFFER_TYPE_CH, - TAO_SEQUENCE_BUFFER_TYPE_CI, - TAO_SEQUENCE_BUFFER_TYPE_CS, - - // emitting code for struct and its members - TAO_STRUCT_CH, - TAO_STRUCT_CI, - TAO_STRUCT_CS, - TAO_STRUCT_ANY_OP_CH, - TAO_STRUCT_ANY_OP_CS, - TAO_STRUCT_CDR_OP_CH, - TAO_STRUCT_CDR_OP_CI, - TAO_STRUCT_CDR_OP_CS, - - // emitting code for typedefs - TAO_TYPEDEF_CH, - TAO_TYPEDEF_CI, - TAO_TYPEDEF_CS, - TAO_TYPEDEF_ANY_OP_CH, - TAO_TYPEDEF_ANY_OP_CS, - TAO_TYPEDEF_CDR_OP_CH, - TAO_TYPEDEF_CDR_OP_CI, - TAO_TYPEDEF_CDR_OP_CS, - - // emitting code for unions - TAO_UNION_CH, - TAO_UNION_CI, - TAO_UNION_CS, - TAO_UNION_ANY_OP_CH, - TAO_UNION_ANY_OP_CS, - TAO_UNION_CDR_OP_CH, - TAO_UNION_CDR_OP_CI, - TAO_UNION_CDR_OP_CS, - - // emitting code for the discriminant - TAO_UNION_DISCTYPEDEFN_CH, - TAO_UNION_DISCTYPEDEFN_CI, - TAO_UNION_DISCTYPEDEFN_CS, - - // emitting code for the public members of the union - TAO_UNION_PUBLIC_CH, - TAO_UNION_PUBLIC_CI, - TAO_UNION_PUBLIC_CS, - TAO_UNION_PUBLIC_ASSIGN_CS, - TAO_UNION_PUBLIC_RESET_CS, - TAO_UNION_PUBLIC_ACCESS_CS, - - // emitting code for private members of the union - TAO_UNION_PRIVATE_CH, - - // emitting code for CDR operators for types defined inside unions - TAO_UNION_BRANCH_CDR_OP_CH, - TAO_UNION_BRANCH_CDR_OP_CI, - TAO_UNION_BRANCH_CDR_OP_CS, - - // emitting code for typecodes - TAO_TYPECODE_DECL, - TAO_TYPECODE_DEFN, - - // Always must be last - TAO_UNKNOWN - }; - - enum LOOKUP_STRATEGY - { - // various lookup strategies - TAO_LINEAR_SEARCH, - TAO_DYNAMIC_HASH, - TAO_PERFECT_HASH, - TAO_BINARY_SEARCH, - TAO_ACTIVE_DEMUX, - TAO_USER_DEFINED - }; - - enum CG_SUB_STATE - { - // sub states - - // these are for the CDR operators - TAO_CDR_INPUT, - TAO_CDR_OUTPUT, - TAO_CDR_SCOPE, - - // these are for typecode generation - TAO_TC_DEFN_TYPECODE, // top level typecode - TAO_TC_DEFN_TYPECODE_NESTED, // nested tc - - TAO_TC_DEFN_ENCAPSULATION, // encapsulation - TAO_AMI_HANDLER_TC_DEFN_ENCAPSULATION, // encapsulation - - TAO_TC_DEFN_SCOPE, // scope - TAO_TC_DEFN_TC_SIZE, // tc size computation - TAO_TC_DEFN_ENCAP_LEN, // encap size computation - TAO_TC_DEFN_SCOPE_LEN, // scope size computation - - TAO_AMI_HANDLER_TC_DEFN_TYPECODE, // For AMI Handler interface. - - // used to denote either error or don't care - TAO_SUB_STATE_UNKNOWN - }; - - TAO_CodeGen (void); - // Constructor - - ~TAO_CodeGen (void); - // destructor - - be_visitor *make_visitor (be_visitor_context *); - // Factory that makes the right visitor based on the contex. This - // delegates the task to its factory data member - - int gen_cplusplus_mapping (void); - // generate the C++ mapping for CORBA IDL - - int start_client_header (const char *fname); - // set the client header stream - - int start_client_inline (const char *fname); - // set the client inline stream - - int start_client_stubs (const char *fname); - // set the client stub stream - - int start_server_header (const char *fname); - // set the server header stream - - int start_implementation_header (const char *fname); - // set the implementation header stream - - int start_implementation_skeleton (const char *fname); - // set the implementation skeleton stream - - int start_server_template_header (const char *fname); - // set the server template header stream - - int start_server_inline (const char *fname); - // set the server inline stream - - int start_server_template_inline (const char *fname); - // set the server template inline stream - - int start_server_skeletons (const char *fname); - // set the server skeletons stream - - int start_server_template_skeletons (const char *fname); - // set the server template skeletons stream - - int end_client_header (void); - // generate code at the end such as the <<= and >>= operators alongwith the - // ending #endif statement - - int end_server_header (void); - // put a last #endif in the server header - - int end_implementation_header (const char *fname); - // put a last #endif in the server header - - int end_implementation_skeleton (const char *fname); - // put a last #endif in the server header - - int end_server_template_header (void); - // put a last #endif in the server template header - - int end_server_template_skeletons (void); - // put a last #endif in the server skeletons - - TAO_OutStream *client_header (void); - // get the client header stream - - TAO_OutStream *client_stubs (void); - // get the client stubs stream - - TAO_OutStream *client_inline (void); - // get the client inline stream - - TAO_OutStream *server_header (void); - // get the server header stream - - TAO_OutStream *implementation_header (void); - // get the implementation header stream - - TAO_OutStream *implementation_skeleton (void); - // get the implementation skeleton stream - - TAO_OutStream *server_template_header (void); - // get the server header template stream - - TAO_OutStream *server_skeletons (void); - // Get the server skeletons stream. - - TAO_OutStream *server_template_skeletons (void); - // get the server template skeletons stream - - TAO_OutStream *server_inline (void); - // get the server inline stream - - TAO_OutStream *server_template_inline (void); - // get the server template inline stream - - void gperf_input_stream (TAO_OutStream *gperf_input); - // Set the gperf input file stream. - - TAO_OutStream *gperf_input_stream (void); - // Retrieve the gperf input stream being used. - - void gperf_input_filename (char *filename); - // Set the gperf input file name. - - char *gperf_input_filename (void); - // Retrieve the gperf input file name being used. - // Name of the temp file used to collect the input for gperf - // program. This is needed coz I do ACE_OS::open on this when I need - // ACE_HANDLE for the file instead FILE*. - - void outstream (TAO_OutStream *os); - // set current out stream - - TAO_OutStream *outstream (void); - // retrieve current out stream being used - - void config_visitor_factory (void); - // set the visitor factory object. In this respect, this behaves as the - // "strategy" pattern in which the TAO_CodeGen object is the context and the - // visitor_factory is the strategy object - - void node (be_decl *n); - // pass info - - be_decl *node (void); - // retrieve passed info - - const char *upcase (const char *str); - // convert input string to all upcase - - void lookup_strategy (LOOKUP_STRATEGY s); - // Set the lookup strategy. - - TAO_CodeGen::LOOKUP_STRATEGY lookup_strategy (void) const; - // Return the enumerated value for the lookup strategy. Default is - // Dynamic Hashing. - -private: - TAO_OutStream *client_header_; - // client header stream - - TAO_OutStream *client_stubs_; - // client stub file stream - - TAO_OutStream *client_inline_; - // client side inline definitions - - TAO_OutStream *server_header_; - // server header stream - - TAO_OutStream *implementation_header_; - // implementation header stream - - TAO_OutStream *implementation_skeleton_; - // implementation skeleton stream - - TAO_OutStream *server_template_header_; - // server header template stream - - TAO_OutStream *server_skeletons_; - // server skeleton stream. - - TAO_OutStream *server_template_skeletons_; - // server skeleton template stream - - TAO_OutStream *server_inline_; - // server side inline file - - TAO_OutStream *server_template_inline_; - // server side template inline file. - - TAO_OutStream *gperf_input_stream_; - // TAO_OutStream to collect the input for gperf program. - - char *gperf_input_filename_; - // Name of the temp file used to collect the input for gperf - // program. This is needed coz I do ACE_OS::open on this when I need - // ACE_HANDLE for the file instead FILE*. - - TAO_OutStream *curr_os_; - // currently used out stream. - - be_decl *node_; - // save current node in this. - - TAO_Visitor_Factory *visitor_factory_; - // visitor factory object. - - LOOKUP_STRATEGY strategy_; - // The enumerated value indicating the lookup strategy. -}; - -typedef ACE_Singleton<TAO_CodeGen, ACE_SYNCH_RECURSIVE_MUTEX> TAO_CODEGEN; -// Singleton instance of the BE code generator - -extern TAO_CodeGen *tao_cg; // code generator instance which is used everywhere - -#endif /* if !defined */ diff --git a/TAO/TAO_IDL/be_include/be_constant.h b/TAO/TAO_IDL/be_include/be_constant.h deleted file mode 100644 index d4e7f5713b9..00000000000 --- a/TAO/TAO_IDL/be_include/be_constant.h +++ /dev/null @@ -1,63 +0,0 @@ -/* -*- c++ -*- */ -// $Id$ - -// ============================================================================ -// -// = LIBRARY -// TAO IDL -// -// = FILENAME -// be_constant.h -// -// = DESCRIPTION -// Extension of class AST_Constant that provides additional means for C++ -// mapping. -// -// = AUTHOR -// Copyright 1994-1995 by Sun Microsystems, Inc. -// and -// Aniruddha Gokhale -// -// ============================================================================ - -#ifndef BE_CONSTANT_H -#define BE_CONSTANT_H - -#include "be_decl.h" -#include "ast_constant.h" -#include "ast_expression.h" - -class UTL_StrList; -class be_visitor; - -/* - * BE_Constant - */ -class be_constant : public virtual AST_Constant , public virtual be_decl -{ -public: - // Operations - - be_constant (void); - // constructor - - be_constant (AST_Expression::ExprType et, - AST_Expression *v, - UTL_ScopedName *n, - UTL_StrList *p); - // constructor - - // = helper - const char *exprtype_to_string (void); - // returns the appropriate type - - // Visiting - virtual int accept (be_visitor *visitor); - - // Narrowing - DEF_NARROW_METHODS2 (be_constant, AST_Constant, be_decl); - DEF_NARROW_FROM_DECL (be_constant); - -}; - -#endif // if !defined diff --git a/TAO/TAO_IDL/be_include/be_decl.h b/TAO/TAO_IDL/be_include/be_decl.h deleted file mode 100644 index b257e6359f6..00000000000 --- a/TAO/TAO_IDL/be_include/be_decl.h +++ /dev/null @@ -1,210 +0,0 @@ -/* -*- c++ -*- */ -// $Id$ - -// ============================================================================ -// -// = LIBRARY -// TAO IDL -// -// = FILENAME -// be_decl.h -// -// = DESCRIPTION -// Extension of the AST_Decl class. -// -// = AUTHOR -// Copyright 1994-1995 by Sun Microsystems, Inc. -// and -// Aniruddha Gokhale -// -// ============================================================================ - -#ifndef TAO_BE_DECL_H -#define TAO_BE_DECL_H - -#include "ast_decl.h" - -class be_scope; -class be_visitor; - -/* - * BE_Decl - */ -class be_decl : public virtual AST_Decl -{ - // = TITLE - // be_decl - // = DESCRIPTION - // The back end extension of the AST_Decl class. Provides an abstract - // interface - // -public: - enum SIZE_TYPE - { - SIZE_UNKNOWN, - FIXED, - VARIABLE - }; - // indicates if we are fixed size or variable. Most useful for structs, - // unions, and arrays. - - // =Operations - - be_decl (void); - // Default constructor - - be_decl (AST_Decl::NodeType type, UTL_ScopedName *n, UTL_StrList *pragmas); - // constructor that sets the node type - - ~be_decl (void); - // destructor - - virtual void size_type (SIZE_TYPE); - // set the size type - - virtual SIZE_TYPE size_type (void); - // return our size type - - const char *fullname (void); - // return the stringified full name - - const char *ami_handler_fullname (void); - // return the stringified full name of the assosciated AMI reply handler. - - const char *flatname (void); - // return the flattened full scoped name. - - const char *ami_handler_flatname (void); - // return the flattened full scoped name of the assosciated AMI reply handler. - - char* compute_flatname (const char *prefix, const char *suffix); - // Both the arguments should be non-null!!!. Applies prefix and - // suffix to the local name and makes a flat name. - - const char *repoID (void); - // retrieve the repository ID. - - const char *ami_handler_repoID (void); - // retrieve the repository ID of the assosciated AMI reply handler. - - char *compute_repoID (const char *prefix, const char *suffix); - // Apply the prefix and suffix to the local name and compute the - // repoID. Both the parameters should be non-null. - - int compute_ami_handler_name (const char *name, - char *&ami_handler_name); - // Computes the name of the corresponding AMI handler out of a - // given name. The name might contain POA_ at the beginning - // and might possibly have many scope levels. - - const char* prefix (void); - // retrieve the repository ID prefix - - virtual idl_bool is_nested (void); - // determines if we are inside of a nested scope or not - - virtual be_scope *scope (void); - // return the scope created by this node (if one exists) - - // Visiting - virtual int accept (be_visitor *visitor); - - // boolean methods to test if code was already generated - idl_bool cli_hdr_gen (void); - idl_bool cli_stub_gen (void); - idl_bool cli_inline_gen (void); - idl_bool srv_hdr_gen (void); - idl_bool impl_hdr_gen (void); - idl_bool srv_skel_gen (void); - idl_bool impl_skel_gen (void); - idl_bool srv_inline_gen (void); - idl_bool cli_hdr_any_op_gen (void); - idl_bool cli_stub_any_op_gen (void); - idl_bool cli_hdr_cdr_op_gen (void); - idl_bool cli_stub_cdr_op_gen (void); - idl_bool cli_inline_cdr_op_gen (void); - - // set the flag indicating that code generation is done - void cli_hdr_gen (idl_bool); - void cli_stub_gen (idl_bool); - void cli_inline_gen (idl_bool); - void srv_hdr_gen (idl_bool); - void impl_hdr_gen (idl_bool); - void srv_skel_gen (idl_bool); - void impl_skel_gen (idl_bool); - void srv_inline_gen (idl_bool); - void cli_hdr_any_op_gen (idl_bool); - void cli_stub_any_op_gen (idl_bool); - void cli_hdr_cdr_op_gen (idl_bool); - void cli_stub_cdr_op_gen (idl_bool); - void cli_inline_cdr_op_gen (idl_bool); - - idl_bool is_child (be_decl *node); - // am I a direct child of node? - - // Narrowing - DEF_NARROW_METHODS1 (be_decl, AST_Decl); - DEF_NARROW_FROM_DECL (be_decl); - -protected: - // =helper - - virtual int compute_size_type (void); - // determine our size type and set it if it is unknown - - virtual void compute_fullname (void); - // computes the fully scoped name - - virtual void compute_flatname (void); - // compute the flattened fully scoped name - - - virtual void compute_repoID (void); - // computes the repoID - - virtual void compute_prefix (void); - // computes the prefix for the repoID - - // variables that indicate if the code generation for that node is already - // been done. This way we avoid regenerating same code. - idl_bool cli_hdr_gen_; - idl_bool cli_stub_gen_; - idl_bool cli_inline_gen_; - idl_bool srv_hdr_gen_; - idl_bool impl_hdr_gen_; - idl_bool srv_skel_gen_; - idl_bool impl_skel_gen_; - idl_bool srv_inline_gen_; - idl_bool cli_hdr_any_op_gen_; - idl_bool cli_stub_any_op_gen_; - idl_bool cli_hdr_cdr_op_gen_; - idl_bool cli_stub_cdr_op_gen_; - idl_bool cli_inline_cdr_op_gen_; - - char *fullname_; - // our full scoped name - - char *ami_handler_fullname_; - // our full scoped name of the associated AMI reply handler - - char *flatname_; - // flattened fully scoped name - - char *ami_handler_flatname_; - // flattened fully scoped name of the associated AMI reply handler - - char *repoID_; - // repository ID - - char *ami_handler_repoID_; - // repository ID of the associated AMI reply handler - - char *prefix_; - // The repository ID prefix - - SIZE_TYPE size_type_; - // whether we are fixed or variable size (by default fixed) - -}; - -#endif // if !defined diff --git a/TAO/TAO_IDL/be_include/be_enum.h b/TAO/TAO_IDL/be_include/be_enum.h deleted file mode 100644 index 200a08f2978..00000000000 --- a/TAO/TAO_IDL/be_include/be_enum.h +++ /dev/null @@ -1,73 +0,0 @@ -/* -*- c++ -*- */ -// $Id$ - -// ============================================================================ -// -// = LIBRARY -// TAO IDL -// -// = FILENAME -// be_enum.h -// -// = DESCRIPTION -// Extension of class AST_Enum that provides additional means for C++ -// mapping. -// -// = AUTHOR -// Copyright 1994-1995 by Sun Microsystems, Inc. -// and -// Aniruddha Gokhale -// -// ============================================================================ - -#ifndef BE_ENUM_H -#define BE_ENUM_H - -#include "be_scope.h" -#include "be_type.h" -#include "ast_enum.h" - -class UTL_StrList; -class be_visitor; - -/* - * BE_Enum - */ -class be_enum : public virtual AST_Enum, - public virtual be_scope, - public virtual be_type -{ -public: - // Operations - - be_enum (void); - // default constructor - - be_enum (UTL_ScopedName *n, UTL_StrList *p); - // constructor - - virtual int member_count (void); - // return the count of members - - // Convert a numeric value to the enum's string name for it. - virtual UTL_ScopedName *value_to_name (const unsigned long v); - - // Visiting - virtual int accept (be_visitor *visitor); - - // Narrowing - DEF_NARROW_METHODS3 (be_enum, AST_Enum, be_scope, be_type); - DEF_NARROW_FROM_DECL (be_enum); - DEF_NARROW_FROM_SCOPE (be_enum); - -private: - //=helper - - int compute_member_count (void); - // count the number of members - - int member_count_; - // number of members -}; - -#endif diff --git a/TAO/TAO_IDL/be_include/be_enum_val.h b/TAO/TAO_IDL/be_include/be_enum_val.h deleted file mode 100644 index 1c3c571b7be..00000000000 --- a/TAO/TAO_IDL/be_include/be_enum_val.h +++ /dev/null @@ -1,60 +0,0 @@ -/* -*- c++ -*- */ -// $Id$ - -// ============================================================================ -// -// = LIBRARY -// TAO IDL -// -// = FILENAME -// be_enum_val.h -// -// = DESCRIPTION -// Extension of class AST_EnumVal that provides additional means for C++ -// mapping. -// -// = AUTHOR -// Copyright 1994-1995 by Sun Microsystems, Inc. -// and -// Aniruddha Gokhale -// -// ============================================================================ - -#ifndef BE_ENUM_VAL_H -#define BE_ENUM_VAL_H - -#include "be_decl.h" -#include "ast_enum_val.h" - -class UTL_StrList; -class be_visitor; - -/* - * BE_EnumVal - */ -class be_enum_val : public virtual AST_EnumVal, - public virtual be_decl -{ -public: - // =Operations - - be_enum_val (void); - // default constructor - - be_enum_val (unsigned long v, UTL_ScopedName *n, UTL_StrList *p); - // constructor - - // Visiting - virtual int accept (be_visitor *visitor); - - // Narrowing - DEF_NARROW_METHODS2 (be_enum_val, AST_EnumVal, be_decl); - DEF_NARROW_FROM_DECL (be_enum_val); - -protected: - virtual int compute_size_type (void); - // Trivial implementation, but it avoids a switch statement - // in be_decl::size_type() -}; - -#endif diff --git a/TAO/TAO_IDL/be_include/be_exception.h b/TAO/TAO_IDL/be_include/be_exception.h deleted file mode 100644 index 40aeb8b6a11..00000000000 --- a/TAO/TAO_IDL/be_include/be_exception.h +++ /dev/null @@ -1,55 +0,0 @@ -// $Id$ - -#ifndef BE_EXCEPTION_H -#define BE_EXCEPTION_H - -#include "be_scope.h" -#include "be_type.h" -#include "ast_exception.h" - -class UTL_StrList; -class be_visitor; - -/* - * BE_Exception - */ -class be_exception : public virtual AST_Exception, - public virtual be_scope, - public virtual be_type - -{ -public: - // Operations - be_exception (void); - // default constructor - - be_exception (UTL_ScopedName *n, UTL_StrList *p); - // constructor - - // =code generation - - virtual int member_count (void); - // return the count of members - - virtual idl_bool in_recursion (be_type *node = 0); - // check if we or the parameter node is in recursion - - // Visiting - virtual int accept (be_visitor *visitor); - - // Narrowing - DEF_NARROW_METHODS3 (be_exception, AST_Exception, be_scope, be_type); - DEF_NARROW_FROM_DECL (be_exception); - DEF_NARROW_FROM_SCOPE (be_exception); - -private: - //=helper - - int compute_member_count (void); - // count the number of members - - int member_count_; - // number of members -}; - -#endif // end of if !defined (...) diff --git a/TAO/TAO_IDL/be_include/be_expression.h b/TAO/TAO_IDL/be_include/be_expression.h deleted file mode 100644 index 432d21b1161..00000000000 --- a/TAO/TAO_IDL/be_include/be_expression.h +++ /dev/null @@ -1,52 +0,0 @@ -// $Id$ - -// ============================================================================ -// -// = LIBRARY -// TAO IDL -// -// = FILENAME -// be_expression.h -// -// = DESCRIPTION -// Extension of class AST_Expression that provides additional means for C++ -// mapping. -// -// = AUTHOR -// Copyright 1994-1995 by Sun Microsystems, Inc. -// and -// Aniruddha Gokhale -// -// ============================================================================ - -#ifndef BE_EXPRESSION_H -#define BE_EXPRESSION_H - -#include "ast_expression.h" - -class be_visitor; - -/* - * BE_Expression - */ -class be_expression : public virtual AST_Expression -{ -public: - // Operations - be_expression (UTL_ScopedName *n); - be_expression (AST_Expression *b, AST_Expression::ExprType t); - be_expression (AST_Expression::ExprComb c, - AST_Expression *v1, - AST_Expression *v2); - be_expression (long l); - be_expression (long l, AST_Expression::ExprType t); - be_expression (unsigned long l); - be_expression (UTL_String *s); - be_expression (char c); - be_expression (double d); - - // Visiting - virtual int accept (be_visitor *visitor); -}; - -#endif diff --git a/TAO/TAO_IDL/be_include/be_field.h b/TAO/TAO_IDL/be_include/be_field.h deleted file mode 100644 index 315b4758575..00000000000 --- a/TAO/TAO_IDL/be_include/be_field.h +++ /dev/null @@ -1,59 +0,0 @@ -// $Id$ - -// ============================================================================ -// -// = LIBRARY -// TAO IDL -// -// = FILENAME -// be_field.h -// -// = DESCRIPTION -// Extension of class AST_Field that provides additional means for C++ -// mapping. -// -// = AUTHOR -// Copyright 1994-1995 by Sun Microsystems, Inc. -// and -// Aniruddha Gokhale -// -// ============================================================================ - -#ifndef BE_FIELD_H -#define BE_FIELD_H - -#include "be_decl.h" -#include "ast_field.h" - -class UTL_StrList; -class be_visitor; - -/* - * BE_Field - */ -class be_field : public virtual AST_Field, - public virtual be_decl -{ -public: - // =Operations - - be_field (void); - // default constructor - - be_field (AST_Type *ft, UTL_ScopedName *n, UTL_StrList *p, - Visibility vis = vis_NA); - // constructor - - // Visiting - virtual int accept (be_visitor *visitor); - - // Narrowing - DEF_NARROW_METHODS2 (be_field, AST_Field, be_decl); - DEF_NARROW_FROM_DECL (be_field); - -protected: - virtual int compute_size_type (void); - // compute the size type if it is unknown -}; - -#endif diff --git a/TAO/TAO_IDL/be_include/be_generator.h b/TAO/TAO_IDL/be_include/be_generator.h deleted file mode 100644 index 380dc5e6a08..00000000000 --- a/TAO/TAO_IDL/be_include/be_generator.h +++ /dev/null @@ -1,174 +0,0 @@ -// $Id$ - -/* - -COPYRIGHT - -Copyright 1992, 1993, 1994 Sun Microsystems, Inc. Printed in the United -States of America. All Rights Reserved. - -This product is protected by copyright and distributed under the following -license restricting its use. - -The Interface Definition Language Compiler Front End (CFE) is made -available for your use provided that you include this license and copyright -notice on all media and documentation and the software program in which -this product is incorporated in whole or part. You may copy and extend -functionality (but may not remove functionality) of the Interface -Definition Language CFE without charge, but you are not authorized to -license or distribute it to anyone else except as part of a product or -program developed by you or with the express written consent of Sun -Microsystems, Inc. ("Sun"). - -The names of Sun Microsystems, Inc. and any of its subsidiaries or -affiliates may not be used in advertising or publicity pertaining to -distribution of Interface Definition Language CFE as permitted herein. - -This license is effective until terminated by Sun for failure to comply -with this license. Upon termination, you shall destroy or return all code -and documentation for the Interface Definition Language CFE. - -INTERFACE DEFINITION LANGUAGE CFE IS PROVIDED AS IS WITH NO WARRANTIES OF -ANY KIND INCLUDING THE WARRANTIES OF DESIGN, MERCHANTIBILITY AND FITNESS -FOR A PARTICULAR PURPOSE, NONINFRINGEMENT, OR ARISING FROM A COURSE OF -DEALING, USAGE OR TRADE PRACTICE. - -INTERFACE DEFINITION LANGUAGE CFE IS PROVIDED WITH NO SUPPORT AND WITHOUT -ANY OBLIGATION ON THE PART OF Sun OR ANY OF ITS SUBSIDIARIES OR AFFILIATES -TO ASSIST IN ITS USE, CORRECTION, MODIFICATION OR ENHANCEMENT. - -SUN OR ANY OF ITS SUBSIDIARIES OR AFFILIATES SHALL HAVE NO LIABILITY WITH -RESPECT TO THE INFRINGEMENT OF COPYRIGHTS, TRADE SECRETS OR ANY PATENTS BY -INTERFACE DEFINITION LANGUAGE CFE OR ANY PART THEREOF. - -IN NO EVENT WILL SUN OR ANY OF ITS SUBSIDIARIES OR AFFILIATES BE LIABLE FOR -ANY LOST REVENUE OR PROFITS OR OTHER SPECIAL, INDIRECT AND CONSEQUENTIAL -DAMAGES, EVEN IF SUN HAS BEEN ADVISED OF THE POSSIBILITY OF SUCH DAMAGES. - -Use, duplication, or disclosure by the government is subject to -restrictions as set forth in subparagraph (c)(1)(ii) of the Rights in -Technical Data and Computer Software clause at DFARS 252.227-7013 and FAR -52.227-19. - -Sun, Sun Microsystems and the Sun logo are trademarks or registered -trademarks of Sun Microsystems, Inc. - -SunSoft, Inc. -2550 Garcia Avenue -Mountain View, California 94043 - -NOTE: - -SunOS, SunSoft, Sun, Solaris, Sun Microsystems or the Sun logo are -trademarks or registered trademarks of Sun Microsystems, Inc. - - */ - -#ifndef _BE_GENERATOR_BE_GENERATOR_HH -#define _BE_GENERATOR_BE_GENERATOR_HH - -// be_generator.hh -// -// Defines BE class for generator -// -// This defines the same protocol as the AST_Generator class but actually -// is implemented to create nodes of AST classes subclassed in this BE - -/* -** DEPENDENCIES: AST_Generator.h -** -** USE: Included from be.h -*/ - -class be_generator : public AST_Generator { -public: - virtual AST_Root *create_root(UTL_ScopedName *n, - UTL_StrList *p); - // Create a node representing a module which is the root of an AST made up of - // BE nodes - - // Operations - virtual AST_PredefinedType - *create_predefined_type(AST_PredefinedType::PredefinedType t, - UTL_ScopedName *n, - UTL_StrList *p); - - virtual AST_Module *create_module(UTL_ScopedName *n, UTL_StrList *p); - virtual AST_Interface *create_interface(UTL_ScopedName *n, - AST_Interface **ih, - long nih, - UTL_StrList *p); - virtual AST_InterfaceFwd *create_interface_fwd(UTL_ScopedName *n, - UTL_StrList *p); - virtual AST_Interface *create_valuetype(UTL_ScopedName *n, - AST_Interface **ih, - long nih, - UTL_StrList *p); - virtual AST_InterfaceFwd *create_valuetype_fwd(UTL_ScopedName *n, - UTL_StrList *p); - virtual AST_Exception *create_exception(UTL_ScopedName *n, UTL_StrList *p); - virtual AST_Structure *create_structure(UTL_ScopedName *n, UTL_StrList *p); - virtual AST_Enum *create_enum(UTL_ScopedName *n, UTL_StrList *p); - virtual AST_Operation *create_operation(AST_Type *rt, - AST_Operation::Flags fl, - UTL_ScopedName *n, - UTL_StrList *p); - virtual AST_Field *create_field(AST_Type *ft, UTL_ScopedName *n, - UTL_StrList *p, - AST_Field::Visibility vis = AST_Field::vis_NA); - - virtual AST_Argument *create_argument(AST_Argument::Direction d, - AST_Type *ft, - UTL_ScopedName *n, - UTL_StrList *p); - virtual AST_Attribute *create_attribute(idl_bool ro, - AST_Type *ft, - UTL_ScopedName *n, - UTL_StrList *p); - virtual AST_Union *create_union(AST_ConcreteType *dt, - UTL_ScopedName *n, - UTL_StrList *p); - virtual AST_UnionBranch *create_union_branch(UTL_LabelList *ll, - AST_Type *ft, - UTL_ScopedName *n, - UTL_StrList *p); - virtual AST_UnionLabel *create_union_label(AST_UnionLabel::UnionLabel ul, - AST_Expression *lv); - virtual AST_Constant *create_constant(AST_Expression::ExprType et, - AST_Expression *ev, - UTL_ScopedName *n, - UTL_StrList *p); - - virtual AST_Expression *create_expr(UTL_ScopedName *n); - virtual AST_Expression *create_expr(AST_Expression *v, - AST_Expression::ExprType t); - virtual AST_Expression *create_expr(AST_Expression::ExprComb c, - AST_Expression *v1, - AST_Expression *v2); - virtual AST_Expression *create_expr(long v); - virtual AST_Expression *create_expr(long v, - AST_Expression::ExprType t); - virtual AST_Expression *create_expr(unsigned long v); - virtual AST_Expression *create_expr(UTL_String *s); - virtual AST_Expression *create_expr(char c); - virtual AST_Expression *create_expr(double d); - - virtual AST_EnumVal *create_enum_val(unsigned long v, - UTL_ScopedName *n, - UTL_StrList *p); - virtual AST_Array *create_array(UTL_ScopedName *n, - unsigned long ndims, - UTL_ExprList *dims); - virtual AST_Sequence *create_sequence(AST_Expression *v, AST_Type *bt); - virtual AST_String *create_string(AST_Expression *v); - virtual AST_String *create_wstring(AST_Expression *v); - virtual AST_Typedef *create_typedef(AST_Type *bt, - UTL_ScopedName *n, - UTL_StrList *p); - // Create a node representing a native - virtual AST_Native *create_native (UTL_ScopedName *n, - UTL_StrList *p); - -}; - -#endif // _BE_GENERATOR_BE_GENERATOR_HH diff --git a/TAO/TAO_IDL/be_include/be_helper.h b/TAO/TAO_IDL/be_include/be_helper.h deleted file mode 100644 index c931b758f97..00000000000 --- a/TAO/TAO_IDL/be_include/be_helper.h +++ /dev/null @@ -1,211 +0,0 @@ -/* -*- c++ -*- */ -// $Id$ - -// ============================================================================ -// -// = LIBRARY -// TAO IDL -// -// = FILENAME -// be_helper.h -// -// = DESCRIPTION -// Defines the abstract class for outputting the C++ mapping. This is a -// helper class to the singleton TAO_CodeGen class -// -// = AUTHOR -// Aniruddha Gokhale -// -// Improvements by Carlos O'Ryan -// -// ============================================================================ - -#ifndef TAO_BE_OUTSTRM_H -#define TAO_BE_OUTSTRM_H - -// a dummy structure to inform TAO_OutStream's << operator to put a newline -// and use the current indentation for the succeeding line -struct TAO_NL -{ -public: - TAO_NL (void); -}; - -struct TAO_INDENT -{ - // = TITLE - // Operates like a manipulator, increasing the indentation level. - // - // = DESCRIPTION - // Increase the indentation level, if the "do_now" parameter is - // not zero then the <indent> method is called on the stream. - // - TAO_INDENT (int do_now = 0); - - const int do_now_; -}; - -struct TAO_UNINDENT -{ - // = TITLE - // Operates like a manipulator, decreasing the indentation level. - // - // = DESCRIPTION - // Decrease the indentation level, if the "do_now" parameter is - // not zero then the <indent> method is called on the stream. - // - TAO_UNINDENT (int do_now = 0); - - const int do_now_; -}; - -extern const TAO_NL be_nl; -extern const TAO_INDENT be_idt; -extern const TAO_INDENT be_idt_nl; -extern const TAO_UNINDENT be_uidt; -extern const TAO_UNINDENT be_uidt_nl; - -class TAO_OutStream -{ - // =TITLE - // TAO_OutStream - // - // =DESCRIPTION - // Defines an interface by which the backend code generator can - // print its output to the underlying I/O handle. This is a - // helper class that will be used by the TAO_CodeGen - // class. However, this is an abstract class and classes that - // understand specific front ends must derive from this class. -public: - - // Enumerated type to indicate the stream type - enum STREAM_TYPE - { - TAO_CLI_HDR, - TAO_CLI_INL, - TAO_CLI_IMPL, - TAO_SVR_HDR, - TAO_IMPL_HDR, - TAO_IMPL_SKEL, - TAO_SVR_TMPL_HDR, - TAO_SVR_INL, - TAO_SVR_TMPL_INL, - TAO_SVR_IMPL, - TAO_SVR_TMPL_IMPL, - TAO_GPERF_INPUT - }; - - TAO_OutStream (void); - // constructor. - - virtual ~TAO_OutStream (void); - // destructor. - - int open (const char *fname, - TAO_OutStream::STREAM_TYPE st=TAO_OutStream::TAO_CLI_HDR); - // open the underlying low-level handle for output. - - void stream_type (TAO_OutStream::STREAM_TYPE); - // set the stream type - - TAO_OutStream::STREAM_TYPE stream_type (void); - // return the stream type - - FILE *file (void); - // Return the underlying lowlevel file pointer. - - int incr_indent (unsigned short flag=1); - // increment the indentation level and by default actually indent the output - // accordingly - - int decr_indent (unsigned short flag=1); - // decrease the indentation level and by default actually indent the output - // accordingly - - int reset (void); - // reset indentation level to 0 - - int indent (void); - // indent starting next line - - int nl (void); - // put a newline and indent on the next line - - int print (const char *format, ...); - // "printf" style variable argument print - - int gen_ifdef_macro (const char *flatname, const char *suffix=0); - // generate a #if !defined, #defined macro - - int gen_endif (void); - // generate an endif statement - - int gen_ifdef_AHETI (void); - // generate the ACE_HAS_EXPLICIT... ifdef - - int gen_else_AHETI (void); - // generate the ACE_HAS_EXPLICIT... else - - int gen_endif_AHETI (void); - // generate the ACE_HAS_EXPLICIT... endif - - // =overloaded operators - - TAO_OutStream &operator<< (const char *str); - // output the char string and return a reference to ourselves - - TAO_OutStream &operator<< (const ACE_CDR::UShort num); - // output the integer and return a reference to ourselves - - TAO_OutStream &operator<< (const ACE_CDR::Short num); - // output the integer and return a reference to ourselves - - TAO_OutStream &operator<< (const ACE_CDR::ULong num); - // output the integer and return a reference to ourselves - - TAO_OutStream &operator<< (const ACE_CDR::Long num); - // output the integer and return a reference to ourselves - - TAO_OutStream &operator<< (const unsigned long num); - // output the integer and return a reference to ourselves - - TAO_OutStream &operator<< (const long num); - // output the integer and return a reference to ourselves - - // = MANIPULATORS - - TAO_OutStream &operator<< (const TAO_NL& nl); - TAO_OutStream &operator<< (const TAO_INDENT& i); - TAO_OutStream &operator<< (const TAO_UNINDENT& i); - - // The following will be provided by specialized classes - - TAO_OutStream &operator<< (Identifier *id); - // output an Identifier node - - TAO_OutStream &operator<< (UTL_IdList *idl); - // output a scoped name - - TAO_OutStream &operator<< (AST_Expression *expr); - // output an AST_Expression node - - // provided by specialized classes - virtual TAO_OutStream &print (Identifier *id) = 0; - - virtual TAO_OutStream &print (UTL_IdList *idl) = 0; - - virtual TAO_OutStream &print (AST_Expression *idl) = 0; - -protected: - FILE *fp_; - // the underlying low-level I/O handle - - TAO_OutStream::STREAM_TYPE st_; - // stream type - - int indent_level_; - // indentation level - -}; - -#endif // if !defined diff --git a/TAO/TAO_IDL/be_include/be_interface.h b/TAO/TAO_IDL/be_include/be_interface.h deleted file mode 100644 index d9b7d2c669a..00000000000 --- a/TAO/TAO_IDL/be_include/be_interface.h +++ /dev/null @@ -1,288 +0,0 @@ -/* -*- c++ -*- */ -// $Id$ - -// ============================================================================ -// -// = LIBRARY -// TAO IDL -// -// = FILENAME -// be_interface.h -// -// = DESCRIPTION -// Extension of class AST_Interface that provides additional means for C++ -// mapping of an interface. -// -// = AUTHOR -// Copyright 1994-1995 by Sun Microsystems, Inc. -// and -// Aniruddha Gokhale -// -// ============================================================================ - -#ifndef TAO_BE_INTERFACE_H -#define TAO_BE_INTERFACE_H - -#include "be_scope.h" -#include "be_type.h" -#include "ast_interface.h" - -class TAO_OutStream; - -/* - * BE_Interface - */ -class be_interface : public virtual AST_Interface, - public virtual be_scope, - public virtual be_type -{ - // = TITLE - // The back end extension of the AST_Interface class - // - // = DESCRIPTION - // -public: - enum { - THRU_POA = 0, - DIRECT = 1 - }; - // Collocated stubs type value. - - // used to pass functions to the template method - typedef int (*tao_code_emitter) (be_interface *, be_interface *, TAO_OutStream *); - - // Operations - be_interface (void); - // Default constructor - - be_interface (UTL_ScopedName *n, AST_Interface **ih, long nih, - UTL_StrList *p); - // Constructor that sets its scoped name <n>, a list of inherited interfaces - // <ih>, the number of inherited interfaces <nih>, and any prgmas <p> - - ~be_interface (void); - // dtor - - virtual void gen_def_ctors (TAO_OutStream* os); - //call the default constructors of all the base classes - - virtual void gen_copy_ctors (TAO_OutStream* os); - //call the copy constructors of all the base classes - - virtual int gen_var_defn (char *interface_name = 0); - // generate the var definition. If <interface_name> is not 0, generate - // the var defn for that name. Otherwise, do it for the interface you - // are visiting (this). - - virtual int gen_var_impl (char *interface_local_name = 0, - char *interface_full_name = 0); - // Generate the implementation for the _var class. - // If any one of the argument is 0, then use the name in <this>, - // otherwise use the name given. Just making the class more useful. - - virtual int gen_out_defn (char *interface_name = 0); - // Generate the out class definition. If <interface_name> is not 0, - // generate the out defn for that name. Otherwise, do it for the - // interface you are visiting (this). - - virtual int gen_out_impl (char *interface_local_name = 0, - char *interface_full_name = 0); - // Generate the out class implementation. - // If any one of the argument is 0, then use the name giin this - // node, else use the arguments. - - const char *full_skel_name (void); - // Retrieve the fully scoped skel class name. - - const char *ami_handler_full_skel_name (void); - // Retrieve the fully scoped skel AMI handler class name - - // - // Each interface (to fix names "T") also defines two help classes, - // the "collocated" class inherits from T, but delegates on the - // skeleton for T (usually POA_T or POA_ModuleName::T), in other - // words it is a Bridge from T to its implementation. - // The class is nested inside the skeleton class. - // - // The "stub" is a class defined on the client scope, it actually - // defines the stubs (all operations in T are pure virtual). - // @@ TODO currently the stub class is not implemented. - // - const char *full_coll_name (int); - // Retrieve the fully qualified collocated class name - - const char *ami_handler_full_coll_name (void); - // Retrieve the fully qualified collocated AMI handler class name - - const char *local_coll_name (int) const; - // Retrieve the fully qualified collocated class name. - - const char *ami_handler_local_coll_name (void); - // Retrieve the fully qualified collocated AMI handler class name. - - const char *ami_handler_local_name (void); - // Retrieve the local name of the AMI handler - - int compute_coll_names (const char *local_name, - char *&coll_local_name, - char *&coll_full_name); - // Generate collocated local and full names for the arbitrary local - // name under the scope of this interface. Usefull to generate AMI - // Handlers. - - virtual int traverse_inheritance_graph (tao_code_emitter gen, - TAO_OutStream *os); - // template method using breadth first traversal of inheritance graph - - const char *relative_skel_name (const char *other_class_name); - // relative skeleton name - - int in_mult_inheritance (void); - // am I in some form of multiple inheritance - // -1 => error - // 0 => no - // 1 => yes - - void in_mult_inheritance (int mi); - // set a new value - - // Visiting - virtual int accept (be_visitor *visitor); - - // Narrowing - DEF_NARROW_METHODS3 (be_interface, AST_Interface, be_scope, be_type); - DEF_NARROW_FROM_DECL (be_interface); - DEF_NARROW_FROM_SCOPE (be_interface); - - static int is_a_helper (be_interface *, be_interface *, TAO_OutStream *os); - // helper method passed to the template method that generates code for the - // is_a method - - static int downcast_helper (be_interface *, - be_interface *, - TAO_OutStream *os); - // helper method passed to the template method that generates code for the - // downcast. - - static int gen_optable_helper (be_interface *, - be_interface *, - TAO_OutStream *os); - // helper method passed to the template method to generate code for the - // operation table - - static int gen_skel_helper (be_interface *, - be_interface *, - TAO_OutStream *os); - // helper method passed to the template method to generate code for the - // skeletons in the inline file - - static int copy_ctor_helper (be_interface *, - be_interface *, - TAO_OutStream *os); - // helper method passed to the template method to invoke ctors of all the - // base classes. - - static int in_mult_inheritance_helper (be_interface *, - be_interface *, - TAO_OutStream *os); - // helper method to determine if the interface node is involved in some kind - // of multiple inheritance or not. Required on the skeleton side - - static int gen_def_ctors_helper (be_interface* node, - be_interface* base, - TAO_OutStream *os); - - //helper method to generate a call to the default constructors of all the base classes - - static int gen_copy_ctors_helper (be_interface* node, - be_interface* base, - TAO_OutStream *os); - - //helper method to generate a call to the copy constructors of all the base classes - - - void compute_fullskelname (void); - void compute_fullskelname (char *&skelname, const char * prefix); - // compute the fully scoped skel class name - - int gen_operation_table (void); - // generate the operation table including entries for inherited interfaces - - static const char *relative_name (const char* our_name, - const char *other_class_name); - // relative name for collocated class. - - int gen_optable_entries (be_interface *); - // generate the operation table entries. - - void compute_coll_name (int); - // compute the fully qualified collocated class name. - -private: - void gen_gperf_input_header (TAO_OutStream *ss); - // Output the header (type declaration and %%) to the gperf's input - // file. - - int gen_gperf_things (void); - // Run GPERF and get the correct lookup and other operations - // depending on which strategy we are using. Returns 0 on sucess, -1 - // on error. - - void gen_perfect_hash_class_definition (void); - // Outputs the class definition for the perfect hashing. This class - // will inherit from the TAO_Perfect_Hash_OpTable. - - void gen_binary_search_class_definition (void); - // Outputs the class definition for the binary search . This class - // will inherit from the TAO_Binary_Search_OpTable. - - void gen_linear_search_class_definition (void); - // Outputs the class defintion for the linear search. This class - // will inherit from the TAO_Linear_Search. - - int gen_gperf_lookup_methods (void); - // This calls the GPERF program and gets the correct operation - // lookup methods for the current OpLookup strategy. - - void gen_perfect_hash_instance (void); - // Create an instance of this perfect hash table. - - void gen_binary_search_instance (void); - // Create an instance of the binary search optable. - - void gen_linear_search_instance (void); - // Create an instance of the linear search optable. - - char *full_skel_name_; - // Fully scoped skeleton name. - - char *ami_handler_full_skel_name_; - // Fully scoped AMI Handler skeleton name - - int skel_count_; - // Number of static skeletons in the operation table. - - char *full_coll_name_; - // Full collocated name - - int cached_coll_name_type_; - // Record the type of cached collocated class prefix. - - char *ami_handler_full_coll_name_; - // Full collocated name of the AMI handler - - char *local_coll_name_; - // Local collocated name - - char *ami_handler_local_coll_name_; - // Local collocated name of the AMI handler - - char *ami_handler_local_name_; - // Local name of the AMI Handler - - int in_mult_inheritance_; - // am I directly or indirectly involved in a multiple inheritance. If the - // value is -1 => not computed yet. -}; - -#endif // if !defined diff --git a/TAO/TAO_IDL/be_include/be_interface_fwd.h b/TAO/TAO_IDL/be_include/be_interface_fwd.h deleted file mode 100644 index 70dd1d05b6d..00000000000 --- a/TAO/TAO_IDL/be_include/be_interface_fwd.h +++ /dev/null @@ -1,77 +0,0 @@ -/* -*- c++ -*- */ -// $Id$ - -// ============================================================================ -// -// = LIBRARY -// TAO IDL -// -// = FILENAME -// be_interface.h -// -// = DESCRIPTION -// Extension of class AST_Interface_Fwd that provides additional -// means for C++ mapping of an interface. -// -// = AUTHOR -// Copyright 1994-1995 by Sun Microsystems, Inc. -// and -// Aniruddha Gokhale -// -// ============================================================================ - -#ifndef BE_INTERFACE_FWD_H -#define BE_INTERFACE_FWD_H - -#include "be_type.h" -#include "ast_interface_fwd.h" - -class AST_Interface; -class UTL_StrList; -class be_visitor; - -/* - * BE_InterfaceFwd - */ -class be_interface_fwd : public virtual AST_InterfaceFwd, - public virtual be_type -{ - // =TITLE - // be_interface_fwd - // =DESCRIPTION - // Extensions to the AST_Interface_Fwd class -public: - // Operations - - be_interface_fwd (void); - // default constructor - - be_interface_fwd (AST_Interface *dummy, UTL_ScopedName *n, UTL_StrList *p); - // constructor - - virtual ~be_interface_fwd (void); - - virtual int gen_var_defn (char *local_name = 0); - // generate the _var class definition - - virtual int gen_var_impl (char *local_name = 0, - char *full_name = 0); - // generate the implementation for the _var class - - virtual int gen_out_defn (char *local_name = 0); - // generate the _out class definition - - virtual int gen_out_impl (char *local_name = 0, - char *full_name = 0); - // generate the _out implementation - - // Visiting - virtual int accept (be_visitor* visitor); - - // Narrowing - DEF_NARROW_METHODS2 (be_interface_fwd, AST_InterfaceFwd, be_type); - DEF_NARROW_FROM_DECL (be_interface_fwd); - -}; - -#endif // if !defined diff --git a/TAO/TAO_IDL/be_include/be_module.h b/TAO/TAO_IDL/be_include/be_module.h deleted file mode 100644 index d3ada1c2a8a..00000000000 --- a/TAO/TAO_IDL/be_include/be_module.h +++ /dev/null @@ -1,63 +0,0 @@ -/* -*- c++ -*- */ -// $Id$ - -// ============================================================================ -// -// = LIBRARY -// TAO IDL -// -// = FILENAME -// be_module.h -// -// = DESCRIPTION -// Extension of class AST_Module that provides additional means for C++ -// mapping. -// -// = AUTHOR -// Copyright 1994-1995 by Sun Microsystems, Inc. -// and -// Aniruddha Gokhale -// -// ============================================================================ - -#ifndef _BE_MODULE_H -#define _BE_MODULE_H - -#include "be_scope.h" -#include "be_decl.h" -#include "ast_module.h" - -class UTL_StrList; -class be_visitor; - -/* - * BE_Module - */ - -class be_module : public virtual AST_Module, - public virtual be_scope, - public virtual be_decl -{ -public: - // =Operations - - be_module (void); - // default constructor - - be_module (UTL_ScopedName *n, UTL_StrList *p); - // constructor - - // Visiting - virtual int accept (be_visitor *visitor); - - // Narrowing - DEF_NARROW_METHODS3 (be_module, AST_Module, be_scope, be_decl); - DEF_NARROW_FROM_DECL (be_module); - DEF_NARROW_FROM_SCOPE (be_module); - -protected: - virtual int compute_size_type (void); - // compute the size type if it is unknown -}; - -#endif diff --git a/TAO/TAO_IDL/be_include/be_native.h b/TAO/TAO_IDL/be_include/be_native.h deleted file mode 100644 index 4c861669e65..00000000000 --- a/TAO/TAO_IDL/be_include/be_native.h +++ /dev/null @@ -1,61 +0,0 @@ -// $Id$ - -// Id -// ============================================================================ -// -// = LIBRARY -// TAO IDL -// -// = FILENAME -// be_native.h -// -// = DESCRIPTION -// The native IDL type -// -// = AUTHOR -// Aniruddha Gokhale -// -// ============================================================================ - - -#ifndef BE_NATIVE_H -#define BE_NATIVE_H - -#include "be_type.h" -#include "ast_native.h" - -class UTL_StrList; -class be_visitor; - -// Representation of "native" IDL type added by the POA spec - -class be_native : public virtual AST_Native, public virtual be_type -{ -public: - // =Operations - - // Constructor(s) - be_native (void); - // default constructor - - be_native(UTL_ScopedName *n, UTL_StrList *p); - // constructor that initializes its scoped name - - virtual ~be_native (void) {} - // destructor - - virtual int gen_typecode (void); - // generate the typecode description - - virtual long tc_size (void); - // return typecode size - - // Visiting - virtual int accept (be_visitor *visitor); - - // Narrowing - DEF_NARROW_METHODS2(be_native, AST_Native, be_type); - DEF_NARROW_FROM_DECL(be_native); -}; - -#endif /* BE_NATIVE_H */ diff --git a/TAO/TAO_IDL/be_include/be_operation.h b/TAO/TAO_IDL/be_include/be_operation.h deleted file mode 100644 index 4a7556d2f6b..00000000000 --- a/TAO/TAO_IDL/be_include/be_operation.h +++ /dev/null @@ -1,85 +0,0 @@ -// $Id$ - -// ============================================================================ -// -// = LIBRARY -// TAO IDL -// -// = FILENAME -// be_operation.h -// -// = DESCRIPTION -// Extension of class AST_Operation that provides additional means for C++ -// mapping. -// -// = AUTHOR -// Copyright 1994-1995 by Sun Microsystems, Inc. -// and -// Aniruddha Gokhale -// -// ============================================================================ - -#ifndef BE_OPERATION_H -#define BE_OPERATION_H - -#include "be_scope.h" -#include "be_decl.h" -#include "ast_operation.h" - -class AST_Type; -class UTL_StrList; -class be_visitor; -class be_argument; - -/* - * BE_Operation - */ -class be_operation : public virtual AST_Operation, - public virtual be_scope, - public virtual be_decl -{ -public: - // =Operations - - be_operation (void); - // default constructor - - be_operation (AST_Type *rt, AST_Operation::Flags fl, UTL_ScopedName *n, - UTL_StrList *p); - // constructor - - virtual int argument_count (void); - // return the count of members - - virtual int has_native (void); - // Any of the arguments or the return value is a <native> type. - // This is important because in that case no code should be - // generated for the stubs. - - be_argument *add_argument_to_scope (be_argument *arg); - // add an argument to the scope - - // Visiting - virtual int accept (be_visitor *visitor); - - // Narrowing - DEF_NARROW_METHODS3 (be_operation, AST_Operation, be_scope, be_decl); - DEF_NARROW_FROM_DECL (be_operation); - DEF_NARROW_FROM_SCOPE (be_operation); - -protected: - //=helper - int compute_size_type (void); - // compute the size type if it is unknown - - int compute_argument_attr (void); - // count the number of arguments - - int argument_count_; - // number of arguments - - int has_native_; - // Is any argument of type native. -}; - -#endif diff --git a/TAO/TAO_IDL/be_include/be_predefined_type.h b/TAO/TAO_IDL/be_include/be_predefined_type.h deleted file mode 100644 index 6a682372da7..00000000000 --- a/TAO/TAO_IDL/be_include/be_predefined_type.h +++ /dev/null @@ -1,77 +0,0 @@ -/* -*- c++ -*- */ -// $Id$ - -// ============================================================================ -// -// = LIBRARY -// TAO IDL -// -// = FILENAME -// be_predefined_type.h -// -// = DESCRIPTION -// Extension of class AST_PredefinedType that provides additional means for C++ -// mapping. -// -// = AUTHOR -// Copyright 1994-1995 by Sun Microsystems, Inc. -// and -// Aniruddha Gokhale -// -// ============================================================================ - -#ifndef _BE_PREDEFINED_TYPE_H -#define _BE_PREDEFINED_TYPE_H - -#include "be_type.h" -#include "ast_predefined_type.h" - -class UTL_StrList; -class be_visitor; - -// be_classes.hh -// -// Defines all classes for dummy BE - -/* - * BE_PredefinedType - */ -class be_predefined_type : public virtual AST_PredefinedType, - public virtual be_type -{ -public: - // =Operations - - be_predefined_type (void); - // default constructor - - be_predefined_type (AST_PredefinedType::PredefinedType t, - UTL_ScopedName *n, - UTL_StrList *p); - // constructor - - // Visiting - virtual int accept (be_visitor* visitor); - - // Narrowing - DEF_NARROW_METHODS2 (be_predefined_type, AST_PredefinedType, be_type); - DEF_NARROW_FROM_DECL (be_predefined_type); - -protected: - virtual int compute_size_type (void); - // compute the size type if it is unknown - - virtual void compute_tc_name (void); - // overridden method - - virtual UTL_ScopedName * compute_tc_name (const char *prefix, - const char *suffix); - // Compute and return the value. - - virtual void compute_repoID (void); - // The object and TypeCode repository IDs have a mandatory omg.org - // prefix, but the default compute_repoID() uses the #pragma's to - // obtain preffixes. -}; - -#endif diff --git a/TAO/TAO_IDL/be_include/be_root.h b/TAO/TAO_IDL/be_include/be_root.h deleted file mode 100644 index 0f789bbfdbb..00000000000 --- a/TAO/TAO_IDL/be_include/be_root.h +++ /dev/null @@ -1,65 +0,0 @@ -/* -*- c++ -*- */ -// $Id$ - -// ============================================================================ -// -// = LIBRARY -// TAO IDL -// -// = FILENAME -// be_root.h -// -// = DESCRIPTION -// Extension of class AST_Root that provides the backend -// -// = AUTHOR -// Copyright 1994-1995 by Sun Microsystems, Inc. -// and -// Aniruddha Gokhale -// -// ============================================================================ - -#ifndef TAO_BE_ROOT_H -#define TAO_BE_ROOT_H - -#include "be_decl.h" -#include "be_scope.h" -#include "ast_root.h" - -class UTL_StrList; -class be_visitor; - -class be_root : public virtual AST_Root, - public virtual be_scope, - public virtual be_decl -{ - // = TITLE - // The back end extension of the AST_Root class - // - // = DESCRIPTION - // -public: - // Operations - be_root (void); - // Default constructor - - be_root (UTL_ScopedName *n, UTL_StrList *p); - // Constructor that sets its scoped name <n>, and any pragmas <p> - - // =Scope management functions that override the AST scope management methods - // since the AST methods set the names of the sequences, strings, and arrays - // to a fixed value which interferes with our back-end code generation - AST_Sequence *fe_add_sequence (AST_Sequence *); - AST_String *fe_add_string (AST_String *); - AST_Array *fe_add_array (AST_Array *); - - // Visiting - virtual int accept (be_visitor *visitor); - - // Narrowing - DEF_NARROW_METHODS3 (be_root, AST_Root, be_scope, be_decl); - DEF_NARROW_FROM_DECL (be_root); - DEF_NARROW_FROM_SCOPE (be_root); -}; - -#endif diff --git a/TAO/TAO_IDL/be_include/be_scope.h b/TAO/TAO_IDL/be_include/be_scope.h deleted file mode 100644 index ec5834df68c..00000000000 --- a/TAO/TAO_IDL/be_include/be_scope.h +++ /dev/null @@ -1,74 +0,0 @@ -/* -*- c++ -*- */ -// $Id$ - -// ============================================================================ -// -// = LIBRARY -// TAO IDL -// -// = FILENAME -// be_scope.h -// -// = DESCRIPTION -// Extension of the UTL_Scope CFE class -// -// = AUTHOR -// Copyright 1994-1995 by Sun Microsystems, Inc. -// and -// Aniruddha Gokhale -// -// ============================================================================ - -#ifndef TAO_BE_SCOPE_H -#define TAO_BE_SCOPE_H - -#include "utl_scope.h" -#include "ast_decl.h" - -class be_decl; -class be_visitor; - -/* - * BE_Scope - */ -class be_scope : public virtual UTL_Scope -{ - // = TITLE - // be_scope - // = DESCRIPTION - // The back end extension of the UTL_Scope class - // -public: - // Operations - - be_scope (void); - // Default constructor - - be_scope (AST_Decl::NodeType nt); - // constructor that sets the node type - - virtual ~be_scope (void); - // destructor - - virtual void comma (unsigned short set); - // set the comma producing state - - int comma (void) const; - // get the comma producing state - - virtual be_decl *decl (void); - // return the be_decl node corresponding to this scope node - - // Visiting - virtual int accept (be_visitor *visitor); - - // Narrowing - DEF_NARROW_METHODS1 (be_scope, UTL_Scope); - DEF_NARROW_FROM_SCOPE (be_scope); - -private: - unsigned short comma_; - // if set, generate a comma after every element is handled -}; - -#endif // if !defined diff --git a/TAO/TAO_IDL/be_include/be_sequence.h b/TAO/TAO_IDL/be_include/be_sequence.h deleted file mode 100644 index fdb18fd7e53..00000000000 --- a/TAO/TAO_IDL/be_include/be_sequence.h +++ /dev/null @@ -1,107 +0,0 @@ -// $Id$ - -// ============================================================================ -// -// = LIBRARY -// TAO IDL -// -// = FILENAME -// be_sequence.h -// -// = DESCRIPTION -// Extension of class AST_Sequence that provides additional means for C++ -// mapping. -// -// = AUTHOR -// Copyright 1994-1995 by Sun Microsystems, Inc. -// and -// Aniruddha Gokhale -// -// ============================================================================ - -#ifndef BE_SEQUENCE_H -#define BE_SEQUENCE_H - -#include "be_scope.h" -#include "be_type.h" -#include "ast_sequence.h" - -class AST_Expression; -class AST_Type; -class be_visitor; - -/* - * BE_Sequence - */ - -class be_typedef; - -// A sequence in OMG IDL does not define a scoping construct just as a struct -// or union or an interface do. However, in the C++ mapping, a sequence becomes -// a class. If the base type of a sequence is another anonymous sequence, then -// the base type is defined in the scope of this sequence. Hence we define -// be_sequence to possess the additional characteristics of a scope -class be_sequence : public virtual AST_Sequence, - public virtual be_scope, - public virtual be_type -{ -public: - enum MANAGED_TYPE - { - MNG_UNKNOWN , - MNG_NONE, - MNG_STRING, - MNG_OBJREF, - MNG_PSEUDO - }; - - // =Operations - - be_sequence (void); - // default constructor - - be_sequence (AST_Expression *v, AST_Type *bt); - // constructor - - virtual int create_name (be_typedef *node=0); - // create a name for ourselves. If we are typedefed, then we get the name of - // the typedef node, else we generate a name for ourselves - - virtual MANAGED_TYPE managed_type (void); - // return the managed type - - virtual idl_bool unbounded (void) const; - // is this sequence bounded or not - - // =Scope management functions - virtual AST_Sequence *fe_add_sequence (AST_Sequence *); - - virtual be_decl *decl (void); - // overridden method on the be_scope class - - virtual idl_bool in_recursion (be_type *node = 0); - // are we or the node represented by node involved in recursion - - // Visiting - virtual int accept (be_visitor *visitor); - - // Narrowing - DEF_NARROW_METHODS3 (be_sequence, AST_Sequence, be_scope, be_type); - DEF_NARROW_FROM_DECL (be_sequence); - - const char *instance_name (); - // report the instance name for instantiation - -protected: - virtual char *gen_name (void); - // helper to create_name - -private: - idl_bool unbounded_; - // whether we are bounded or unbounded - - MANAGED_TYPE mt_; - // our managed type -}; - -#endif diff --git a/TAO/TAO_IDL/be_include/be_state.h b/TAO/TAO_IDL/be_include/be_state.h deleted file mode 100644 index eaee5f30407..00000000000 --- a/TAO/TAO_IDL/be_include/be_state.h +++ /dev/null @@ -1,299 +0,0 @@ -/* -*- c++ -*- */ -// $Id$ - -// ============================================================================ -// -// = LIBRARY -// TAO IDL -// -// = FILENAME -// be_state.h -// -// = DESCRIPTION -// The Code generator state class and its subclasses -// -// = AUTHOR -// Aniruddha Gokhale -// -// ============================================================================ - -#ifndef TAO_BE_STATE_H -#define TAO_BE_STATE_H - -class be_type; -class be_decl; - -class be_state -{ - // =TITLE - // be_state - // =DESCRIPTION - // Emits code based on current state. This is an abstract base class. The - // task of code generation is handled by subclasses. -public: - virtual int gen_code (be_type *bt, be_decl *d, be_type *type=0) = 0; - // code generation for node "d" whose type is "bt". The third parameter is - // used for recursive invocation involving a typedef - - virtual ~be_state (void); - // destructor - -protected: - be_state (void); - // constructor -}; - -// ============== subclasses ==================== - -class be_state_struct : public be_state -{ - // =TITLE - // be_state_struct - // =DESCRIPTION - // struct generation -public: - - be_state_struct (void); - // constructor - - virtual int gen_code (be_type *bt, be_decl *d, be_type *type=0); - // code generation for node "d" whose type is "bt". The third parameter is - // used for recursive invocation involving a typedef -}; -typedef ACE_Singleton<be_state_struct, ACE_SYNCH_RECURSIVE_MUTEX> TAO_BE_STATE_STRUCT; - -class be_state_union_disctypedefn_ch: public be_state -{ - // =TITLE - // be_state_union_disctypedefn_ch - // =DESCRIPTION - // union discriminant defn generation in client header -public: - - be_state_union_disctypedefn_ch (void); - // constructor - - virtual int gen_code (be_type *bt, be_decl *d, be_type *type=0); - // code generation for node "d" whose type is "bt". The third parameter is - // used for recursive invocation involving a typedef -}; -typedef ACE_Singleton<be_state_union_disctypedefn_ch, ACE_SYNCH_RECURSIVE_MUTEX> - TAO_BE_STATE_UNION_DISCTYPEDEFN_CH; - -class be_state_union_disctypedefn_ci: public be_state -{ - // =TITLE - // be_state_union_disctypedefn_ci - // =DESCRIPTION - // union discriminant defn generation in client inline file -public: - - be_state_union_disctypedefn_ci (void); - // constructor - - virtual int gen_code (be_type *bt, be_decl *d, be_type *type=0); - // code generation for node "d" whose type is "bt". The third parameter is - // used for recursive invocation involving a typedef -}; -typedef ACE_Singleton<be_state_union_disctypedefn_ci, ACE_SYNCH_RECURSIVE_MUTEX> - TAO_BE_STATE_UNION_DISCTYPEDEFN_CI; - -class be_state_union_public_ch: public be_state -{ - // =TITLE - // be_state_union_public_ch - // =DESCRIPTION - // union discriminant defn generation in client header file -public: - - be_state_union_public_ch (void); - // constructor - - virtual int gen_code (be_type *bt, be_decl *d, be_type *type=0); - // code generation for node "d" whose type is "bt". The third parameter is - // used for recursive invocation involving a typedef -}; -typedef ACE_Singleton<be_state_union_public_ch, ACE_SYNCH_RECURSIVE_MUTEX> - TAO_BE_STATE_UNION_PUBLIC_CH; - -class be_state_union_public_ci: public be_state -{ - // =TITLE - // be_state_union_public_ci - // =DESCRIPTION - // union discriminant defn generation in client inline file -public: - - be_state_union_public_ci (void); - // constructor - - virtual int gen_code (be_type *bt, be_decl *d, be_type *type=0); - // code generation for node "d" whose type is "bt". The third parameter is - // used for recursive invocation involving a typedef -}; -typedef ACE_Singleton<be_state_union_public_ci, ACE_SYNCH_RECURSIVE_MUTEX> - TAO_BE_STATE_UNION_PUBLIC_CI; - -class be_state_union_private_ch: public be_state -{ - // =TITLE - // be_state_union_private_ch - // =DESCRIPTION - // union discriminant defn generation in client header file -public: - - be_state_union_private_ch (void); - // constructor - - virtual int gen_code (be_type *bt, be_decl *d, be_type *type=0); - // code generation for node "d" whose type is "bt". The third parameter is - // used for recursive invocation involving a typedef -}; -typedef ACE_Singleton<be_state_union_private_ch, ACE_SYNCH_RECURSIVE_MUTEX> - TAO_BE_STATE_UNION_PRIVATE_CH; - -class be_state_union_public_cs: public be_state -{ - // =TITLE - // be_state_union_public_cs - // =DESCRIPTION - // union discriminant defn generation in client stubs file -public: - - be_state_union_public_cs (void); - // constructor - - virtual int gen_code (be_type *bt, be_decl *d, be_type *type=0); - // code generation for node "d" whose type is "bt". The third parameter is - // used for recursive invocation involving a typedef -}; -typedef ACE_Singleton<be_state_union_public_cs, ACE_SYNCH_RECURSIVE_MUTEX> - TAO_BE_STATE_UNION_PUBLIC_CS; - -class be_state_operation: public be_state -{ - // =TITLE - // be_state_operation - // =DESCRIPTION - // operation return type -public: - - be_state_operation (void); - // constructor - - virtual int gen_code (be_type *bt, be_decl *d, be_type *type=0); - // code generation for node "d" whose type is "bt". The third parameter is - // used for recursive invocation involving a typedef -}; -typedef ACE_Singleton<be_state_operation, ACE_SYNCH_RECURSIVE_MUTEX> - TAO_BE_STATE_OPERATION; - -class be_state_argument: public be_state -{ - // =TITLE - // be_state_argument - // =DESCRIPTION - // argument return type -public: - - be_state_argument (void); - // constructor - - virtual int gen_code (be_type *bt, be_decl *d, be_type *type=0); - // code generation for node "d" whose type is "bt". The third parameter is - // used for recursive invocation involving a typedef -}; -typedef ACE_Singleton<be_state_argument, ACE_SYNCH_RECURSIVE_MUTEX> - TAO_BE_STATE_ARGUMENT; - -class be_state_typedef: public be_state -{ - // =TITLE - // be_state_typedef - // =DESCRIPTION - // typedef code generation -public: - - be_state_typedef (void); - // constructor - - virtual int gen_code (be_type *bt, be_decl *d, be_type *type=0); - // code generation for node "d" whose type is "bt". The third parameter is - // used for recursive invocation involving a typedef -}; -typedef ACE_Singleton<be_state_typedef, ACE_SYNCH_RECURSIVE_MUTEX> - TAO_BE_STATE_TYPEDEF; - -class be_state_array: public be_state -{ - // =TITLE - // be_state_array - // =DESCRIPTION - // array code generation -public: - - be_state_array (void); - // constructor - - virtual int gen_code (be_type *bt, be_decl *d, be_type *type=0); - // code generation for node "d" whose type is "bt". The third parameter is - // used for recursive invocation involving a typedef -}; -typedef ACE_Singleton<be_state_array, ACE_SYNCH_RECURSIVE_MUTEX> - TAO_BE_STATE_ARRAY; - -class be_state_sequence: public be_state -{ - // =TITLE - // be_state_sequence - // =DESCRIPTION - // sequence code generation -public: - - be_state_sequence (void); - // constructor - - virtual int gen_code (be_type *bt, be_decl *d, be_type *type=0); - // code generation for node "d" whose type is "bt". The third parameter is - // used for recursive invocation involving a typedef -}; -typedef ACE_Singleton<be_state_sequence, ACE_SYNCH_RECURSIVE_MUTEX> - TAO_BE_STATE_SEQUENCE; - -class be_state_attribute : public be_state -{ - // =TITLE - // be_state_attribute - // =DESCRIPTION - // attribute code generation -public: - be_state_attribute (void); - // constructor - - virtual int gen_code (be_type *bt, be_decl *d, be_type *type=0); - // code generation for node "d" whose type is "bt". The third - // parameter is used for recursive invocation involving a typedef -}; - -typedef ACE_Singleton<be_state_attribute, ACE_SYNCH_RECURSIVE_MUTEX> - TAO_BE_STATE_ATTRIBUTE; - -class be_state_exception : public be_state -{ - // =TITLE - // be_state_exception - // =DESCRIPTION - // exception code generation -public: - be_state_exception (void); - // constructor - - virtual int gen_code (be_type *bt, be_decl *d, be_type *type=0); - // code generation for node "d" whose type is "bt". The third - // parameter is used for recursive invocation involving a typedef -}; - -typedef ACE_Singleton<be_state_exception, ACE_SYNCH_RECURSIVE_MUTEX> - TAO_BE_STATE_EXCEPTION; - -#endif /* end of be_state */ diff --git a/TAO/TAO_IDL/be_include/be_stream_factory.h b/TAO/TAO_IDL/be_include/be_stream_factory.h deleted file mode 100644 index 354d5730835..00000000000 --- a/TAO/TAO_IDL/be_include/be_stream_factory.h +++ /dev/null @@ -1,61 +0,0 @@ -// $Id$ - -/* -*- c++ -*- */ -// ============================================================================ -// -// = LIBRARY -// TAO IDL Backend -// -// = FILENAME -// be_factory.h -// -// = DESCRIPTION -// Defines a factory that returns a specialized output stream object that -// understands a specific Front End -// -// = AUTHOR -// Aniruddha Gokhale -// -// ============================================================================ - -#ifndef TAO_BE_FACTORY_H -#define TAO_BE_FACTORY_H - -#include "ace/Singleton.h" -#include "ace/Synch.h" - -class TAO_OutStream; - -class TAO_OutStream_Factory -{ - // =TITLE - // TAO_OutStream_Factory - // =DESCRIPTION - // factory to produce specialized instances of the output stream objects -public: - enum TAO_OutStream_Type - { - TAO_SUNSOFT, - TAO_FLICK - }; - - TAO_OutStream_Factory (void); - // constructor - - ~TAO_OutStream_Factory (void); - // destructor - - TAO_OutStream *make_outstream (void); - // make the specialized out stream class - - int set_stream_type (TAO_OutStream_Type t); - // set the stream type - -private: - TAO_OutStream_Type strm_type_; -}; - -typedef ACE_Singleton<TAO_OutStream_Factory, ACE_SYNCH_RECURSIVE_MUTEX> TAO_OUTSTREAM_FACTORY; -// Singleton instance of the OutStream factory - -#endif /* if !defined _TAO_BE_FACTORY_H_ */ diff --git a/TAO/TAO_IDL/be_include/be_string.h b/TAO/TAO_IDL/be_include/be_string.h deleted file mode 100644 index 95c32af2fb1..00000000000 --- a/TAO/TAO_IDL/be_include/be_string.h +++ /dev/null @@ -1,65 +0,0 @@ -// $Id$ - -// ============================================================================ -// -// = LIBRARY -// TAO IDL -// -// = FILENAME -// be_string.h -// -// = DESCRIPTION -// Extension of class AST_String that provides additional means for C++ -// mapping. -// -// = AUTHOR -// Copyright 1994-1995 by Sun Microsystems, Inc. -// and -// Aniruddha Gokhale -// -// ============================================================================ - -#ifndef BE_STRING_H -#define BE_STRING_H - -#include "be_type.h" -#include "ast_string.h" - -class AST_Expression; -class be_visitor; - -/* - * BE_String - */ -class be_string : public virtual AST_String, - public virtual be_type -{ -public: - // Operations - - be_string (void); - // default constructor - - be_string (AST_Expression *v); - // constructor - - be_string (AST_Expression *v, long wide); - // constructor - - // Visiting - virtual int accept (be_visitor *visitor); - - // Narrowing - DEF_NARROW_METHODS2 (be_string, AST_String, be_type); - DEF_NARROW_FROM_DECL (be_string); - -protected: - virtual void compute_tc_name (void); - // overridden method to compute typecode name - - virtual UTL_ScopedName * compute_tc_name (const char *prefix, - const char *suffix); - // Compute and return the value. -}; - -#endif diff --git a/TAO/TAO_IDL/be_include/be_structure.h b/TAO/TAO_IDL/be_include/be_structure.h deleted file mode 100644 index 24bd279799f..00000000000 --- a/TAO/TAO_IDL/be_include/be_structure.h +++ /dev/null @@ -1,92 +0,0 @@ -/* -*- c++ -*- */ -// $Id$ - -// ============================================================================ -// -// = LIBRARY -// TAO IDL -// -// = FILENAME -// be_structure.h -// -// = DESCRIPTION -// Extension of class AST_Structure that provides additional means for C++ -// mapping. -// -// = AUTHOR -// Copyright 1994-1995 by Sun Microsystems, Inc. -// and -// Aniruddha Gokhale -// -// ============================================================================ - -#ifndef BE_STRUCTURE_H -#define BE_STRUCTURE_H - -#include "be_scope.h" -#include "be_type.h" -#include "ast_structure.h" - -class UTL_StrList; -class be_visitor; - -/* - * BE_Structure - */ -class be_structure : public virtual AST_Structure, - public virtual be_scope, - public virtual be_type -{ -public: - // =Operations - - be_structure (void); - // default constructor - - be_structure (UTL_ScopedName *n, UTL_StrList *p); - // constructor - - virtual int gen_var_defn (char *local_name = 0); - // generate the _var class definition - - virtual int gen_var_impl (char *local_name = 0, - char *full_name = 0); - // generate the implementation for the _var class - - virtual int gen_out_defn (char *local_name = 0); - // generate the _out class definition - - virtual int gen_out_impl (char *local_name = 0, - char *full_name = 0); - // generate the _out implementation - - virtual int member_count (void); - // return the count of members - - virtual idl_bool in_recursion (be_type *node = 0); - // are we or the node represented by node involved in recursion - - // Visiting - virtual int accept (be_visitor *visitor); - - // Narrowing - DEF_NARROW_METHODS3 (be_structure, AST_Structure, be_scope, be_type); - DEF_NARROW_FROM_DECL (be_structure); - DEF_NARROW_FROM_SCOPE (be_structure); - -protected: - virtual int compute_size_type (void); - // compute the size type if it is unknown - -private: - //=helper - - int compute_member_count (void); - // count the number of members - - int member_count_; - // number of members - -}; - -#endif diff --git a/TAO/TAO_IDL/be_include/be_sunsoft.h b/TAO/TAO_IDL/be_include/be_sunsoft.h deleted file mode 100644 index a44633f5395..00000000000 --- a/TAO/TAO_IDL/be_include/be_sunsoft.h +++ /dev/null @@ -1,49 +0,0 @@ -/* -*- c++ -*- */ -// $Id$ - -// ============================================================================ -// -// = LIBRARY -// TAO IDL -// -// = FILENAME -// be_sunsoft.h -// -// = DESCRIPTION -// SunSoft specific backend output generation -// -// = AUTHOR -// Aniruddha Gokhale -// -// ============================================================================ - -#ifndef TAO_BE_HELPER_H -#define TAO_BE_HELPER_H - -#include "be_helper.h" - -class TAO_SunSoft_OutStream : public TAO_OutStream -{ - // =TITLE - // TAO_SunSoft_OutStream - // =DESCRIPTION - // Backend specific to SunSoft AST nodes -public: - TAO_SunSoft_OutStream (void); - // constructor - - ~TAO_SunSoft_OutStream (void); - // destuctor - - virtual TAO_OutStream &print (Identifier *id); - // output the SunSoft IDL Identifier Node - - virtual TAO_OutStream &print (UTL_IdList *idl); - // output the SunSoft IDL UTL_IdList Node which is usually used to maintain a - // scoped name - - virtual TAO_OutStream &print (AST_Expression *expr); - // output the contents of the AST_Expression node -}; - -#endif // if !defined diff --git a/TAO/TAO_IDL/be_include/be_type.h b/TAO/TAO_IDL/be_include/be_type.h deleted file mode 100644 index 070353c6149..00000000000 --- a/TAO/TAO_IDL/be_include/be_type.h +++ /dev/null @@ -1,118 +0,0 @@ -// $Id$ - -// ============================================================================ -// -// = LIBRARY -// TAO IDL -// -// = FILENAME -// be_type.h -// -// = DESCRIPTION -// Extension of class AST_Type that provides additional means for C++ -// mapping. -// -// = AUTHOR -// Copyright 1994-1995 by Sun Microsystems, Inc. -// and -// Aniruddha Gokhale -// -// ============================================================================ - -#ifndef BE_TYPE_H -#define BE_TYPE_H - -#include "be_decl.h" -#include "ast_type.h" - -class TAO_OutStream; - -/* - * BE_Type - */ -class be_type : public virtual AST_Type, - public virtual be_decl -{ -public: - // =Operations - - be_type (void); - // default constructor - - be_type (AST_Decl::NodeType nt, UTL_ScopedName *n, UTL_StrList *p); - // constructor - - virtual ~be_type (void); - - virtual int gen_var_defn (char *interface_local_name = 0); - // generate the _var class definition. - // generate the var definition. If <interface_name> is not 0, generate - // the var defn for that name. Otherwise, do it for the interface you - // are visiting (this). - - virtual int gen_var_impl (char *interface_local_name = 0, - char *interface_full_name = 0); - // Generate the implementation for the _var class. - // If any one of the argument is 0, then use the name in <this>, - // otherwise use the name given. Just making the class more useful. - - virtual int gen_out_defn (char *interface_name = 0); - // Generate the out class definition. If <interface_name> is not 0, - // generate the out defn for that name. Otherwise, do it for the - // interface you are visiting (this). - - virtual int gen_out_impl (char *interface_local_name = 0, - char *interface_full_name = 0); - // Generate the out class implementation. - // If any one of the argument is 0, then use the name giin this - // node, else use the arguments. ); - - UTL_ScopedName *tc_name (const char *prefix = 0, - const char *suffix = 0); - // Return the typecode name. When both, the prefix and the suffix - // are non null, it computes and returns a tc name. Else, it also - // stores the result in a member variable. - - - virtual const char *nested_type_name (be_decl *d, - const char *suffix = 0, - const char *prefix = 0); - // type name of a node used when generating declarations - - virtual AST_Decl::NodeType base_node_type (void) const; - // Typedefs are tricky to handle, in many points their mapping - // depend on base type they are aliasing. Since typedefs can be - // recursive simply using "base_type->node_type()" will not work, so - // the most "unaliased" type is needed. - - virtual idl_bool in_recursion (be_type *node = 0); - // determine if we are involved in some kind of limited recursion. Most types - // cannot be involved except structs and unions. - // If the parameter is 0, we are trying to determine this for ourselves. - - // Visiting - virtual int accept (be_visitor* visitor); - - // Narrowing - DEF_NARROW_METHODS2 (be_type, AST_Type, be_decl); - DEF_NARROW_FROM_DECL (be_type); - -protected: - virtual void compute_tc_name (void); - // computes the fully scoped typecode name - - virtual UTL_ScopedName * compute_tc_name (const char *prefix, - const char *suffix); - // Compute and return the value. - - UTL_ScopedName *tc_name_; - // typecode name - - char *type_name_; - // type name (this uses the ACE NESTED macro) - - char *nested_type_name_; - // for the corresponding method. -}; - -#endif // end of if !defined diff --git a/TAO/TAO_IDL/be_include/be_typedef.h b/TAO/TAO_IDL/be_include/be_typedef.h deleted file mode 100644 index 8699239e5f9..00000000000 --- a/TAO/TAO_IDL/be_include/be_typedef.h +++ /dev/null @@ -1,67 +0,0 @@ -// $Id$ - -// ============================================================================ -// -// = LIBRARY -// TAO IDL -// -// = FILENAME -// be_typedef.h -// -// = DESCRIPTION -// Extension of class AST_typedef that provides additional means for C++ -// mapping. -// -// = AUTHOR -// Copyright 1994-1995 by Sun Microsystems, Inc. -// and -// Aniruddha Gokhale -// -// ============================================================================ - -#ifndef BE_TYPEDEF_H -#define BE_TYPEDEF_H - -#include "be_type.h" -#include "ast_typedef.h" - -class UTL_StrList; -class be_visitor; - -/* - * BE_Typedef - */ -class be_typedef : public virtual AST_Typedef, - public virtual be_type -{ -public: - // =Operations - - be_typedef (void); - // default constructor - - be_typedef (AST_Type *bt, UTL_ScopedName *n, UTL_StrList *p); - // constructor - - be_type *primitive_base_type (void); - // return the most primitive base type by traversing the chain of typedefed - // base types - - virtual AST_Decl::NodeType base_node_type (void) const; - // Return the most "unaliased" type node for the base type (see - // be_type.h). - - // Visiting - virtual int accept (be_visitor *visitor); - - // Narrowing - DEF_NARROW_METHODS2 (be_typedef, AST_Typedef, be_type); - DEF_NARROW_FROM_DECL (be_typedef); - -protected: - virtual int compute_size_type (void); - // compute the size type if it is unknown - -}; - -#endif diff --git a/TAO/TAO_IDL/be_include/be_union.h b/TAO/TAO_IDL/be_include/be_union.h deleted file mode 100644 index cd00be47408..00000000000 --- a/TAO/TAO_IDL/be_include/be_union.h +++ /dev/null @@ -1,129 +0,0 @@ -// $Id$ - -// ============================================================================ -// -// = LIBRARY -// TAO IDL -// -// = FILENAME -// be_union.h -// -// = DESCRIPTION -// Extension of class AST_Union that provides additional means for C++ -// mapping. -// -// = AUTHOR -// Copyright 1994-1995 by Sun Microsystems, Inc. -// and -// Aniruddha Gokhale -// -// ============================================================================ - -#ifndef BE_UNION_H -#define BE_UNION_H - -#include "be_type.h" -#include "be_scope.h" -#include "ast_union.h" - -class AST_ConcreteType; -class UTL_StrList; -class be_visitor; - -/* - * BE_Union - */ -class be_union : public virtual AST_Union, - public virtual be_scope, - public virtual be_type -{ -public: - // =Operations - - be_union (void); - // default constructor - - be_union(AST_ConcreteType *dt, UTL_ScopedName *n, UTL_StrList *p); - // constructor - - virtual int gen_var_defn (char *local_name = 0); - // generate the _var class definition - - virtual int gen_var_impl (char *local_name = 0, - char *full_name = 0); - // generate the implementation for the _var class - - virtual int gen_out_defn (char *local_name = 0); - // generate the _out class definition - - virtual int gen_out_impl (char *local_name = 0, - char *full_name = 0); - // generate the _out implementation - - virtual int member_count (void); - // return the count of members - - virtual int default_index (void); - // return the default index used - - virtual idl_bool in_recursion (be_type *node = 0); - // ar we or the parameter node involved in some kind of recursion - - // Visiting - virtual int accept (be_visitor *visitor); - - // Narrowing - DEF_NARROW_METHODS3 (be_union, AST_Union, be_scope, be_type); - DEF_NARROW_FROM_DECL(be_union); - DEF_NARROW_FROM_SCOPE(be_union); - - struct DefaultValue - { - union PermittedTypes - { - char char_val; - unsigned long bool_val; - ACE_INT16 short_val; - ACE_UINT16 ushort_val; - ACE_INT32 long_val; - ACE_UINT32 ulong_val; - ACE_UINT32 enum_val; - // TO-DO - handle (u)longlong types - } u; - long computed_; - // computed == -1 => error condition - // == 0 => does not exist because all cases have been covered - // == 1 => already computed - // == -2 => initial value - }; - - int default_value (DefaultValue &); - // get the default value - -protected: - virtual int compute_size_type (void); - // compute the size type if it is unknown - -private: - //=helper - - int compute_member_count (void); - // count the number of members - - int compute_default_index (void); - // count the default index - - virtual int compute_default_value (void); - // compute the implicit default value (if any) - - int member_count_; - // number of members - - int default_index_; - // default label index (zero based indexing) - - DefaultValue default_value_; - // implicit default value (if any) -}; - -#endif diff --git a/TAO/TAO_IDL/be_include/be_union_branch.h b/TAO/TAO_IDL/be_include/be_union_branch.h deleted file mode 100644 index 944049c7195..00000000000 --- a/TAO/TAO_IDL/be_include/be_union_branch.h +++ /dev/null @@ -1,64 +0,0 @@ -// $Id$ - -// ============================================================================ -// -// = LIBRARY -// TAO IDL -// -// = FILENAME -// be_union_branch.h -// -// = DESCRIPTION -// Extension of class AST_UnionBranch that provides additional means for C++ -// mapping. -// -// = AUTHOR -// Copyright 1994-1995 by Sun Microsystems, Inc. -// and -// Aniruddha Gokhale -// -// ============================================================================ - -#ifndef BE_UNION_BRANCH_H -#define BE_UNION_BRANCH_H - -#include "be_decl.h" -#include "ast_union_branch.h" - -class UTL_LabelList; -class UTL_Type; -class UTL_StrList; -class be_visitor; - -/* - * BE_UnionBranch - */ -class be_union_branch : public virtual AST_UnionBranch, - public virtual be_decl -{ -public: - // Operations - be_union_branch (void); - // default constructor - - be_union_branch (UTL_LabelList *ll, AST_Type *ft, UTL_ScopedName *n, - UTL_StrList *p); - // constructor - - int gen_label_value (TAO_OutStream *os, unsigned long index = 0); - // Generate the label value (as in a switch/case statement). - - // Visiting - virtual int accept (be_visitor *visitor); - - // Narrowing - DEF_NARROW_METHODS2 (be_union_branch, AST_UnionBranch, be_decl); - DEF_NARROW_FROM_DECL (be_union_branch); - -protected: - virtual int compute_size_type (void); - // compute the size type if it is unknown - -}; - -#endif diff --git a/TAO/TAO_IDL/be_include/be_union_label.h b/TAO/TAO_IDL/be_include/be_union_label.h deleted file mode 100644 index 536d9160bd9..00000000000 --- a/TAO/TAO_IDL/be_include/be_union_label.h +++ /dev/null @@ -1,24 +0,0 @@ -// $Id$ - -#ifndef BE_UNION_LABEL_H -#define BE_UNION_LABEL_H - -#include "ast_union_label.h" - -class be_visitor; - -/* - * BE_UnionLabel - */ -class be_union_label : public virtual AST_UnionLabel -{ -public: - // Operations - be_union_label(); - be_union_label(AST_UnionLabel::UnionLabel ul, AST_Expression *v); - - // Visiting - virtual int accept (be_visitor *visitor); -}; - -#endif diff --git a/TAO/TAO_IDL/be_include/be_valuetype.h b/TAO/TAO_IDL/be_include/be_valuetype.h deleted file mode 100644 index 819bee82351..00000000000 --- a/TAO/TAO_IDL/be_include/be_valuetype.h +++ /dev/null @@ -1,138 +0,0 @@ -/* -*- c++ -*- */ -// $Id$ - -// ============================================================================ -// -// = LIBRARY -// TAO IDL -// -// = FILENAME -// be_valuetype.h -// -// = DESCRIPTION -// Extension of class AST_Interface and be_interface that provides -// additional means for C++ mapping of an valuetype. -// -// ============================================================================ - -#ifndef TAO_BE_VALUETYPE_H -#define TAO_BE_VALUETYPE_H - -#ifdef IDL_HAS_VALUETYPE - -#include "be_interface.h" - -class TAO_OutStream; - -/* - * BE_Valuetype - */ -class be_valuetype : public virtual be_interface -{ - // = TITLE - // Backend-class for valuetypes - // - // = DESCRIPTION - // Extends be_interface and overrides member functions for valuetype - // mapping. - // -public: - - // used to pass functions to the template method - //: typedef int (*tao_code_emitter) (be_interface *, be_interface *, TAO_OutStream *); - - // Operations - be_valuetype (void); - // Default constructor - - be_valuetype (UTL_ScopedName *n, AST_Interface **ih, long nih, - UTL_StrList *p, idl_bool set_abstract = 0); - // Constructor that sets its scoped name <n>, a list of inherited valuetypes - // and supported interfaces <ih>, the number of inherited interfaces <nih>, - // and any pragmas <p> - - ~be_valuetype (void); - // dtor - - virtual void redefine (AST_Interface *from, UTL_StrList *p); - - idl_bool opt_accessor (); - // should generate optimized form ? - - virtual int gen_var_defn (char *local_name = 0); - // generate the _var class definition - - // virtual void gen_def_ctors (TAO_OutStream* os); - //call the default constructors of all the base classes - - - - // virtual void gen_copy_ctors (TAO_OutStream* os); - //call the copy constructors of all the base classes - - virtual int gen_var_impl (char *local_name = 0, - char *full_name = 0); - // generate the implementation for the _var class - - virtual int gen_out_defn (char *local_name = 0); - // generate the _out class definition - - virtual int gen_out_impl (char *local_name = 0, - char *full_name = 0); - // generate the _out implementation - - const char *full_obv_skel_name (void); - // retrieve the fully scoped skel class name - - -#if 0 - virtual int gen_typecode (void); - // generate the typecode - - virtual int gen_encapsulation (void); - // encapsulation for parameters - - virtual long tc_size (void); - // return typecode size - - virtual long tc_encap_len (void); - // return length of encapsulation -#endif - - // virtual int traverse_inheritance_graph (tao_code_emitter gen, - // TAO_OutStream *os); - // template method using breadth first traversal of inheritance graph - - //: const char *relative_skel_name (const char *other_class_name); - // relative skeleton name - - const char *field_pd_prefix (); - const char *field_pd_postfix (); - // for building the name for private data fields - be_valuetype *statefull_inherit (); - - - // Visiting - virtual int accept (be_visitor *visitor); - - virtual idl_bool is_valuetype (); - virtual idl_bool is_abstract_valuetype (); - virtual void set_abstract_valuetype (); - - // Narrowing - DEF_NARROW_METHODS1 (be_valuetype, be_interface); - DEF_NARROW_FROM_DECL (be_valuetype); - DEF_NARROW_FROM_SCOPE (be_valuetype); - - void compute_fullobvskelname (void); - // compute the fully scoped skel class name - - -private: - char * full_obv_skel_name_; - idl_bool abstract_; -}; - -#endif /* IDL_HAS_VALUETYPE */ - -#endif // if !defined diff --git a/TAO/TAO_IDL/be_include/be_valuetype_fwd.h b/TAO/TAO_IDL/be_include/be_valuetype_fwd.h deleted file mode 100644 index b1cf603fbef..00000000000 --- a/TAO/TAO_IDL/be_include/be_valuetype_fwd.h +++ /dev/null @@ -1,80 +0,0 @@ -/* -*- c++ -*- */ -// $Id$ - -// ============================================================================ -// -// = LIBRARY -// TAO IDL -// -// = FILENAME -// be_valuetype_fwd.h -// -// = DESCRIPTION -// Extension of class AST_Interface_Fwd that provides additional -// means for C++ mapping of a valuetype. -// -// = AUTHOR -// Copyright 1994-1995 by Sun Microsystems, Inc. -// and -// Aniruddha Gokhale, -// changed for valuetypes from Torsten Kuepper <kuepper2@lfa.uni-wuppertal.de> -// -// ============================================================================ - -#ifndef BE_VALUETYPE_FWD_H -#define BE_VALUETYPE_FWD_H - -#ifdef IDL_HAS_VALUETYPE - -#include "be_interface_fwd.h" - -/* - * BE_InterfaceFwd - */ - -class be_valuetype_fwd : public virtual be_interface_fwd -{ - // =TITLE - // be_valuetype_fwd - // =DESCRIPTION - // Extensions to the be_interface_fwd class -public: - // Operations - - be_valuetype_fwd (void); - // default constructor - - be_valuetype_fwd (AST_Interface *dummy, UTL_ScopedName *n, UTL_StrList *p); - // constructor - - virtual ~be_valuetype_fwd (void); - - virtual void set_abstract_valuetype (); - - // Generate Mapping - virtual int gen_var_defn (char *local_name = 0); - // generate the _var class definition - - virtual int gen_var_impl (char *local_name = 0, - char *full_name = 0); - // generate the implementation for the _var class - - virtual int gen_out_defn (char *local_name = 0); - // generate the _out class definition - - virtual int gen_out_impl (char *local_name = 0, - char *full_name = 0); - // generate the _out implementation - - // Visiting - virtual int accept (be_visitor* visitor); - - // Narrowing - DEF_NARROW_METHODS1 (be_valuetype_fwd, be_interface_fwd); - DEF_NARROW_FROM_DECL (be_valuetype_fwd); - -}; - -#endif /* IDL_HAS_VALUETYPE */ - -#endif // if !defined diff --git a/TAO/TAO_IDL/be_include/be_visitor.h b/TAO/TAO_IDL/be_include/be_visitor.h deleted file mode 100644 index 249bee0d4c2..00000000000 --- a/TAO/TAO_IDL/be_include/be_visitor.h +++ /dev/null @@ -1,169 +0,0 @@ -// -// $Id$ -// - -/* -*- c++ -*- */ -// ============================================================================ -// -// = LIBRARY -// TAO IDL -// -// = FILENAME -// be_visitor.h -// -// = DESCRIPTION -// The abstract visitor class. The concrete classes are responsible for code -// generation. -// -// = AUTHOR -// Copyright 1994-1995 by Sun Microsystems, Inc. -// and -// Carlos O'Ryan, Aniruddha Gokhale -// -// ============================================================================ - -#ifndef TAO_BE_VISITOR_H -#define TAO_BE_VISITOR_H - -class be_decl; -class be_scope; -class be_type; -class be_predefined_type; -class be_module; -class be_interface; -class be_interface_fwd; -#ifdef IDL_HAS_VALUETYPE - class be_valuetype; - class be_valuetype_fwd; -#endif /* IDL_HAS_VALUETYPE */ -class be_structure; -class be_exception; -class be_expression; -class be_enum; -class be_operation; -class be_field; -class be_argument; -class be_attribute; -class be_union; -class be_union_branch; -class be_union_label; -class be_constant; -class be_enum_val; -class be_array; -class be_sequence; -class be_string; -class be_typedef; -class be_root; -class be_native; - -class be_visitor_context; -class TAO_OutStream; - -class be_visitor -{ - // - // = TITLE - // Base class for visitors. - // - // = DESCRIPTION - // To implement code generation we use the "Visitor Pattern", this - // is the abstract "Visitor". - // The "visit" methods are not pure virtual to facilitate the - // implementation of simple visitors that only override a few. - // -public: - virtual ~be_visitor (void); - - virtual int visit_decl (be_decl *d); - // visit a decl node - - virtual int visit_scope (be_scope *node); - // visit the scope - - virtual int visit_type (be_type *node); - // visit the type - - virtual int visit_predefined_type (be_predefined_type *node); - // visit the predefined type - - virtual int visit_module (be_module *node); - // visit module - - virtual int visit_interface (be_interface *node); - // visit interface - - virtual int visit_interface_fwd (be_interface_fwd *node); - // visit interface_fwd - -#ifdef IDL_HAS_VALUETYPE - virtual int visit_valuetype (be_valuetype *node); - // visit valuetype - - virtual int visit_valuetype_fwd (be_valuetype_fwd *node); - // visit valuetype_fwd -#endif /* IDL_HAS_VALUETYPE */ - - virtual int visit_structure (be_structure *node); - // visit a structure - - virtual int visit_exception (be_exception *node); - // visit exception - - virtual int visit_expression (be_expression *node); - // visit expression - - virtual int visit_enum (be_enum *node); - // visit an enum - - virtual int visit_operation (be_operation *node); - // visit an operation - - virtual int visit_field (be_field *node); - // visit a field - - virtual int visit_argument (be_argument *node); - // visit argument - - virtual int visit_attribute (be_attribute *node); - // visit an attribute - - virtual int visit_union (be_union *node); - // visit union - - virtual int visit_union_branch (be_union_branch *node); - // visit union branch - - virtual int visit_union_label (be_union_label *node); - // visit union label - - virtual int visit_constant (be_constant *node); - // visit a constant - - virtual int visit_enum_val (be_enum_val *node); - // visit enum val - - virtual int visit_array (be_array *node); - // visit an array - - virtual int visit_sequence (be_sequence *node); - // visit a sequence - - virtual int visit_string (be_string *node); - // visit a string - - virtual int visit_typedef (be_typedef *node); - // visit a typedef - - virtual int visit_root (be_root *node); - // visit a root - - virtual int visit_native (be_native *node); - // visit a native - -protected: - be_visitor (void); - // constructor is protected - -}; - -#endif // TAO_BE_VISITOR_H diff --git a/TAO/TAO_IDL/be_include/be_visitor_argument.h b/TAO/TAO_IDL/be_include/be_visitor_argument.h deleted file mode 100644 index 78f39acb854..00000000000 --- a/TAO/TAO_IDL/be_include/be_visitor_argument.h +++ /dev/null @@ -1,49 +0,0 @@ -// -// $Id$ -// - -// ============================================================================ -// -// = LIBRARY -// TAO IDL -// -// = FILENAME -// be_visitor_args.h -// -// = DESCRIPTION -// Visitors for generation of code for Arguments. These are used for the -// interpretive styled stubs and skeletons -// -// = AUTHOR -// Aniruddha Gokhale and Carlos O' Ryan -// -// ============================================================================ - -#ifndef _BE_VISITOR_ARGUMENT_H -#define _BE_VISITOR_ARGUMENT_H - -#include "be_visitor_decl.h" -#include "be_visitor_scope.h" -#include "be_visitor_argument/argument.h" -#include "be_visitor_argument/arglist.h" -#include "be_visitor_argument/pre_docall_cs.h" -#include "be_visitor_argument/docall_cs.h" -#include "be_visitor_argument/post_docall_cs.h" -#include "be_visitor_argument/post_docall_compiled_cs.h" -#include "be_visitor_argument/vardecl_ss.h" -#include "be_visitor_argument/pre_upcall_ss.h" -#include "be_visitor_argument/upcall_ss.h" -#include "be_visitor_argument/post_upcall_ss.h" -#include "be_visitor_argument/marshal_ss.h" -#include "be_visitor_argument/post_marshal_ss.h" -#include "be_visitor_argument/compiled_marshal_cs.h" -#include "be_visitor_argument/compiled_marshal_ss.h" -#include "be_visitor_argument/pre_invoke_cs.h" -#include "be_visitor_argument/ami_arglist.h" -#include "be_visitor_argument/ami_handler_arglist.h" -#include "be_visitor_argument/ami_handler_result_arg.h" -#include "be_visitor_argument/ami_handler_compiled_marshal_cs.h" -#include "be_visitor_argument/ami_handler_upcall_cs.h" -#include "be_visitor_argument/ami_handler_vardecl_cs.h" - -#endif /* _BE_VISITOR_ARGUMENT_H */ diff --git a/TAO/TAO_IDL/be_include/be_visitor_argument/ami_arglist.h b/TAO/TAO_IDL/be_include/be_visitor_argument/ami_arglist.h deleted file mode 100644 index d5f11ad86b5..00000000000 --- a/TAO/TAO_IDL/be_include/be_visitor_argument/ami_arglist.h +++ /dev/null @@ -1,96 +0,0 @@ -// -// $Id$ -// - -// ============================================================================ -// -// = LIBRARY -// TAO IDL -// -// = FILENAME -// ami_arglist.h -// -// = DESCRIPTION -// Visitor for generation of code for Arguments as parameter lists -// in the operation signature of an AMI stub. -// -// = AUTHOR -// Aniruddha Gokhale & Alexander Babu Arulanthu <alex@cs.wustl.edu> -// -// ============================================================================ - -#ifndef _BE_VISITOR_ARGUMENT_AMI_ARGLIST_H_ -#define _BE_VISITOR_ARGUMENT_AMI_ARGLIST_H_ - -class be_visitor_args_ami_arglist : public be_visitor_args -{ - // - // = TITLE - // Generates the code for arguments output. - // - // = DESCRIPTION - // At several stages in the code generation a node of type - // "be_operation" is visited, and the code for its arguments must - // be generated. - // Sometimes the argument declarations must be generated (such as - // in the class declaration), other the arguments names (such as - // in method invocations). - // This class implements the declaration output, in other words, - // it outputs both the arguments and their types. - // -public: - be_visitor_args_ami_arglist (be_visitor_context *ctx); - // Constructor. - - virtual ~be_visitor_args_ami_arglist (void); - // Destructor. - - virtual int visit_argument (be_argument *node); - // Visit the argument node. - - // = visit all the nodes that can be the types for the argument. - - virtual int visit_array (be_array *node); - // visit array type - - virtual int visit_enum (be_enum *node); - // visit the enum node - - virtual int visit_interface (be_interface *node); - // visit interface - - virtual int visit_interface_fwd (be_interface_fwd *node); - // visit interface forward - - - virtual int visit_native (be_native *node); - // visit native node - - virtual int visit_predefined_type (be_predefined_type *node); - // visit predefined type - - virtual int visit_sequence (be_sequence *node); - // visit sequence type - - virtual int visit_string (be_string *node); - // visit string type - - virtual int visit_structure (be_structure *node); - // visit structure type - - virtual int visit_union (be_union *node); - // visit union type - - virtual int visit_typedef (be_typedef *node); - // visit the typedef type - -#ifdef IDL_HAS_VALUETYPE - virtual int visit_valuetype (be_valuetype *node); - // visit valuetype - - virtual int visit_valuetype_fwd (be_valuetype_fwd *node); - // visit valuetype_fwd -#endif /* IDL_HAS_VALUETYPE */ -}; - -#endif /* _BE_VISITOR_ARGUMENT_ARGLIST_H_ */ diff --git a/TAO/TAO_IDL/be_include/be_visitor_argument/ami_handler_arglist.h b/TAO/TAO_IDL/be_include/be_visitor_argument/ami_handler_arglist.h deleted file mode 100644 index 63882f11020..00000000000 --- a/TAO/TAO_IDL/be_include/be_visitor_argument/ami_handler_arglist.h +++ /dev/null @@ -1,96 +0,0 @@ -// -// $Id$ -// - -// ============================================================================ -// -// = LIBRARY -// TAO IDL -// -// = FILENAME -// ami_handler_arglist.h -// -// = DESCRIPTION -// Visitor for generation of code for Arguments as parameter lists -// in the operation signature of an AMI stub. -// -// = AUTHOR -// Aniruddha Gokhale & Alexander Babu Arulanthu <alex@cs.wustl.edu> -// -// ============================================================================ - -#ifndef _BE_VISITOR_ARGUMENT_AMI_HANDLER_ARGLIST_H_ -#define _BE_VISITOR_ARGUMENT_AMI_HANDLER_ARGLIST_H_ - -class be_visitor_args_ami_handler_arglist : public be_visitor_args -{ - // - // = TITLE - // Generates the code for arguments output. - // - // = DESCRIPTION - // At several stages in the code generation a node of type - // "be_operation" is visited, and the code for its arguments must - // be generated. - // Sometimes the argument declarations must be generated (such as - // in the class declaration), other the arguments names (such as - // in method invocations). - // This class implements the declaration output, in other words, - // it outputs both the arguments and their types. - // -public: - be_visitor_args_ami_handler_arglist (be_visitor_context *ctx); - // Constructor. - - virtual ~be_visitor_args_ami_handler_arglist (void); - // Destructor. - - virtual int visit_argument (be_argument *node); - // Visit the argument node. - - // = visit all the nodes that can be the types for the argument. - - virtual int visit_array (be_array *node); - // visit array type - - virtual int visit_enum (be_enum *node); - // visit the enum node - - virtual int visit_interface (be_interface *node); - // visit interface - - virtual int visit_interface_fwd (be_interface_fwd *node); - // visit interface forward - - - virtual int visit_native (be_native *node); - // visit native node - - virtual int visit_predefined_type (be_predefined_type *node); - // visit predefined type - - virtual int visit_sequence (be_sequence *node); - // visit sequence type - - virtual int visit_string (be_string *node); - // visit string type - - virtual int visit_structure (be_structure *node); - // visit structure type - - virtual int visit_union (be_union *node); - // visit union type - - virtual int visit_typedef (be_typedef *node); - // visit the typedef type - -#ifdef IDL_HAS_VALUETYPE - virtual int visit_valuetype (be_valuetype *node); - // visit valuetype - - virtual int visit_valuetype_fwd (be_valuetype_fwd *node); - // visit valuetype_fwd -#endif /* IDL_HAS_VALUETYPE */ -}; - -#endif /* _BE_VISITOR_ARGUMENT_ARGLIST_H_ */ diff --git a/TAO/TAO_IDL/be_include/be_visitor_argument/ami_handler_compiled_marshal_cs.h b/TAO/TAO_IDL/be_include/be_visitor_argument/ami_handler_compiled_marshal_cs.h deleted file mode 100644 index 11d8bef925f..00000000000 --- a/TAO/TAO_IDL/be_include/be_visitor_argument/ami_handler_compiled_marshal_cs.h +++ /dev/null @@ -1,89 +0,0 @@ -// -// $Id$ -// - -// ============================================================================ -// -// = LIBRARY -// TAO IDL -// -// = FILENAME -// ami_handler_compiled_marshal_cs.h -// -// = DESCRIPTION -// Visitors for generation of code for Arguments for passing the arguments -// to the CDR << and >> operators -// -// = AUTHOR -// Aniruddha Gokhale -// -// ============================================================================ - -#ifndef _BE_VISITOR_ARGUMENT_ami_handler_compiled_marshal_cs_H_ -#define _BE_VISITOR_ARGUMENT_ami_handler_compiled_marshal_cs_H_ - -// ************************************************************ -// class be_visitor_args_ami_handler_compiled_marshal_cs -// ************************************************************ -class be_visitor_args_ami_handler_compiled_marshal_cs : public be_visitor_args -{ - // - // = TITLE - // be_visitor_args_ami_handler_compiled_marshal_cs - // - // = DESCRIPTION - // Code to be generated when making the do_static_call - // -public: - be_visitor_args_ami_handler_compiled_marshal_cs (be_visitor_context *ctx); - // constructor - - virtual ~be_visitor_args_ami_handler_compiled_marshal_cs (void); - // destructor - - virtual int visit_argument (be_argument *node); - // visit the argument node - - // =visit all the nodes that can be the types for the argument - - virtual int visit_array (be_array *node); - // visit array type - - virtual int visit_enum (be_enum *node); - // visit the enum node - - virtual int visit_interface (be_interface *node); - // visit interface - - virtual int visit_interface_fwd (be_interface_fwd *node); - // visit interface forward - -#ifdef IDL_HAS_VALUETYPE - virtual int visit_valuetype (be_valuetype *node); - // visit valuetype - - virtual int visit_valuetype_fwd (be_valuetype_fwd *node); - // visit valuetype forward -#endif /* IDL_HAS_VALUETYPE */ - - virtual int visit_predefined_type (be_predefined_type *node); - // visit predefined type - - virtual int visit_sequence (be_sequence *node); - // visit sequence type - - virtual int visit_string (be_string *node); - // visit string type - - virtual int visit_structure (be_structure *node); - // visit structure type - - virtual int visit_union (be_union *node); - // visit union type - - virtual int visit_typedef (be_typedef *node); - // visit the typedef type - -}; - -#endif /* _BE_VISITOR_ARGUMENT_ami_handler_compiled_marshal_cs_H_ */ diff --git a/TAO/TAO_IDL/be_include/be_visitor_argument/ami_handler_result_arg.h b/TAO/TAO_IDL/be_include/be_visitor_argument/ami_handler_result_arg.h deleted file mode 100644 index 67e4d85b4a7..00000000000 --- a/TAO/TAO_IDL/be_include/be_visitor_argument/ami_handler_result_arg.h +++ /dev/null @@ -1,86 +0,0 @@ -// -// $Id$ -// - -// ============================================================================ -// -// = LIBRARY -// TAO IDL -// -// = FILENAME -// ami_handler_result_arg.h -// -// = DESCRIPTION -// Visitor for generating code for IDL operations. This generates the return -// type of the operation -// -// = AUTHOR -// Aniruddha Gokhale -// -// ============================================================================ - -#ifndef _BE_VISITOR_ARGS_AMI_HANDLER_RESULT_ARG_H_ -#define _BE_VISITOR_ARGS_AMI_HANDLER_RESULT_ARG_H_ - -// *********************************************************************** -// Operation visitor for return types in the signature of the operation -// *********************************************************************** - -class be_visitor_args_ami_handler_result_arg : public be_visitor_args -{ - // - // = TITLE - // be_visitor_args_ch - // - // = DESCRIPTION - // This is a visitor to generate operation return types - // - // -public: - be_visitor_args_ami_handler_result_arg (be_visitor_context *ctx); - // constructor - - ~be_visitor_args_ami_handler_result_arg (void); - // destructor - - int visit_array (be_array *node); - // visit an array node - - int visit_enum (be_enum *node); - // visit an enum node - - int visit_interface (be_interface *node); - // visit an interface node - - int visit_interface_fwd (be_interface_fwd *node); - // visit an interface node - - int visit_native (be_native *node); - // visit native type - - int visit_predefined_type (be_predefined_type *node); - // visit a predefined type node - - int visit_sequence (be_sequence *node); - // visit a sequence node - - int visit_string (be_string *node); - // visit a sequence node - - int visit_structure (be_structure *node); - // visit a structure node - - int visit_typedef (be_typedef *node); - // visit a typedef node - - int visit_union (be_union *node); - // visit a union node - -# ifdef IDL_HAS_VALUETYPE - int visit_valuetype (be_valuetype *node); - int visit_valuetype_fwd (be_valuetype_fwd *node); -# endif /* IDL_HAS_VALUETYPE */ - -}; - -#endif /* _BE_VISITOR_ARGS_AMI_HANDLER_RESULT_ARG_H_ */ diff --git a/TAO/TAO_IDL/be_include/be_visitor_argument/ami_handler_upcall_cs.h b/TAO/TAO_IDL/be_include/be_visitor_argument/ami_handler_upcall_cs.h deleted file mode 100644 index a1da8fe0ed2..00000000000 --- a/TAO/TAO_IDL/be_include/be_visitor_argument/ami_handler_upcall_cs.h +++ /dev/null @@ -1,90 +0,0 @@ -// -// $Id$ -// - -// ============================================================================ -// -// = LIBRARY -// TAO IDL -// -// = FILENAME -// ami_handler_upcall_cs.h -// -// = DESCRIPTION -// Visitors for generation of code for Arguments. This generates the -// passing of arguments to the upcall. -// -// = AUTHOR -// Aniruddha Gokhale -// Michael Kircher -// -// ============================================================================ - -#ifndef _BE_VISITOR_ARGUMENT_upcall_cs_H_ -#define _BE_VISITOR_ARGUMENT_upcall_cs_H_ - -// ************************************************************ -// class be_visitor_args_ami_handler_upcall_cs -// ************************************************************ -class be_visitor_args_ami_handler_upcall_cs : public be_visitor_args -{ - // - // = TITLE - // be_visitor_args_ami_handler_upcall_cs - // - // = DESCRIPTION - // Visitor for passing argument to the upcall - // -public: - be_visitor_args_ami_handler_upcall_cs (be_visitor_context *ctx); - // constructor - - virtual ~be_visitor_args_ami_handler_upcall_cs (void); - // destructor - - virtual int visit_argument (be_argument *node); - // visit the argument node - - // =visit all the nodes that can be the types for the argument - - virtual int visit_array (be_array *node); - // visit array type - - virtual int visit_enum (be_enum *node); - // visit the enum node - - virtual int visit_interface (be_interface *node); - // visit interface - - virtual int visit_interface_fwd (be_interface_fwd *node); - // visit interface forward - -#ifdef IDL_HAS_VALUETYPE - virtual int visit_valuetype (be_valuetype *node); - // visit valuetype - - virtual int visit_valuetype_fwd (be_valuetype_fwd *node); - // visit valuetype forward -#endif /* IDL_HAS_VALUETYPE */ - - virtual int visit_predefined_type (be_predefined_type *node); - // visit predefined type - - virtual int visit_sequence (be_sequence *node); - // visit sequence type - - virtual int visit_string (be_string *node); - // visit string type - - virtual int visit_structure (be_structure *node); - // visit structure type - - virtual int visit_union (be_union *node); - // visit union type - - virtual int visit_typedef (be_typedef *node); - // visit the typedef type - -}; - -#endif /* _BE_VISITOR_ARGUMENT_upcall_cs_H_ */ diff --git a/TAO/TAO_IDL/be_include/be_visitor_argument/ami_handler_vardecl_cs.h b/TAO/TAO_IDL/be_include/be_visitor_argument/ami_handler_vardecl_cs.h deleted file mode 100644 index fd2d80db63f..00000000000 --- a/TAO/TAO_IDL/be_include/be_visitor_argument/ami_handler_vardecl_cs.h +++ /dev/null @@ -1,126 +0,0 @@ -// -// $Id$ -// - -// ============================================================================ -// -// = LIBRARY -// TAO IDL -// -// = FILENAME -// ami_handler_vardecl_cs.h -// -// = DESCRIPTION -// Visitors for generation of code for Arguments. This generates the -// variable declartion for the argument in the server-sde skeleton -// -// = AUTHOR -// Aniruddha Gokhale -// Michael Kircher -// -// ============================================================================ - -#ifndef _BE_VISITOR_ARGUMENT_ami_handler_vardecl_cs_H_ -#define _BE_VISITOR_ARGUMENT_ami_handler_vardecl_cs_H_ - -// ************************************************************ -// class be_visitor_args_ami_handler_vardecl_cs -// ************************************************************ -class be_visitor_args_ami_handler_vardecl_cs : public be_visitor_args -{ - // - // = TITLE - // be_visitor_args_ami_handler_vardecl_cs - // - // = DESCRIPTION - // Visitor for variable declaration for argument - // -public: - be_visitor_args_ami_handler_vardecl_cs (be_visitor_context *ctx); - // constructor - - virtual ~be_visitor_args_ami_handler_vardecl_cs (void); - // destructor - - virtual int visit_argument (be_argument *node); - // visit the argument node - - // =visit all the nodes that can be the types for the argument - - virtual int visit_array (be_array *node); - // visit array type - - virtual int visit_enum (be_enum *node); - // visit the enum node - - virtual int visit_interface (be_interface *node); - // visit interface - - virtual int visit_interface_fwd (be_interface_fwd *node); - // visit interface forward - -#ifdef IDL_HAS_VALUETYPE - virtual int visit_valuetype (be_valuetype *node); - // visit valuetype - - virtual int visit_valuetype_fwd (be_valuetype_fwd *node); - // visit valuetype forward -#endif /* IDL_HAS_VALUETYPE */ - - virtual int visit_predefined_type (be_predefined_type *node); - // visit predefined type - - virtual int visit_sequence (be_sequence *node); - // visit sequence type - - virtual int visit_string (be_string *node); - // visit string type - - virtual int visit_structure (be_structure *node); - // visit structure type - - virtual int visit_union (be_union *node); - // visit union type - - virtual int visit_typedef (be_typedef *node); - // visit the typedef type - -}; - -// ************************************************************ -// class be_compiled_visitor_args_ami_handler_vardecl_cs -// ************************************************************ -class be_compiled_visitor_args_ami_handler_vardecl_cs : public be_visitor_args_ami_handler_vardecl_cs -{ - // - // = TITLE - // be_compiled_visitor_args_ami_handler_vardecl_cs - // - // = DESCRIPTION - // Visitor for variable declaration for argument for compiled marshaling - // skeletons - // -public: - be_compiled_visitor_args_ami_handler_vardecl_cs (be_visitor_context *ctx); - // constructor - - virtual ~be_compiled_visitor_args_ami_handler_vardecl_cs (void); - // destructor - - virtual int visit_interface (be_interface *node); - // visit interface - - virtual int visit_interface_fwd (be_interface_fwd *node); - // visit interface forward - -#ifdef IDL_HAS_VALUETYPE - virtual int visit_valuetype (be_valuetype *node); - // visit valuetype - - virtual int visit_valuetype_fwd (be_valuetype_fwd *node); - // visit valuetype forward -#endif /* IDL_HAS_VALUETYPE */ - -}; - -#endif /* _BE_VISITOR_ARGUMENT_ami_handler_vardecl_cs_H_ */ diff --git a/TAO/TAO_IDL/be_include/be_visitor_argument/arglist.h b/TAO/TAO_IDL/be_include/be_visitor_argument/arglist.h deleted file mode 100644 index 0e784a7e4b1..00000000000 --- a/TAO/TAO_IDL/be_include/be_visitor_argument/arglist.h +++ /dev/null @@ -1,96 +0,0 @@ -// -// $Id$ -// - -// ============================================================================ -// -// = LIBRARY -// TAO IDL -// -// = FILENAME -// arglist.h -// -// = DESCRIPTION -// Visitors for generation of code for Arguments as parameter lists in the -// operation signature -// -// = AUTHOR -// Aniruddha Gokhale -// -// ============================================================================ - -#ifndef _BE_VISITOR_ARGUMENT_ARGLIST_H_ -#define _BE_VISITOR_ARGUMENT_ARGLIST_H_ - -class be_visitor_args_arglist : public be_visitor_args -{ - // - // = TITLE - // Generates the code for arguments output. - // - // = DESCRIPTION - // At several stages in the code generation a node of type - // "be_operation" is visited, and the code for its arguments must - // be generated. - // Sometimes the argument declarations must be generated (such as - // in the class declaration), other the arguments names (such as - // in method invocations). - // This class implements the declaration output, in other words, - // it outputs both the arguments and their types. - // -public: - be_visitor_args_arglist (be_visitor_context *ctx); - // constructor - - virtual ~be_visitor_args_arglist (void); - // destructor - - virtual int visit_argument (be_argument *node); - // visit the argument node - - // =visit all the nodes that can be the types for the argument - - virtual int visit_array (be_array *node); - // visit array type - - virtual int visit_enum (be_enum *node); - // visit the enum node - - virtual int visit_interface (be_interface *node); - // visit interface - - virtual int visit_interface_fwd (be_interface_fwd *node); - // visit interface forward - - virtual int visit_native (be_native *node); - // visit native node - - virtual int visit_predefined_type (be_predefined_type *node); - // visit predefined type - - virtual int visit_sequence (be_sequence *node); - // visit sequence type - - virtual int visit_string (be_string *node); - // visit string type - - virtual int visit_structure (be_structure *node); - // visit structure type - - virtual int visit_union (be_union *node); - // visit union type - - virtual int visit_typedef (be_typedef *node); - // visit the typedef type - -#ifdef IDL_HAS_VALUETYPE - virtual int visit_valuetype (be_valuetype *node); - // visit valuetype - - virtual int visit_valuetype_fwd (be_valuetype_fwd *node); - // visit valuetype_fwd -#endif /* IDL_HAS_VALUETYPE */ - -}; - -#endif /* _BE_VISITOR_ARGUMENT_ARGLIST_H_ */ diff --git a/TAO/TAO_IDL/be_include/be_visitor_argument/argument.h b/TAO/TAO_IDL/be_include/be_visitor_argument/argument.h deleted file mode 100644 index 882c8003b4a..00000000000 --- a/TAO/TAO_IDL/be_include/be_visitor_argument/argument.h +++ /dev/null @@ -1,59 +0,0 @@ -// -// $Id$ -// - -// ============================================================================ -// -// = LIBRARY -// TAO IDL -// -// = FILENAME -// argument.h -// -// = DESCRIPTION -// Visitors for generation of code for Arguments -// -// = AUTHOR -// Aniruddha Gokhale -// -// ============================================================================ - -#ifndef _BE_VISITOR_ARGUMENT_ARGUMENT_H_ -#define _BE_VISITOR_ARGUMENT_ARGUMENT_H_ - -class be_visitor_args : public be_visitor_decl -{ - // - // = TITLE - // Generates the code for arguments output. - // - // = DESCRIPTION - // At several stages in the code generation a node of type - // "be_operation" is visited, and the code for its arguments must - // be generated. - // Sometimes the argument declarations must be generated (such as - // in the class declaration), other the arguments names (such as - // in method invocations). - // This class implements some common functionality required across all - // argument visitors - // -public: - be_visitor_args (be_visitor_context *ctx); - // constructor - - virtual ~be_visitor_args (void); - // destructor - - //= helper - virtual const char *type_name (be_type *type, const char *suffix=0); - // helper that produces either a nested name for header files or full name - // for others - - virtual AST_Argument::Direction direction (void); - // return the direction of the argument node - - virtual int visit_argument (be_argument *node); - // must be overridden by derived classes -}; - -#endif /* _BE_VISITOR_ARGUMENT_ARGUMENT_H_ */ diff --git a/TAO/TAO_IDL/be_include/be_visitor_argument/compiled_marshal_cs.h b/TAO/TAO_IDL/be_include/be_visitor_argument/compiled_marshal_cs.h deleted file mode 100644 index 47a30f5b143..00000000000 --- a/TAO/TAO_IDL/be_include/be_visitor_argument/compiled_marshal_cs.h +++ /dev/null @@ -1,89 +0,0 @@ -// -// $Id$ -// - -// ============================================================================ -// -// = LIBRARY -// TAO IDL -// -// = FILENAME -// compiled_marshal_cs.h -// -// = DESCRIPTION -// Visitors for generation of code for Arguments for passing the arguments -// to the CDR << and >> operators -// -// = AUTHOR -// Aniruddha Gokhale -// -// ============================================================================ - -#ifndef _BE_VISITOR_ARGUMENT_COMPILED_MARSHAL_CS_H_ -#define _BE_VISITOR_ARGUMENT_COMPILED_MARSHAL_CS_H_ - -// ************************************************************ -// class be_visitor_args_compiled_marshal_cs -// ************************************************************ -class be_visitor_args_compiled_marshal_cs : public be_visitor_args -{ - // - // = TITLE - // be_visitor_args_compiled_marshal_cs - // - // = DESCRIPTION - // Code to be generated when making the do_static_call - // -public: - be_visitor_args_compiled_marshal_cs (be_visitor_context *ctx); - // constructor - - virtual ~be_visitor_args_compiled_marshal_cs (void); - // destructor - - virtual int visit_argument (be_argument *node); - // visit the argument node - - // =visit all the nodes that can be the types for the argument - - virtual int visit_array (be_array *node); - // visit array type - - virtual int visit_enum (be_enum *node); - // visit the enum node - - virtual int visit_interface (be_interface *node); - // visit interface - - virtual int visit_interface_fwd (be_interface_fwd *node); - // visit interface forward - -#ifdef IDL_HAS_VALUETYPE - virtual int visit_valuetype (be_valuetype *node); - // visit valuetype - - virtual int visit_valuetype_fwd (be_valuetype_fwd *node); - // visit valuetype forward -#endif /* IDL_HAS_VALUETYPE */ - - virtual int visit_predefined_type (be_predefined_type *node); - // visit predefined type - - virtual int visit_sequence (be_sequence *node); - // visit sequence type - - virtual int visit_string (be_string *node); - // visit string type - - virtual int visit_structure (be_structure *node); - // visit structure type - - virtual int visit_union (be_union *node); - // visit union type - - virtual int visit_typedef (be_typedef *node); - // visit the typedef type - -}; - -#endif /* _BE_VISITOR_ARGUMENT_COMPILED_MARSHAL_CS_H_ */ diff --git a/TAO/TAO_IDL/be_include/be_visitor_argument/compiled_marshal_ss.h b/TAO/TAO_IDL/be_include/be_visitor_argument/compiled_marshal_ss.h deleted file mode 100644 index e04b8edf204..00000000000 --- a/TAO/TAO_IDL/be_include/be_visitor_argument/compiled_marshal_ss.h +++ /dev/null @@ -1,89 +0,0 @@ -// -// $Id$ -// - -// ============================================================================ -// -// = LIBRARY -// TAO IDL -// -// = FILENAME -// compiled_marshal_ss.h -// -// = DESCRIPTION -// Visitors for generation of code for Arguments for passing the arguments -// to the CDR << and >> operators -// -// = AUTHOR -// Aniruddha Gokhale -// -// ============================================================================ - -#ifndef _BE_VISITOR_ARGUMENT_COMPILED_MARSHAL_SS_H_ -#define _BE_VISITOR_ARGUMENT_COMPILED_MARSHAL_SS_H_ - -// ************************************************************ -// class be_visitor_args_compiled_marshal_ss -// ************************************************************ -class be_visitor_args_compiled_marshal_ss : public be_visitor_args -{ - // - // = TITLE - // be_visitor_args_compiled_marshal_ss - // - // = DESCRIPTION - // Code to be generated when making the do_static_call - // -public: - be_visitor_args_compiled_marshal_ss (be_visitor_context *ctx); - // constructor - - virtual ~be_visitor_args_compiled_marshal_ss (void); - // destructor - - virtual int visit_argument (be_argument *node); - // visit the argument node - - // =visit all the nodes that can be the types for the argument - - virtual int visit_array (be_array *node); - // visit array type - - virtual int visit_enum (be_enum *node); - // visit the enum node - - virtual int visit_interface (be_interface *node); - // visit interface - - virtual int visit_interface_fwd (be_interface_fwd *node); - // visit interface forward - -#ifdef IDL_HAS_VALUETYPE - virtual int visit_valuetype (be_valuetype *node); - // visit valuetype - - virtual int visit_valuetype_fwd (be_valuetype_fwd *node); - // visit valuetype forward -#endif /* IDL_HAS_VALUETYPE */ - - virtual int visit_predefined_type (be_predefined_type *node); - // visit predefined type - - virtual int visit_sequence (be_sequence *node); - // visit sequence type - - virtual int visit_string (be_string *node); - // visit string type - - virtual int visit_structure (be_structure *node); - // visit structure type - - virtual int visit_union (be_union *node); - // visit union type - - virtual int visit_typedef (be_typedef *node); - // visit the typedef type - -}; - -#endif /* _BE_VISITOR_ARGUMENT_COMPILED_MARSHAL_SS_H_ */ diff --git a/TAO/TAO_IDL/be_include/be_visitor_argument/docall_cs.h b/TAO/TAO_IDL/be_include/be_visitor_argument/docall_cs.h deleted file mode 100644 index 03054f5ee01..00000000000 --- a/TAO/TAO_IDL/be_include/be_visitor_argument/docall_cs.h +++ /dev/null @@ -1,81 +0,0 @@ -// -// $Id$ -// - -// ============================================================================ -// -// = LIBRARY -// TAO IDL -// -// = FILENAME -// docall_cs.h -// -// = DESCRIPTION -// Visitors for generation of code for Arguments for passing the arguments -// to the docall in the client side stub. -// -// = AUTHOR -// Aniruddha Gokhale -// -// ============================================================================ - -#ifndef _BE_VISITOR_ARGUMENT_DOCALL_CS_H_ -#define _BE_VISITOR_ARGUMENT_DOCALL_CS_H_ - -// ************************************************************ -// class be_visitor_args_docall_cs -// ************************************************************ -class be_visitor_args_docall_cs : public be_visitor_args -{ - // - // = TITLE - // be_visitor_args_docall_cs - // - // = DESCRIPTION - // Code to be generated when making the do_static_call - // -public: - be_visitor_args_docall_cs (be_visitor_context *ctx); - // constructor - - virtual ~be_visitor_args_docall_cs (void); - // destructor - - virtual int visit_argument (be_argument *node); - // visit the argument node - - // =visit all the nodes that can be the types for the argument - - virtual int visit_array (be_array *node); - // visit array type - - virtual int visit_enum (be_enum *node); - // visit the enum node - - virtual int visit_interface (be_interface *node); - // visit interface - - virtual int visit_interface_fwd (be_interface_fwd *node); - // visit interface forward - - virtual int visit_predefined_type (be_predefined_type *node); - // visit predefined type - - virtual int visit_sequence (be_sequence *node); - // visit sequence type - - virtual int visit_string (be_string *node); - // visit string type - - virtual int visit_structure (be_structure *node); - // visit structure type - - virtual int visit_union (be_union *node); - // visit union type - - virtual int visit_typedef (be_typedef *node); - // visit the typedef type - -}; - -#endif /* _BE_VISITOR_ARGUMENT_DOCALL_CS_H_ */ diff --git a/TAO/TAO_IDL/be_include/be_visitor_argument/marshal_ss.h b/TAO/TAO_IDL/be_include/be_visitor_argument/marshal_ss.h deleted file mode 100644 index e116238f598..00000000000 --- a/TAO/TAO_IDL/be_include/be_visitor_argument/marshal_ss.h +++ /dev/null @@ -1,81 +0,0 @@ -// -// $Id$ -// - -// ============================================================================ -// -// = LIBRARY -// TAO IDL -// -// = FILENAME -// marshal_ss.h -// -// = DESCRIPTION -// Visitors for generation of code for Arguments. This generates the -// code to pass the arguments to the call to the marshaler/demarshaler -// -// = AUTHOR -// Aniruddha Gokhale -// -// ============================================================================ - -#ifndef _BE_VISITOR_ARGUMENT_MARSHAL_SS_H_ -#define _BE_VISITOR_ARGUMENT_MARSHAL_SS_H_ - -// ************************************************************ -// class be_visitor_args_marshal_ss -// ************************************************************ -class be_visitor_args_marshal_ss : public be_visitor_args -{ - // - // = TITLE - // be_visitor_args_marshal_ss - // - // = DESCRIPTION - // Visitor for passing argument to the marshaling/demarshaling routine - // -public: - be_visitor_args_marshal_ss (be_visitor_context *ctx); - // constructor - - virtual ~be_visitor_args_marshal_ss (void); - // destructor - - virtual int visit_argument (be_argument *node); - // visit the argument node - - // =visit all the nodes that can be the types for the argument - - virtual int visit_array (be_array *node); - // visit array type - - virtual int visit_enum (be_enum *node); - // visit the enum node - - virtual int visit_interface (be_interface *node); - // visit interface - - virtual int visit_interface_fwd (be_interface_fwd *node); - // visit interface forward - - virtual int visit_predefined_type (be_predefined_type *node); - // visit predefined type - - virtual int visit_sequence (be_sequence *node); - // visit sequence type - - virtual int visit_string (be_string *node); - // visit string type - - virtual int visit_structure (be_structure *node); - // visit structure type - - virtual int visit_union (be_union *node); - // visit union type - - virtual int visit_typedef (be_typedef *node); - // visit the typedef type - -}; - -#endif /* _BE_VISITOR_ARGUMENT_MARSHAL_SS_H_ */ diff --git a/TAO/TAO_IDL/be_include/be_visitor_argument/post_docall_compiled_cs.h b/TAO/TAO_IDL/be_include/be_visitor_argument/post_docall_compiled_cs.h deleted file mode 100644 index 53ae360551c..00000000000 --- a/TAO/TAO_IDL/be_include/be_visitor_argument/post_docall_compiled_cs.h +++ /dev/null @@ -1,70 +0,0 @@ -// -// $Id$ -// - -// ============================================================================ -// -// = LIBRARY -// TAO IDL -// -// = FILENAME -// post_docall_cs.h -// -// = DESCRIPTION -// Visitors for generation of code for Arguments for docall post processing -// in the client side stub when compiled marshaling (default) is enabled. -// -// = AUTHOR -// Jeff Parsons -// -// ============================================================================ - -#ifndef _BE_VISITOR_ARGUMENT_POST_DOCALL_COMPILED_CS_H_ -#define _BE_VISITOR_ARGUMENT_POST_DOCALL_COMPILED_CS_H_ - -// ************************************************************ -// class be_visitor_args_post_docall_compiled_cs -// ************************************************************ -class be_visitor_args_post_docall_compiled_cs : public be_visitor_args -{ - // - // = TITLE - // be_visitor_args_post_docall_compiled_cs - // - // = DESCRIPTION - // Code to be generated after the do_static_call is done - // -public: - be_visitor_args_post_docall_compiled_cs (be_visitor_context *ctx); - // constructor - - virtual ~be_visitor_args_post_docall_compiled_cs (void); - // destructor - - virtual int visit_argument (be_argument *node); - // visit the argument node - - // =visit all the nodes that can be the types for the argument - - virtual int visit_interface (be_interface *node); - // visit interface - - virtual int visit_interface_fwd (be_interface_fwd *node); - // visit interface forward - -#ifdef IDL_HAS_VALUETYPE - virtual int visit_valuetype (be_valuetype *node); - // visit valuetype - - virtual int visit_valuetype_fwd (be_valuetype_fwd *node); - // visit valuetype forward -#endif /* IDL_HAS_VALUETYPE */ - - virtual int visit_typedef (be_typedef *node); - // visit the typedef type - - virtual int visit_string (be_string *node); - // visit string -}; - -#endif /* _BE_VISITOR_ARGUMENT_POST_DOCALL_COMPILED_CS_H_ */ diff --git a/TAO/TAO_IDL/be_include/be_visitor_argument/post_docall_cs.h b/TAO/TAO_IDL/be_include/be_visitor_argument/post_docall_cs.h deleted file mode 100644 index 4d5e5876eea..00000000000 --- a/TAO/TAO_IDL/be_include/be_visitor_argument/post_docall_cs.h +++ /dev/null @@ -1,62 +0,0 @@ -// -// $Id$ -// - -// ============================================================================ -// -// = LIBRARY -// TAO IDL -// -// = FILENAME -// post_docall_cs.h -// -// = DESCRIPTION -// Visitors for generation of code for Arguments for docall post processing -// in the client side stub. -// -// = AUTHOR -// Aniruddha Gokhale -// -// ============================================================================ - -#ifndef _BE_VISITOR_ARGUMENT_POST_DOCALL_CS_H_ -#define _BE_VISITOR_ARGUMENT_POST_DOCALL_CS_H_ - -// ************************************************************ -// class be_visitor_args_post_docall_cs -// ************************************************************ -class be_visitor_args_post_docall_cs : public be_visitor_args -{ - // - // = TITLE - // be_visitor_args_post_docall_cs - // - // = DESCRIPTION - // Code to be generated after the do_static_call is done - // -public: - be_visitor_args_post_docall_cs (be_visitor_context *ctx); - // constructor - - virtual ~be_visitor_args_post_docall_cs (void); - // destructor - - virtual int visit_argument (be_argument *node); - // visit the argument node - - // =visit all the nodes that can be the types for the argument - - virtual int visit_interface (be_interface *node); - // visit interface - - virtual int visit_interface_fwd (be_interface_fwd *node); - // visit interface forward - - virtual int visit_string (be_string *node); - // visit the string type - - virtual int visit_typedef (be_typedef *node); - // visit the typedef type -}; - -#endif /* _BE_VISITOR_ARGUMENT_POST_DOCALL_CS_H_ */ diff --git a/TAO/TAO_IDL/be_include/be_visitor_argument/post_marshal_ss.h b/TAO/TAO_IDL/be_include/be_visitor_argument/post_marshal_ss.h deleted file mode 100644 index 3b9aa9c8b63..00000000000 --- a/TAO/TAO_IDL/be_include/be_visitor_argument/post_marshal_ss.h +++ /dev/null @@ -1,81 +0,0 @@ -// -// $Id$ -// - -// ============================================================================ -// -// = LIBRARY -// TAO IDL -// -// = FILENAME -// post_marshal_ss.h -// -// = DESCRIPTION -// Visitors for generation of code for Arguments. This generates the -// code that does post-marshal processing (cleaning up) for arguments -// -// = AUTHOR -// Aniruddha Gokhale -// -// ============================================================================ - -#ifndef _BE_VISITOR_ARGUMENT_POST_MARSHAL_SS_H_ -#define _BE_VISITOR_ARGUMENT_POST_MARSHAL_SS_H_ - -// ************************************************************ -// class be_visitor_args_post_marshal_ss -// ************************************************************ -class be_visitor_args_post_marshal_ss : public be_visitor_args -{ - // - // = TITLE - // be_visitor_args_post_marshal_ss - // - // = DESCRIPTION - // Visitor for post processing after marshal - // -public: - be_visitor_args_post_marshal_ss (be_visitor_context *ctx); - // constructor - - virtual ~be_visitor_args_post_marshal_ss (void); - // destructor - - virtual int visit_argument (be_argument *node); - // visit the argument node - - // =visit all the nodes that can be the types for the argument - - virtual int visit_array (be_array *node); - // visit array type - - virtual int visit_enum (be_enum *node); - // visit the enum node - - virtual int visit_interface (be_interface *node); - // visit interface - - virtual int visit_interface_fwd (be_interface_fwd *node); - // visit interface forward - - virtual int visit_predefined_type (be_predefined_type *node); - // visit predefined type - - virtual int visit_sequence (be_sequence *node); - // visit sequence type - - virtual int visit_string (be_string *node); - // visit string type - - virtual int visit_structure (be_structure *node); - // visit structure type - - virtual int visit_union (be_union *node); - // visit union type - - virtual int visit_typedef (be_typedef *node); - // visit the typedef type - -}; - -#endif /* _BE_VISITOR_ARGUMENT_POST_MARSHAL_SS_H */ diff --git a/TAO/TAO_IDL/be_include/be_visitor_argument/post_upcall_ss.h b/TAO/TAO_IDL/be_include/be_visitor_argument/post_upcall_ss.h deleted file mode 100644 index 63ac801198b..00000000000 --- a/TAO/TAO_IDL/be_include/be_visitor_argument/post_upcall_ss.h +++ /dev/null @@ -1,114 +0,0 @@ -// -// $Id$ -// - -// ============================================================================ -// -// = LIBRARY -// TAO IDL -// -// = FILENAME -// post_upcall_ss.h -// -// = DESCRIPTION -// Visitors for generation of code for Arguments. This generates the -// code for post upcall processing of the arguments -// -// = AUTHOR -// Aniruddha Gokhale -// -// ============================================================================ - - -#ifndef _BE_VISITOR_ARGUMENT_POST_UPCALL_SS_H_ -#define _BE_VISITOR_ARGUMENT_POST_UPCALL_SS_H_ - -// ************************************************************ -// class be_visitor_args_post_upcall_ss -// ************************************************************ -class be_visitor_args_post_upcall_ss : public be_visitor_args -{ - // - // = TITLE - // be_visitor_args_post_upcall_ss - // - // = DESCRIPTION - // Visitor for post processing after upcall - // -public: - be_visitor_args_post_upcall_ss (be_visitor_context *ctx); - // constructor - - virtual ~be_visitor_args_post_upcall_ss (void); - // destructor - - virtual int visit_argument (be_argument *node); - // visit the argument node - - // =visit all the nodes that can be the types for the argument - - virtual int visit_array (be_array *node); - // visit array type - - virtual int visit_enum (be_enum *node); - // visit the enum node - - virtual int visit_interface (be_interface *node); - // visit interface - - virtual int visit_interface_fwd (be_interface_fwd *node); - // visit interface forward - - virtual int visit_predefined_type (be_predefined_type *node); - // visit predefined type - - virtual int visit_sequence (be_sequence *node); - // visit sequence type - - virtual int visit_string (be_string *node); - // visit string type - - virtual int visit_structure (be_structure *node); - // visit structure type - - virtual int visit_union (be_union *node); - // visit union type - - virtual int visit_typedef (be_typedef *node); - // visit the typedef type - -}; - -// **************************************************************** - -// ************************************************************ -// class be_visitor_compiled_args_post_upcall -// ************************************************************ - -class be_visitor_compiled_args_post_upcall : public be_visitor_scope -{ - // - // = TITLE - // be_visitor_compiled_args_post_upcall - // - // = DESCRIPTION - // Visitor for post processing after upcall - // -public: - be_visitor_compiled_args_post_upcall (be_visitor_context *ctx); - // constructor - - virtual ~be_visitor_compiled_args_post_upcall (void); - // destructor - - virtual int visit_argument (be_argument *node); - // visit the argument node - - // =visit all the nodes that can be the types for the argument - - virtual int visit_operation (be_operation *node); - virtual int visit_array (be_array *node); - virtual int visit_typedef (be_typedef *node); -}; - -#endif /* _BE_VISITOR_ARGUMENT_POST_UPCALL_SS_H_ */ diff --git a/TAO/TAO_IDL/be_include/be_visitor_argument/pre_docall_cs.h b/TAO/TAO_IDL/be_include/be_visitor_argument/pre_docall_cs.h deleted file mode 100644 index fb5acb67951..00000000000 --- a/TAO/TAO_IDL/be_include/be_visitor_argument/pre_docall_cs.h +++ /dev/null @@ -1,81 +0,0 @@ -// -// $Id$ -// - -// ============================================================================ -// -// = LIBRARY -// TAO IDL -// -// = FILENAME -// pre_docall_cs.h -// -// = DESCRIPTION -// Visitors for generation of code for Arguments for pre docall processing -// in client side stub that uses interpretive marshaling. -// -// = AUTHOR -// Aniruddha Gokhale -// -// ============================================================================ - -#ifndef _BE_VISITOR_ARGUMENT_PRE_DOCALL_CS_H_ -#define _BE_VISITOR_ARGUMENT_PRE_DOCALL_CS_H_ - -// ************************************************************ -// class be_visitor_args_pre_docall_cs -// ************************************************************ -class be_visitor_args_pre_docall_cs : public be_visitor_args -{ - // - // = TITLE - // be_visitor_args_docall_cs - // - // = DESCRIPTION - // Code to be generated when making the do_static_call - // -public: - be_visitor_args_pre_docall_cs (be_visitor_context *ctx); - // constructor - - virtual ~be_visitor_args_pre_docall_cs (void); - // destructor - - virtual int void_return_type (void); - // return true if the operation return type is void - - virtual int visit_argument (be_argument *node); - // visit the argument node - - // =visit all the nodes that can be the types for the argument - - virtual int visit_array (be_array *node); - // visit array type - - virtual int visit_interface (be_interface *node); - // visit interface - - virtual int visit_interface_fwd (be_interface_fwd *node); - // visit interface forward - - virtual int visit_predefined_type (be_predefined_type *node); - // visit predefined type - - virtual int visit_sequence (be_sequence *node); - // visit sequence type - - virtual int visit_string (be_string *node); - // visit string type - - virtual int visit_structure (be_structure *node); - // visit structure type - - virtual int visit_union (be_union *node); - // visit union type - - virtual int visit_typedef (be_typedef *node); - // visit the typedef type - -}; - -#endif /* _BE_VISITOR_ARGUMENT_PRE_DOCALL_CS_H_ */ diff --git a/TAO/TAO_IDL/be_include/be_visitor_argument/pre_invoke_cs.h b/TAO/TAO_IDL/be_include/be_visitor_argument/pre_invoke_cs.h deleted file mode 100644 index 9edb4b60288..00000000000 --- a/TAO/TAO_IDL/be_include/be_visitor_argument/pre_invoke_cs.h +++ /dev/null @@ -1,52 +0,0 @@ -// -// $Id$ -// - -// ============================================================================ -// -// = LIBRARY -// TAO IDL -// -// = FILENAME -// pre_invoke_cs.h -// -// = DESCRIPTION -// Visitors for generation of code for Arguments for pre invoke processing -// in client side stub that uses compiled marshaling. -// -// = AUTHOR -// Aniruddha Gokhale -// -// ============================================================================ - -#ifndef _BE_VISITOR_ARGUMENT_PRE_INVOKE_CS_H_ -#define _BE_VISITOR_ARGUMENT_PRE_INVOKE_CS_H_ - -// ************************************************************ -// class be_visitor_args_pre_invoke_cs -// ************************************************************ -class be_visitor_args_pre_invoke_cs : public be_visitor_args_pre_docall_cs -{ - // - // = TITLE - // be_visitor_args_docall_cs - // - // = DESCRIPTION - // Code to be generated when making the do_static_call - // -public: - be_visitor_args_pre_invoke_cs (be_visitor_context *ctx); - // constructor - - virtual ~be_visitor_args_pre_invoke_cs (void); - // destructor - - virtual int visit_interface (be_interface *node); - // visit interface - - virtual int visit_interface_fwd (be_interface_fwd *node); - // visit interface forward - -}; - -#endif /* _BE_VISITOR_ARGUMENT_PRE_INVOKE_CS_H_ */ diff --git a/TAO/TAO_IDL/be_include/be_visitor_argument/pre_upcall_ss.h b/TAO/TAO_IDL/be_include/be_visitor_argument/pre_upcall_ss.h deleted file mode 100644 index bb2b3430e79..00000000000 --- a/TAO/TAO_IDL/be_include/be_visitor_argument/pre_upcall_ss.h +++ /dev/null @@ -1,81 +0,0 @@ -// -// $Id$ -// - -// ============================================================================ -// -// = LIBRARY -// TAO IDL -// -// = FILENAME -// pre_upcall_ss.h -// -// = DESCRIPTION -// Visitors for generation of code for Arguments. This generates the -// pre upcall processing of arguments in the server-side skeleton. -// -// = AUTHOR -// Aniruddha Gokhale -// -// ============================================================================ - -#ifndef _BE_VISITOR_ARGUMENT_PRE_UPCALL_SS_H_ -#define _BE_VISITOR_ARGUMENT_PRE_UPCALL_SS_H_ - -// ************************************************************ -// class be_visitor_args_pre_upcall_ss -// ************************************************************ -class be_visitor_args_pre_upcall_ss : public be_visitor_args -{ - // - // = TITLE - // be_visitor_args_upcall_ss - // - // = DESCRIPTION - // Visitor for passing argument to the upcall - // -public: - be_visitor_args_pre_upcall_ss (be_visitor_context *ctx); - // constructor - - virtual ~be_visitor_args_pre_upcall_ss (void); - // destructor - - virtual int visit_argument (be_argument *node); - // visit the argument node - - // =visit all the nodes that can be the types for the argument - - virtual int visit_array (be_array *node); - // visit array type - - virtual int visit_enum (be_enum *node); - // visit the enum node - - virtual int visit_interface (be_interface *node); - // visit interface - - virtual int visit_interface_fwd (be_interface_fwd *node); - // visit interface forward - - virtual int visit_predefined_type (be_predefined_type *node); - // visit predefined type - - virtual int visit_sequence (be_sequence *node); - // visit sequence type - - virtual int visit_string (be_string *node); - // visit string type - - virtual int visit_structure (be_structure *node); - // visit structure type - - virtual int visit_union (be_union *node); - // visit union type - - virtual int visit_typedef (be_typedef *node); - // visit the typedef type - -}; - -#endif /* _BE_VISITOR_ARGUMENT_PRE_UPCALL_SS_H_ */ diff --git a/TAO/TAO_IDL/be_include/be_visitor_argument/upcall_ss.h b/TAO/TAO_IDL/be_include/be_visitor_argument/upcall_ss.h deleted file mode 100644 index fc578fe2662..00000000000 --- a/TAO/TAO_IDL/be_include/be_visitor_argument/upcall_ss.h +++ /dev/null @@ -1,89 +0,0 @@ -// -// $Id$ -// - -// ============================================================================ -// -// = LIBRARY -// TAO IDL -// -// = FILENAME -// upcall_ss.h -// -// = DESCRIPTION -// Visitors for generation of code for Arguments. This generates the -// passing of arguments to the upcall. -// -// = AUTHOR -// Aniruddha Gokhale -// -// ============================================================================ - -#ifndef _BE_VISITOR_ARGUMENT_UPCALL_SS_H_ -#define _BE_VISITOR_ARGUMENT_UPCALL_SS_H_ - -// ************************************************************ -// class be_visitor_args_upcall_ss -// ************************************************************ -class be_visitor_args_upcall_ss : public be_visitor_args -{ - // - // = TITLE - // be_visitor_args_upcall_ss - // - // = DESCRIPTION - // Visitor for passing argument to the upcall - // -public: - be_visitor_args_upcall_ss (be_visitor_context *ctx); - // constructor - - virtual ~be_visitor_args_upcall_ss (void); - // destructor - - virtual int visit_argument (be_argument *node); - // visit the argument node - - // =visit all the nodes that can be the types for the argument - - virtual int visit_array (be_array *node); - // visit array type - - virtual int visit_enum (be_enum *node); - // visit the enum node - - virtual int visit_interface (be_interface *node); - // visit interface - - virtual int visit_interface_fwd (be_interface_fwd *node); - // visit interface forward - -#ifdef IDL_HAS_VALUETYPE - virtual int visit_valuetype (be_valuetype *node); - // visit valuetype - - virtual int visit_valuetype_fwd (be_valuetype_fwd *node); - // visit valuetype forward -#endif /* IDL_HAS_VALUETYPE */ - - virtual int visit_predefined_type (be_predefined_type *node); - // visit predefined type - - virtual int visit_sequence (be_sequence *node); - // visit sequence type - - virtual int visit_string (be_string *node); - // visit string type - - virtual int visit_structure (be_structure *node); - // visit structure type - - virtual int visit_union (be_union *node); - // visit union type - - virtual int visit_typedef (be_typedef *node); - // visit the typedef type - -}; - -#endif /* _BE_VISITOR_ARGUMENT_UPCALL_SS_H_ */ diff --git a/TAO/TAO_IDL/be_include/be_visitor_argument/vardecl_ss.h b/TAO/TAO_IDL/be_include/be_visitor_argument/vardecl_ss.h deleted file mode 100644 index a4209caeb9e..00000000000 --- a/TAO/TAO_IDL/be_include/be_visitor_argument/vardecl_ss.h +++ /dev/null @@ -1,125 +0,0 @@ -// -// $Id$ -// - -// ============================================================================ -// -// = LIBRARY -// TAO IDL -// -// = FILENAME -// vardecl_ss.h -// -// = DESCRIPTION -// Visitors for generation of code for Arguments. This generates the -// variable declartion for the argument in the server-sde skeleton -// -// = AUTHOR -// Aniruddha Gokhale -// -// ============================================================================ - -#ifndef _BE_VISITOR_ARGUMENT_VARDECL_SS_H_ -#define _BE_VISITOR_ARGUMENT_VARDECL_SS_H_ - -// ************************************************************ -// class be_visitor_args_vardecl_ss -// ************************************************************ -class be_visitor_args_vardecl_ss : public be_visitor_args -{ - // - // = TITLE - // be_visitor_args_vardecl_ss - // - // = DESCRIPTION - // Visitor for variable declaration for argument - // -public: - be_visitor_args_vardecl_ss (be_visitor_context *ctx); - // constructor - - virtual ~be_visitor_args_vardecl_ss (void); - // destructor - - virtual int visit_argument (be_argument *node); - // visit the argument node - - // =visit all the nodes that can be the types for the argument - - virtual int visit_array (be_array *node); - // visit array type - - virtual int visit_enum (be_enum *node); - // visit the enum node - - virtual int visit_interface (be_interface *node); - // visit interface - - virtual int visit_interface_fwd (be_interface_fwd *node); - // visit interface forward - -#ifdef IDL_HAS_VALUETYPE - virtual int visit_valuetype (be_valuetype *node); - // visit valuetype - - virtual int visit_valuetype_fwd (be_valuetype_fwd *node); - // visit valuetype forward -#endif /* IDL_HAS_VALUETYPE */ - - virtual int visit_predefined_type (be_predefined_type *node); - // visit predefined type - - virtual int visit_sequence (be_sequence *node); - // visit sequence type - - virtual int visit_string (be_string *node); - // visit string type - - virtual int visit_structure (be_structure *node); - // visit structure type - - virtual int visit_union (be_union *node); - // visit union type - - virtual int visit_typedef (be_typedef *node); - // visit the typedef type - -}; - -// ************************************************************ -// class be_compiled_visitor_args_vardecl_ss -// ************************************************************ -class be_compiled_visitor_args_vardecl_ss : public be_visitor_args_vardecl_ss -{ - // - // = TITLE - // be_compiled_visitor_args_vardecl_ss - // - // = DESCRIPTION - // Visitor for variable declaration for argument for compiled marshaling - // skeletons - // -public: - be_compiled_visitor_args_vardecl_ss (be_visitor_context *ctx); - // constructor - - virtual ~be_compiled_visitor_args_vardecl_ss (void); - // destructor - - virtual int visit_interface (be_interface *node); - // visit interface - - virtual int visit_interface_fwd (be_interface_fwd *node); - // visit interface forward - -#ifdef IDL_HAS_VALUETYPE - virtual int visit_valuetype (be_valuetype *node); - // visit valuetype - - virtual int visit_valuetype_fwd (be_valuetype_fwd *node); - // visit valuetype forward -#endif /* IDL_HAS_VALUETYPE */ - -}; - -#endif /* _BE_VISITOR_ARGUMENT_VARDECL_SS_H_ */ diff --git a/TAO/TAO_IDL/be_include/be_visitor_array.h b/TAO/TAO_IDL/be_include/be_visitor_array.h deleted file mode 100644 index 8b001cb6f01..00000000000 --- a/TAO/TAO_IDL/be_include/be_visitor_array.h +++ /dev/null @@ -1,36 +0,0 @@ -// -// $Id$ -// - -// ============================================================================ -// -// = LIBRARY -// TAO IDL -// -// = FILENAME -// be_visitor_array.h -// -// = DESCRIPTION -// Visitors for generation of code for Arrays -// -// = AUTHOR -// Aniruddha Gokhale -// -// ============================================================================ - -#ifndef TAO_BE_VISITOR_ARRAY_H -#define TAO_BE_VISITOR_ARRAY_H - -#include "be_visitor_decl.h" -// generic visitor -#include "be_visitor_array/array.h" -// concrete visitors -#include "be_visitor_array/array_ch.h" -#include "be_visitor_array/array_ci.h" -#include "be_visitor_array/array_cs.h" -#include "be_visitor_array/any_op_ch.h" -#include "be_visitor_array/any_op_cs.h" -#include "be_visitor_array/cdr_op_ch.h" -#include "be_visitor_array/cdr_op_ci.h" - -#endif /* TAO_BE_VISITOR_ARRAY_H */ diff --git a/TAO/TAO_IDL/be_include/be_visitor_array/any_op_ch.h b/TAO/TAO_IDL/be_include/be_visitor_array/any_op_ch.h deleted file mode 100644 index 8030e83f6cc..00000000000 --- a/TAO/TAO_IDL/be_include/be_visitor_array/any_op_ch.h +++ /dev/null @@ -1,52 +0,0 @@ -// -// $Id$ -// - -// ============================================================================ -// -// = LIBRARY -// TAO IDL -// -// = FILENAME -// any_op_ch.h -// -// = DESCRIPTION -// Visitors for generation of code for Arrays in client header. This one -// generates the Any operators. -// -// = AUTHOR -// Aniruddha Gokhale -// -// ============================================================================ - -#ifndef _BE_VISITOR_ARRAY_ANY_OP_CH_H_ -#define _BE_VISITOR_ARRAY_ANY_OP_CH_H_ - -// ************************************************************ -// class be_visitor_array_any_op_ch -// ************************************************************ - -class be_visitor_array_any_op_ch : public be_visitor_decl -{ - // - // = TITLE - // be_visitor_array_any_op_ch - // - // = DESCRIPTION - // This is a concrete visitor for array that generates the Any operator - // declarations - // - -public: - be_visitor_array_any_op_ch (be_visitor_context *ctx); - // constructor - - ~be_visitor_array_any_op_ch (void); - // destructor - - virtual int visit_array (be_array *node); - // visit array - -}; - -#endif /* _BE_VISITOR_ARRAY_ANY_OP_CH_H_ */ diff --git a/TAO/TAO_IDL/be_include/be_visitor_array/any_op_cs.h b/TAO/TAO_IDL/be_include/be_visitor_array/any_op_cs.h deleted file mode 100644 index 58b310587e2..00000000000 --- a/TAO/TAO_IDL/be_include/be_visitor_array/any_op_cs.h +++ /dev/null @@ -1,52 +0,0 @@ -// -// $Id$ -// - -// ============================================================================ -// -// = LIBRARY -// TAO IDL -// -// = FILENAME -// any_op_cs.h -// -// = DESCRIPTION -// Visitors for generation of code for Arrays in client stubs. This one -// generates the Any operators. -// -// = AUTHOR -// Aniruddha Gokhale -// -// ============================================================================ - -#ifndef _BE_VISITOR_ARRAY_ANY_OP_CS_H_ -#define _BE_VISITOR_ARRAY_ANY_OP_CS_H_ - -// ************************************************************ -// class be_visitor_array_cs -// ************************************************************ - -class be_visitor_array_any_op_cs : public be_visitor_decl -{ - // - // = TITLE - // be_visitor_array_any_op_cs - // - // = DESCRIPTION - // This is a concrete visitor for array that generates the Any operator - // implementations - // - -public: - be_visitor_array_any_op_cs (be_visitor_context *ctx); - // constructor - - ~be_visitor_array_any_op_cs (void); - // destructor - - virtual int visit_array (be_array *node); - // visit array - -}; - -#endif /* _BE_VISITOR_ARRAY_ANY_OP_CS_H_ */ diff --git a/TAO/TAO_IDL/be_include/be_visitor_array/array.h b/TAO/TAO_IDL/be_include/be_visitor_array/array.h deleted file mode 100644 index 5fa6a4aab4c..00000000000 --- a/TAO/TAO_IDL/be_include/be_visitor_array/array.h +++ /dev/null @@ -1,84 +0,0 @@ -// -// $Id$ -// - -// ============================================================================ -// -// = LIBRARY -// TAO IDL -// -// = FILENAME -// array.h -// -// = DESCRIPTION -// Visitors for generation of code for Arrays. -// -// = AUTHOR -// Aniruddha Gokhale -// -// ============================================================================ - -#ifndef _BE_VISITOR_ARRAY_ARRAY_H_ -#define _BE_VISITOR_ARRAY_ARRAY_H_ - -// ************************************************************ -// class be_visitor_array -// ************************************************************ - -class be_visitor_array : public be_visitor_decl -{ - // - // = TITLE - // be_visitor_array - // - // = DESCRIPTION - // This is a generic visitor for arrays - // - // -public: - be_visitor_array (be_visitor_context *ctx); - // Constructor - - ~be_visitor_array (void); - // destructor - - virtual int visit_array (be_array *); - // visit the array node - - // = Visitor methods on array types - - virtual int visit_enum (be_enum *node); - // visit an enum - - virtual int visit_interface (be_interface *node); - // visit an interface - - virtual int visit_interface_fwd (be_interface_fwd *node); - // visit an interface forward node - - virtual int visit_predefined_type (be_predefined_type *node); - // visit a predefined type node - - virtual int visit_sequence (be_sequence *node); - // visit sequence - - virtual int visit_string (be_string *node); - // visit string - - virtual int visit_structure (be_structure *node); - // visit structure - - virtual int visit_typedef (be_typedef *node); - // visit typedef - - virtual int visit_union (be_union *node); - // visit union - -protected: - - int visit_node (be_type *); - // helper that does the common job - -}; - -#endif /* _BE_VISITOR_ARRAY_ARRAY_H_*/ diff --git a/TAO/TAO_IDL/be_include/be_visitor_array/array_ch.h b/TAO/TAO_IDL/be_include/be_visitor_array/array_ch.h deleted file mode 100644 index 7eb4e4f578d..00000000000 --- a/TAO/TAO_IDL/be_include/be_visitor_array/array_ch.h +++ /dev/null @@ -1,57 +0,0 @@ -// -// $Id$ -// - -// ============================================================================ -// -// = LIBRARY -// TAO IDL -// -// = FILENAME -// array_ch.h -// -// = DESCRIPTION -// Visitors for generation of code for Arrays in client header. -// -// = AUTHOR -// Aniruddha Gokhale -// -// ============================================================================ - -#ifndef _BE_VISITOR_ARRAY_CH_H_ -#define _BE_VISITOR_ARRAY_CH_H_ - -// ************************************************************ -// class be_visitor_array_ch -// ************************************************************ - -class be_visitor_array_ch : public be_visitor_array -{ - // - // = TITLE - // be_visitor_array_ch - // - // = DESCRIPTION - // Code to be generated for arrays in the client header file - // -public: - be_visitor_array_ch (be_visitor_context *ctx); - // constructor - - virtual ~be_visitor_array_ch (void); - // destructor - - virtual int visit_array (be_array *node); - // visit the array node - - virtual int gen_var_defn (be_array *node); - // generate the var class definition - - virtual int gen_out_defn (be_array *node); - // generate the out class definition - - virtual int gen_forany_defn (be_array *node); - // generate the forany class definition -}; - -#endif /* _BE_VISITOR_ARRAY_CH_H_ */ diff --git a/TAO/TAO_IDL/be_include/be_visitor_array/array_ci.h b/TAO/TAO_IDL/be_include/be_visitor_array/array_ci.h deleted file mode 100644 index 25601e95c74..00000000000 --- a/TAO/TAO_IDL/be_include/be_visitor_array/array_ci.h +++ /dev/null @@ -1,57 +0,0 @@ -// -// $Id$ -// - -// ============================================================================ -// -// = LIBRARY -// TAO IDL -// -// = FILENAME -// array_ci.h -// -// = DESCRIPTION -// Visitors for generation of code for Arrays in client inline. -// -// = AUTHOR -// Aniruddha Gokhale -// -// ============================================================================ - -#ifndef _BE_VISITOR_ARRAY_CI_H_ -#define _BE_VISITOR_ARRAY_CI_H_ - -// ************************************************************ -// class be_visitor_array_ci -// ************************************************************ - -class be_visitor_array_ci : public be_visitor_array -{ - // - // = TITLE - // be_visitor_array_ci - // - // = DESCRIPTION - // Code to be generated for arrays in the client inline file - // -public: - be_visitor_array_ci (be_visitor_context *ctx); - // constructor - - virtual ~be_visitor_array_ci (void); - // destructor - - virtual int visit_array (be_array *node); - // visit the array node - - virtual int gen_var_impl (be_array *node); - // generate the var class definition - - virtual int gen_out_impl (be_array *node); - // generate the out class definition - - virtual int gen_forany_impl (be_array *node); - // generate the forany class definition -}; - -#endif /* _BE_VISITOR_ARRAY_CI_H_ */ diff --git a/TAO/TAO_IDL/be_include/be_visitor_array/array_cs.h b/TAO/TAO_IDL/be_include/be_visitor_array/array_cs.h deleted file mode 100644 index 98c3e8f6c2c..00000000000 --- a/TAO/TAO_IDL/be_include/be_visitor_array/array_cs.h +++ /dev/null @@ -1,49 +0,0 @@ -// -// $Id$ -// - -// ============================================================================ -// -// = LIBRARY -// TAO IDL -// -// = FILENAME -// array_cs.h -// -// = DESCRIPTION -// Visitors for generation of code for Arrays in client stubs. -// -// = AUTHOR -// Aniruddha Gokhale -// -// ============================================================================ - -#ifndef _BE_VISITOR_ARRAY_CS_H_ -#define _BE_VISITOR_ARRAY_CS_H_ - -// ************************************************************ -// class be_visitor_array_cs -// ************************************************************ - -class be_visitor_array_cs : public be_visitor_array -{ - // - // = TITLE - // be_visitor_array_cs - // - // = DESCRIPTION - // Code to be generated for arrays in the client stub file - // -public: - be_visitor_array_cs (be_visitor_context *ctx); - // constructor - - virtual ~be_visitor_array_cs (void); - // destructor - - virtual int visit_array (be_array *node); - // visit the array node - -}; - -#endif /* _BE_VISITOR_ARRAY_CS_H_ */ diff --git a/TAO/TAO_IDL/be_include/be_visitor_array/cdr_op_ch.h b/TAO/TAO_IDL/be_include/be_visitor_array/cdr_op_ch.h deleted file mode 100644 index a45af118541..00000000000 --- a/TAO/TAO_IDL/be_include/be_visitor_array/cdr_op_ch.h +++ /dev/null @@ -1,52 +0,0 @@ -// -// $Id$ -// - -// ============================================================================ -// -// = LIBRARY -// TAO IDL -// -// = FILENAME -// cdr_op_ch.h -// -// = DESCRIPTION -// Visitors for generation of code for Arrays in client header. This one -// generates the CDR operators. -// -// = AUTHOR -// Aniruddha Gokhale -// -// ============================================================================ - -#ifndef _BE_VISITOR_ARRAY_CDR_OP_CH_H_ -#define _BE_VISITOR_ARRAY_CDR_OP_CH_H_ - -// ************************************************************ -// class be_visitor_array_cdr_op_ch -// ************************************************************ - -class be_visitor_array_cdr_op_ch : public be_visitor_decl -{ - // - // = TITLE - // be_visitor_array_cdr_op_ch - // - // = DESCRIPTION - // This is a concrete visitor for array that generates the CDR operator - // declarations - // - -public: - be_visitor_array_cdr_op_ch (be_visitor_context *ctx); - // constructor - - ~be_visitor_array_cdr_op_ch (void); - // destructor - - virtual int visit_array (be_array *node); - // visit array - -}; - -#endif /* _BE_VISITOR_ARRAY_CDR_OP_CH_H_ */ diff --git a/TAO/TAO_IDL/be_include/be_visitor_array/cdr_op_ci.h b/TAO/TAO_IDL/be_include/be_visitor_array/cdr_op_ci.h deleted file mode 100644 index 266e2696623..00000000000 --- a/TAO/TAO_IDL/be_include/be_visitor_array/cdr_op_ci.h +++ /dev/null @@ -1,86 +0,0 @@ -// -// $Id$ -// - -// ============================================================================ -// -// = LIBRARY -// TAO IDL -// -// = FILENAME -// cdr_op_ci.h -// -// = DESCRIPTION -// Visitors for generation of code for Arrays in client stubs. This one -// generates the CDR operators. -// -// = AUTHOR -// Aniruddha Gokhale -// -// ============================================================================ - -#ifndef _BE_VISITOR_ARRAY_CDR_OP_CI_H_ -#define _BE_VISITOR_ARRAY_CDR_OP_CI_H_ - -// ************************************************************ -// class be_visitor_array_cs -// ************************************************************ - -class be_visitor_array_cdr_op_ci : public be_visitor_decl -{ - // - // = TITLE - // be_visitor_array_cdr_op_ci - // - // = DESCRIPTION - // This is a concrete visitor for array that generates the CDR operator - // implementations - // - -public: - be_visitor_array_cdr_op_ci (be_visitor_context *ctx); - // constructor - - ~be_visitor_array_cdr_op_ci (void); - // destructor - - virtual int visit_array (be_array *node); - // visit array - - // = Visitor methods on array types - - virtual int visit_enum (be_enum *node); - // visit an enum - - virtual int visit_interface (be_interface *node); - // visit an interface - - virtual int visit_interface_fwd (be_interface_fwd *node); - // visit an interface forward node - - virtual int visit_predefined_type (be_predefined_type *node); - // visit a predefined type node - - virtual int visit_sequence (be_sequence *node); - // visit sequence - - virtual int visit_string (be_string *node); - // visit string - - virtual int visit_structure (be_structure *node); - // visit structure - - virtual int visit_typedef (be_typedef *node); - // visit typedef - - virtual int visit_union (be_union *node); - // visit union - -protected: - - int visit_node (be_type *); - // helper that does the common job - -}; - -#endif /* _BE_VISITOR_ARRAY_CDR_OP_CI_H_ */ diff --git a/TAO/TAO_IDL/be_include/be_visitor_attribute.h b/TAO/TAO_IDL/be_include/be_visitor_attribute.h deleted file mode 100644 index 9c5aa46988e..00000000000 --- a/TAO/TAO_IDL/be_include/be_visitor_attribute.h +++ /dev/null @@ -1,29 +0,0 @@ -/* -*- c++ -*- */ -// -// $Id$ -// - -// ============================================================================ -// -// = LIBRARY -// TAO IDL -// -// = FILENAME -// be_visitor_attribute.h -// -// = DESCRIPTION -// Concrete visitor for the Attribute class -// -// = AUTHOR -// Aniruddha Gokhale -// -// ============================================================================ - -#ifndef TAO_BE_VISITOR_ATTRIBUTE_H -#define TAO_BE_VISITOR_ATTRIBUTE_H - -#include "be_visitor.h" -#include "be_visitor_scope.h" -#include "be_visitor_attribute/attribute.h" - -#endif diff --git a/TAO/TAO_IDL/be_include/be_visitor_attribute/attribute.h b/TAO/TAO_IDL/be_include/be_visitor_attribute/attribute.h deleted file mode 100644 index 1c2493722c0..00000000000 --- a/TAO/TAO_IDL/be_include/be_visitor_attribute/attribute.h +++ /dev/null @@ -1,52 +0,0 @@ -/* -*- c++ -*- */ -// -// $Id$ -// - -// ============================================================================ -// -// = LIBRARY -// TAO IDL -// -// = FILENAME -// attribute.h -// -// = DESCRIPTION -// Visitor for the Attribute class. -// -// = AUTHOR -// Aniruddha Gokhale -// -// ============================================================================ - -#ifndef _BE_VISITOR_ATTRIBUTE_ATTRIBUTE_H -#define _BE_VISITOR_ATTRIBUTE_ATTRIBUTE_H - -// ************************************************************ -// Attribute visitor -// ************************************************************ - -class be_visitor_attribute : public be_visitor_decl -{ - // - // = TITLE - // be_visitor_attribute - // - // = DESCRIPTION - // This is a concrete visitor to generate code for attributes. We have one - // class for mapping into the client and server. - // - // -public: - be_visitor_attribute (be_visitor_context *ctx); - // constructor - - ~be_visitor_attribute (void); - // destructor - - virtual int visit_attribute (be_attribute *node); - // visit attribute. We provide code for this method in the derived class - -}; - -#endif /* _BE_VISITOR_ATTRIBUTE_ATTRIBUTE_H*/ diff --git a/TAO/TAO_IDL/be_include/be_visitor_constant.h b/TAO/TAO_IDL/be_include/be_visitor_constant.h deleted file mode 100644 index acc6f65d31f..00000000000 --- a/TAO/TAO_IDL/be_include/be_visitor_constant.h +++ /dev/null @@ -1,30 +0,0 @@ -/* -*- C++ -*- */ -// -// $Id$ -// - -// ============================================================================ -// -// = LIBRARY -// TAO IDL -// -// = FILENAME -// be_visitor_constant.h -// -// = DESCRIPTION -// Concrete visitor for the constant class -// -// = AUTHOR -// Aniruddha Gokhale -// -// ============================================================================ - -#ifndef TAO_BE_VISITOR_CONSTANT_H -#define TAO_BE_VISITOR_CONSTANT_H - -#include "be_visitor.h" -#include "be_visitor_scope.h" -#include "be_visitor_constant/constant_ch.h" -#include "be_visitor_constant/constant_cs.h" - -#endif // TAO_BE_VISITOR_CONSTANT_H diff --git a/TAO/TAO_IDL/be_include/be_visitor_constant/constant_ch.h b/TAO/TAO_IDL/be_include/be_visitor_constant/constant_ch.h deleted file mode 100644 index c0e53447176..00000000000 --- a/TAO/TAO_IDL/be_include/be_visitor_constant/constant_ch.h +++ /dev/null @@ -1,47 +0,0 @@ -/* -*- C++ -*- */ -// -// $Id$ -// - -// ============================================================================ -// -// = LIBRARY -// TAO IDL -// -// = FILENAME -// constant_ch.h -// -// = DESCRIPTION -// Concrete visitor for the constant class generating code in the client header. -// -// = AUTHOR -// Aniruddha Gokhale -// -// ============================================================================ - -#ifndef _BE_VISITOR_CONSTANT_CONSTANT_CH_H_ -#define _BE_VISITOR_CONSTANT_CONSTANT_CH_H_ - -class be_visitor_constant_ch : public be_visitor_decl -{ - // - // = TITLE - // be_visitor_constant_ch - // - // = DESCRIPTION - // This is the visitor for constant for the header file - // - // -public: - be_visitor_constant_ch (be_visitor_context *ctx); - // constructor - - ~be_visitor_constant_ch (void); - // destructor - - virtual int visit_constant (be_constant *node); - // visit constant. - -}; - -#endif /* _BE_VISITOR_CONSTANT_CONSTANT_CH_H_ */ diff --git a/TAO/TAO_IDL/be_include/be_visitor_constant/constant_cs.h b/TAO/TAO_IDL/be_include/be_visitor_constant/constant_cs.h deleted file mode 100644 index db2fccf96ca..00000000000 --- a/TAO/TAO_IDL/be_include/be_visitor_constant/constant_cs.h +++ /dev/null @@ -1,54 +0,0 @@ -/* -*- C++ -*- */ -// -// $Id$ -// - -// ============================================================================ -// -// = LIBRARY -// TAO IDL -// -// = FILENAME -// constant_cs.h -// -// = DESCRIPTION -// Concrete visitor for the constant class generating code in the client stub. -// -// = AUTHOR -// Aniruddha Gokhale -// -// ============================================================================ - -#ifndef _BE_VISITOR_CONSTANT_CONSTANT_CS_H_ -#define _BE_VISITOR_CONSTANT_CONSTANT_CS_H_ - -class be_visitor_constant_cs : public be_visitor_decl -{ - // - // = TITLE - // be_visitor_constant_cs - // - // = DESCRIPTION - // This is the visitor for constant for the impl file - // - // -public: - be_visitor_constant_cs (be_visitor_context *ctx); - // constructor - - ~be_visitor_constant_cs (void); - // destructor - - virtual int visit_constant (be_constant *node); - // visit constant - - // = special methods - - virtual int gen_nested_namespace_begin (be_module *node); - // generate the nested namespace begins - - virtual int gen_nested_namespace_end (be_module *node); - // generate the nested namespace ends -}; - -#endif /* _BE_VISITOR_CONSTANT_CONSTANT_CS_H_ */ diff --git a/TAO/TAO_IDL/be_include/be_visitor_context.h b/TAO/TAO_IDL/be_include/be_visitor_context.h deleted file mode 100644 index 0487711615a..00000000000 --- a/TAO/TAO_IDL/be_include/be_visitor_context.h +++ /dev/null @@ -1,249 +0,0 @@ -// -// $Id$ -// - -/* -*- C++ -*- */ -// ============================================================================ -// -// = LIBRARY -// TAO IDL -// -// = FILENAME -// be_visitor_context.h -// -// = DESCRIPTION -// This class serves to provide all the necessary context information to the -// visitor as it generates code. This may include the scope inside which the -// code is generated, the output file that is being used, and others. This -// context information will be passed to the abstract/concrete visitor -// factory which in turn will use it to construct the right visitor. -// -// = AUTHOR -// Aniruddha Gokhale -// -// ============================================================================ - -#ifndef TAO_BE_VISITOR_CONTEXT_H -#define TAO_BE_VISITOR_CONTEXT_H - -class be_visitor_context -{ -public: - be_visitor_context (void); - // default constructor - - be_visitor_context (const be_visitor_context &ctx); - // default constructor - - ~be_visitor_context (void); - // destructor - - be_visitor_context &operator= (const be_visitor_context &ctx); - // assignment operator - - // =helpers - - void reset (void); - // reset the context - - void stream (TAO_OutStream *os); - // set the output stream - - TAO_OutStream *stream (void); - // get the stream - - void scope (be_decl *scope); - // set the scope - - be_decl *scope (void); - // get the scope in which code will be generated - - void node (be_decl *node); - // current node being visited - - be_decl *node (void); - // node being visited - - void state (TAO_CodeGen::CG_STATE); - // code generation state - - TAO_CodeGen::CG_STATE state (void); - // return the code generation state - - void sub_state (TAO_CodeGen::CG_SUB_STATE); - // code generation state - - TAO_CodeGen::CG_SUB_STATE sub_state (void); - // return the code generation state - - void alias (be_typedef *node); - // set the alias node (if any) - - be_typedef *alias (void); - // return the aliased node (if any) - - void tdef (be_typedef *node); - // set the typedef node (if any) - - be_typedef *tdef (void); - // return the typedef node (if any) - - void attribute (be_attribute *attr); - // set the attribute node if any - - be_attribute *attribute (void); - // get the attribute node - - void exception (idl_bool); - // is it the special ctor for exceptions? - - idl_bool exception (void); - // is it the special ctor for exceptions? - - void comma (idl_bool); - // scope supoorts generation of comma after each element - - idl_bool comma (void); - // are we supposed to generate a comma? - - be_interface* interface (void) const; - void interface (be_interface*); - // In some cases we need to generate the objects of one interface as - // members of a derived visitor (the TIE classes are a good - // example). This field is use to hold the interface where we are - // *generating* code, as opposed to the interfaces where the methods - // or structures are defined. - - // = helpers - - // visitors may need the actual type of the node stored in this context. We - // could have kept separate nodes but that would have increased the size of - // the context class by a large extent. So we will rely on the - // "narrow_from_decl" approach - - // two types of helpers are provided here. One of them returns the node as - // the desired actual type. The other returns the scope as the desired type. - - be_argument *be_node_as_argument (void); - // return the node as argument if possible - - be_array *be_node_as_array (void); - // return the node as array if possible - - be_attribute *be_node_as_attribute (void); - // return the node as attribute if possible - - be_constant *be_node_as_constant (void); - // return the node as constant if possible - - be_enum *be_node_as_enum (void); - // return the node as enum if possible - - be_enum_val *be_node_as_enum_val (void); - // return the node as enum_val if possible - - be_exception *be_node_as_exception (void); - // return the node as exception if possible - - be_field *be_node_as_field (void); - // return the node as field if possible - - be_interface *be_node_as_interface (void); - // return the node as interface if possible - - be_interface_fwd *be_node_as_interface_fwd (void); - // return the node as interface_fwd if possible - - be_module *be_node_as_module (void); - // return the node as module if possible - - be_operation *be_node_as_operation (void); - // return the node as operation if possible - - be_predefined_type *be_node_as_predefined_type (void); - // return the node as predefined_type if possible - - be_root *be_node_as_root (void); - // return the node as root if possible - - be_sequence *be_node_as_sequence (void); - // return the node as sequence if possible - - be_string *be_node_as_string (void); - // return the node as string if possible - - be_structure *be_node_as_structure (void); - // return the node as structure if possible - - be_typedef *be_node_as_typedef (void); - // return the node as typedef if possible - - be_union *be_node_as_union (void); - // return the node as union if possible - - be_union_branch *be_node_as_union_branch (void); - // return the node as union_branch if possible - - // for scope - - be_enum *be_scope_as_enum (void); - // return the scope as enum if possible - - be_exception *be_scope_as_exception (void); - // return the scope as exception if possible - - be_interface *be_scope_as_interface (void); - // return the scope as interface if possible - - be_module *be_scope_as_module (void); - // return the scope as module if possible - - be_operation *be_scope_as_operation (void); - // return the scope as operation if possible - - be_root *be_scope_as_root (void); - // return the scope as root if possible - - be_structure *be_scope_as_structure (void); - // return the scope as structure if possible - - be_union *be_scope_as_union (void); - // return the scope as union if possible - -private: - TAO_CodeGen::CG_STATE state_; - // code generation state - - TAO_CodeGen::CG_SUB_STATE sub_state_; - // code generation state - - TAO_OutStream *os_; - // current output stream - - be_decl *scope_; - // current scope in which code is generated - - be_decl *node_; - // current node - - be_typedef *alias_; - // aliased node used as a scoped name to define IDL types. - - be_typedef *tdef_; - // typedef node - - be_attribute *attr_; - // attribute node stored here while generating its code - - idl_bool exception_; - // is it the special ctor for exceptions? - - idl_bool comma_; - // whether scope should generate a comma after every element - - be_interface* interface_; - // See the method declaration above. -}; - - -#endif /* BE_VISITOR_CONTEXT_H */ diff --git a/TAO/TAO_IDL/be_include/be_visitor_decl.h b/TAO/TAO_IDL/be_include/be_visitor_decl.h deleted file mode 100644 index e217dbacd01..00000000000 --- a/TAO/TAO_IDL/be_include/be_visitor_decl.h +++ /dev/null @@ -1,58 +0,0 @@ -// -// $Id$ -// -/* -*- c++ -*- */ -// ============================================================================ -// -// = LIBRARY -// TAO IDL -// -// = FILENAME -// be_visitor_decl.h -// -// = DESCRIPTION -// Concrete visitor for the base "BE_Decl" node -// -// = AUTHOR -// Aniruddha Gokhale and Carlos O'Ryan -// -// ============================================================================ - -#ifndef TAO_BE_VISITOR_DECL_H -#define TAO_BE_VISITOR_DECL_H - -#include "be_visitor.h" -#include "be_codegen.h" - -class be_visitor_decl : public be_visitor -{ - // - // = TITLE - // be_visitor_decl - // - // = DESCRIPTION - // This is a concrete visitor for the be_decl node. Its only purpose is to - // maintain state information for the derived visitor - // -public: - be_visitor_decl (be_visitor_context *ctx); - // constructor - - ~be_visitor_decl (void); - // destructor - -protected: - // using a protected mechanism will allow derived visitors to access this - // information - - be_visitor_context *ctx_; - // any context information required by the visitor - - int gen_anonymous_base_type (be_type *bt, - TAO_CodeGen::CG_STATE cg_state); - // Factors out common code used when one anonymous type is - // contained by another. -}; - - -#endif // TAO_BE_VISITOR_DECL_H diff --git a/TAO/TAO_IDL/be_include/be_visitor_enum.h b/TAO/TAO_IDL/be_include/be_visitor_enum.h deleted file mode 100644 index d8deaff8f47..00000000000 --- a/TAO/TAO_IDL/be_include/be_visitor_enum.h +++ /dev/null @@ -1,34 +0,0 @@ -/* -*- c++ -*- */ -// -// $Id$ -// - -// ============================================================================ -// -// = LIBRARY -// TAO IDL -// -// = FILENAME -// be_visitor_enum.h -// -// = DESCRIPTION -// Concrete visitor for the enum class -// -// = AUTHOR -// Aniruddha Gokhale -// -// ============================================================================ - -#ifndef TAO_BE_VISITOR_ENUM_H -#define TAO_BE_VISITOR_ENUM_H - -#include "be_visitor.h" -#include "be_visitor_scope.h" -#include "be_visitor_enum/enum_ch.h" -#include "be_visitor_enum/enum_cs.h" -#include "be_visitor_enum/any_op_ch.h" -#include "be_visitor_enum/any_op_cs.h" -#include "be_visitor_enum/cdr_op_ch.h" -#include "be_visitor_enum/cdr_op_ci.h" - -#endif /* TAO_BE_VISITOR_ENUM_H */ diff --git a/TAO/TAO_IDL/be_include/be_visitor_enum/any_op_ch.h b/TAO/TAO_IDL/be_include/be_visitor_enum/any_op_ch.h deleted file mode 100644 index f9d25ecf81c..00000000000 --- a/TAO/TAO_IDL/be_include/be_visitor_enum/any_op_ch.h +++ /dev/null @@ -1,47 +0,0 @@ -/* -*- C++ -*- */ -// -// $Id$ -// - -// ============================================================================ -// -// = LIBRARY -// TAO IDL -// -// = FILENAME -// any_op_ch.h -// -// = DESCRIPTION -// Concrete visitor for Enums generating code for the Any operators -// -// = AUTHOR -// Aniruddha Gokhale -// -// ============================================================================ - -#ifndef _BE_VISITOR_ENUM_ANY_OP_CH_H_ -#define _BE_VISITOR_ENUM_ANY_OP_CH_H_ - -class be_visitor_enum_any_op_ch : public be_visitor_scope -{ - // - // = TITLE - // be_visitor_enum_any_op_ch - // - // = DESCRIPTION - // This is a concrete visitor for enum that generates the Any operator - // declarations - // - -public: - be_visitor_enum_any_op_ch (be_visitor_context *ctx); - // constructor - - ~be_visitor_enum_any_op_ch (void); - // destructor - - virtual int visit_enum (be_enum *node); - // visit enum -}; - -#endif /* _BE_VISITOR_ENUM_ANY_OP_CH_H_ */ diff --git a/TAO/TAO_IDL/be_include/be_visitor_enum/any_op_cs.h b/TAO/TAO_IDL/be_include/be_visitor_enum/any_op_cs.h deleted file mode 100644 index f3db76c2be4..00000000000 --- a/TAO/TAO_IDL/be_include/be_visitor_enum/any_op_cs.h +++ /dev/null @@ -1,47 +0,0 @@ -/* -*- C++ -*- */ -// -// $Id$ -// - -// ============================================================================ -// -// = LIBRARY -// TAO IDL -// -// = FILENAME -// any_op_cs.h -// -// = DESCRIPTION -// Concrete visitor for Enums generating code for the Any operators -// -// = AUTHOR -// Aniruddha Gokhale -// -// ============================================================================ - -#ifndef _BE_VISITOR_ENUM_ANY_OP_CS_H_ -#define _BE_VISITOR_ENUM_ANY_OP_CS_H_ - -class be_visitor_enum_any_op_cs : public be_visitor_scope -{ - // - // = TITLE - // be_visitor_enum_any_op_cs - // - // = DESCRIPTION - // This is a concrete visitor for enum that generates the Any operator - // implementations - // - -public: - be_visitor_enum_any_op_cs (be_visitor_context *ctx); - // constructor - - ~be_visitor_enum_any_op_cs (void); - // destructor - - virtual int visit_enum (be_enum *node); - // visit enum -}; - -#endif /* _BE_VISITOR_ENUM_ANY_OP_CS_H_ */ diff --git a/TAO/TAO_IDL/be_include/be_visitor_enum/cdr_op_ch.h b/TAO/TAO_IDL/be_include/be_visitor_enum/cdr_op_ch.h deleted file mode 100644 index c8ba0e49f81..00000000000 --- a/TAO/TAO_IDL/be_include/be_visitor_enum/cdr_op_ch.h +++ /dev/null @@ -1,47 +0,0 @@ -/* -*- C++ -*- */ -// -// $Id$ -// - -// ============================================================================ -// -// = LIBRARY -// TAO IDL -// -// = FILENAME -// cdr_op_ch.h -// -// = DESCRIPTION -// Concrete visitor for Enums generating code for the CDR operators -// -// = AUTHOR -// Aniruddha Gokhale -// -// ============================================================================ - -#ifndef _BE_VISITOR_ENUM_CDR_OP_CH_H_ -#define _BE_VISITOR_ENUM_CDR_OP_CH_H_ - -class be_visitor_enum_cdr_op_ch : public be_visitor_scope -{ - // - // = TITLE - // be_visitor_enum_cdr_op_ch - // - // = DESCRIPTION - // This is a concrete visitor for enum that generates the CDR operator - // declarations - // - -public: - be_visitor_enum_cdr_op_ch (be_visitor_context *ctx); - // constructor - - ~be_visitor_enum_cdr_op_ch (void); - // destructor - - virtual int visit_enum (be_enum *node); - // visit enum -}; - -#endif /* _BE_VISITOR_ENUM_CDR_OP_CH_H_ */ diff --git a/TAO/TAO_IDL/be_include/be_visitor_enum/cdr_op_ci.h b/TAO/TAO_IDL/be_include/be_visitor_enum/cdr_op_ci.h deleted file mode 100644 index 59ea94f3486..00000000000 --- a/TAO/TAO_IDL/be_include/be_visitor_enum/cdr_op_ci.h +++ /dev/null @@ -1,47 +0,0 @@ -/* -*- C++ -*- */ -// -// $Id$ -// - -// ============================================================================ -// -// = LIBRARY -// TAO IDL -// -// = FILENAME -// cdr_op_ci.h -// -// = DESCRIPTION -// Concrete visitor for Enums generating code for the CDR operators -// -// = AUTHOR -// Aniruddha Gokhale -// -// ============================================================================ - -#ifndef _BE_VISITOR_ENUM_CDR_OP_CI_H_ -#define _BE_VISITOR_ENUM_CDR_OP_CI_H_ - -class be_visitor_enum_cdr_op_ci : public be_visitor_scope -{ - // - // = TITLE - // be_visitor_enum_cdr_op_ci - // - // = DESCRIPTION - // This is a concrete visitor for enum that generates the CDR operator - // implementations - // - -public: - be_visitor_enum_cdr_op_ci (be_visitor_context *ctx); - // constructor - - ~be_visitor_enum_cdr_op_ci (void); - // destructor - - virtual int visit_enum (be_enum *node); - // visit enum -}; - -#endif /* _BE_VISITOR_ENUM_CDR_OP_CI_H_ */ diff --git a/TAO/TAO_IDL/be_include/be_visitor_enum/enum_ch.h b/TAO/TAO_IDL/be_include/be_visitor_enum/enum_ch.h deleted file mode 100644 index 8a3f922dce4..00000000000 --- a/TAO/TAO_IDL/be_include/be_visitor_enum/enum_ch.h +++ /dev/null @@ -1,56 +0,0 @@ -/* -*- C++ -*- */ -// -// $Id$ -// - -// ============================================================================ -// -// = LIBRARY -// TAO IDL -// -// = FILENAME -// enum_ch.h -// -// = DESCRIPTION -// Concrete visitor for Enums generating code in the client header. -// -// = AUTHOR -// Aniruddha Gokhale -// -// ============================================================================ - -#ifndef _BE_VISITOR_ENUM_ENUM_CH_H_ -#define _BE_VISITOR_ENUM_ENUM_CH_H_ - -class be_visitor_enum_ch : public be_visitor_scope -{ - // - // = TITLE - // be_visitor_enum_ch - // - // = DESCRIPTION - // This is the base visitor for enum for the header file - // - // -public: - be_visitor_enum_ch (be_visitor_context *ctx); - // conenumor - - ~be_visitor_enum_ch (void); - // deenumor - - virtual int visit_enum (be_enum *node); - // visit enum. - - // =visit operations on syntactically valid elements in our scope - - virtual int visit_enum_val (be_enum_val *node); - // visit enum_val - - // = helper - - virtual int post_process (be_decl *); - // generate a comma after each element is processed -}; - -#endif /* _BE_VISITOR_ENUM_ENUM_CH_H_ */ diff --git a/TAO/TAO_IDL/be_include/be_visitor_enum/enum_cs.h b/TAO/TAO_IDL/be_include/be_visitor_enum/enum_cs.h deleted file mode 100644 index a40455f2190..00000000000 --- a/TAO/TAO_IDL/be_include/be_visitor_enum/enum_cs.h +++ /dev/null @@ -1,47 +0,0 @@ -/* -*- C++ -*- */ -// -// $Id$ -// - -// ============================================================================ -// -// = LIBRARY -// TAO IDL -// -// = FILENAME -// enum_cs.h -// -// = DESCRIPTION -// Concrete visitor for Enums generating code in the client stubs. -// -// = AUTHOR -// Aniruddha Gokhale -// -// ============================================================================ - -#ifndef _BE_VISITOR_ENUM_ENUM_CS_H_ -#define _BE_VISITOR_ENUM_ENUM_CS_H_ - -class be_visitor_enum_cs : public be_visitor_scope -{ - // - // = TITLE - // be_visitor_enum_cs - // - // = DESCRIPTION - // This is the visitor for enum for the impl file - // - // -public: - be_visitor_enum_cs (be_visitor_context *ctx); - // conenumor - - ~be_visitor_enum_cs (void); - // deenumor - - virtual int visit_enum (be_enum *node); - // visit enum and generate the typecode - -}; - -#endif /* _BE_VISITOR_ENUM_ENUM_CS_H_ */ diff --git a/TAO/TAO_IDL/be_include/be_visitor_exception.h b/TAO/TAO_IDL/be_include/be_visitor_exception.h deleted file mode 100644 index 64c85361e1a..00000000000 --- a/TAO/TAO_IDL/be_include/be_visitor_exception.h +++ /dev/null @@ -1,39 +0,0 @@ -/* -*- c++ -*- */ -// -// $Id$ -// - -// ============================================================================ -// -// = LIBRARY -// TAO IDL -// -// = FILENAME -// be_visitor_exception.h -// -// = DESCRIPTION -// Concrete visitor for the Exception class -// -// = AUTHOR -// Aniruddha Gokhale -// -// ============================================================================ - -#ifndef TAO_BE_VISITOR_EXCEPTION_H -#define TAO_BE_VISITOR_EXCEPTION_H - -#include "be_visitor.h" -#include "be_visitor_scope.h" -#include "be_visitor_exception/exception.h" -#include "be_visitor_exception/exception_ch.h" -#include "be_visitor_exception/exception_ci.h" -#include "be_visitor_exception/exception_cs.h" -#include "be_visitor_exception/ctor.h" -#include "be_visitor_exception/ctor_assign.h" -#include "be_visitor_exception/any_op_ch.h" -#include "be_visitor_exception/any_op_cs.h" -#include "be_visitor_exception/cdr_op_ch.h" -#include "be_visitor_exception/cdr_op_ci.h" -#include "be_visitor_exception/cdr_op_cs.h" - -#endif /* TAO_BE_VISITOR_EXCEPTION_H */ diff --git a/TAO/TAO_IDL/be_include/be_visitor_exception/any_op_ch.h b/TAO/TAO_IDL/be_include/be_visitor_exception/any_op_ch.h deleted file mode 100644 index ee3ff396dc1..00000000000 --- a/TAO/TAO_IDL/be_include/be_visitor_exception/any_op_ch.h +++ /dev/null @@ -1,51 +0,0 @@ -/* -*- C++ -*- */ -// -// $Id$ -// - -// ============================================================================ -// -// = LIBRARY -// TAO IDL -// -// = FILENAME -// any_op_ch.h -// -// = DESCRIPTION -// Visitor for Exceptions. -// For code generation of Any operator in client header -// -// = AUTHOR -// Aniruddha Gokhale -// -// ============================================================================ - -#ifndef _BE_VISITOR_EXCEPTION_ANY_OP_CH_H_ -#define _BE_VISITOR_EXCEPTION_ANY_OP_CH_H_ - -class be_visitor_exception_any_op_ch : public be_visitor_scope -{ - // - // = TITLE - // be_visitor_exception_any_op_ch - // - // = DESCRIPTION - // This is a concrete visitor for exception that generates the Any operator - // declarations - // - -public: - be_visitor_exception_any_op_ch (be_visitor_context *ctx); - // constructor - - ~be_visitor_exception_any_op_ch (void); - // destructor - - virtual int visit_exception (be_exception *node); - // visit exception - - virtual int visit_field (be_field *node); - // visit field -}; - -#endif /* _BE_VISITOR_EXCEPTION_ANY_OP_CH_H_ */ diff --git a/TAO/TAO_IDL/be_include/be_visitor_exception/any_op_cs.h b/TAO/TAO_IDL/be_include/be_visitor_exception/any_op_cs.h deleted file mode 100644 index 45a82cb7e23..00000000000 --- a/TAO/TAO_IDL/be_include/be_visitor_exception/any_op_cs.h +++ /dev/null @@ -1,51 +0,0 @@ -/* -*- C++ -*- */ -// -// $Id$ -// - -// ============================================================================ -// -// = LIBRARY -// TAO IDL -// -// = FILENAME -// any_op_cs.h -// -// = DESCRIPTION -// Visitor for Exceptions. -// For code generation of Any operator in client stubs -// -// = AUTHOR -// Aniruddha Gokhale -// -// ============================================================================ - -#ifndef _BE_VISITOR_EXCEPTION_ANY_OP_CS_H_ -#define _BE_VISITOR_EXCEPTION_ANY_OP_CS_H_ - -class be_visitor_exception_any_op_cs : public be_visitor_scope -{ - // - // = TITLE - // be_visitor_exception_any_op_cs - // - // = DESCRIPTION - // This is a concrete visitor for exception that generates the Any operator - // implementations - // - -public: - be_visitor_exception_any_op_cs (be_visitor_context *ctx); - // constructor - - ~be_visitor_exception_any_op_cs (void); - // destructor - - virtual int visit_exception (be_exception *node); - // visit exception - - virtual int visit_field (be_field *node); - // visit field -}; - -#endif /* _BE_VISITOR_EXCEPTION_ANY_OP_CS_H_ */ diff --git a/TAO/TAO_IDL/be_include/be_visitor_exception/cdr_op_ch.h b/TAO/TAO_IDL/be_include/be_visitor_exception/cdr_op_ch.h deleted file mode 100644 index dd5df6266e2..00000000000 --- a/TAO/TAO_IDL/be_include/be_visitor_exception/cdr_op_ch.h +++ /dev/null @@ -1,50 +0,0 @@ -/* -*- c++ -*- */ -// -// $Id$ -// - -// ============================================================================ -// -// = LIBRARY -// TAO IDL -// -// = FILENAME -// cdr_op_ch.h -// -// = DESCRIPTION -// Concrete visitor for the Exception class -// This one provides code generation for the CDR operators for the exception -// in the client header. -// -// = AUTHOR -// Aniruddha Gokhale -// -// ============================================================================ - -#ifndef _BE_VISITOR_EXCEPTION_CDR_OP_CH_H_ -#define _BE_VISITOR_EXCEPTION_CDR_OP_CH_H_ - -class be_visitor_exception_cdr_op_ch : public be_visitor_exception -{ - // - // = TITLE - // be_visitor_exception_cdr_op_ch - // - // = DESCRIPTION - // This is a concrete visitor for exception that generates the CDR operator - // declarations - // - -public: - be_visitor_exception_cdr_op_ch (be_visitor_context *ctx); - // constructor - - ~be_visitor_exception_cdr_op_ch (void); - // destructor - - virtual int visit_exception (be_exception *node); - // visit exception - -}; - -#endif /* _BE_VISITOR_EXCEPTION_CDR_OP_CH_H_ */ diff --git a/TAO/TAO_IDL/be_include/be_visitor_exception/cdr_op_ci.h b/TAO/TAO_IDL/be_include/be_visitor_exception/cdr_op_ci.h deleted file mode 100644 index 27b716925ed..00000000000 --- a/TAO/TAO_IDL/be_include/be_visitor_exception/cdr_op_ci.h +++ /dev/null @@ -1,52 +0,0 @@ -/* -*- c++ -*- */ -// -// $Id$ -// - -// ============================================================================ -// -// = LIBRARY -// TAO IDL -// -// = FILENAME -// cdr_op_ch.h -// -// = DESCRIPTION -// Concrete visitor for the Exception class -// This one provides code generation for the CDR operators for the exception -// in the client stub. -// -// = AUTHOR -// Aniruddha Gokhale -// -// ============================================================================ - -#ifndef _BE_VISITOR_EXCEPTION_CDR_OP_CI_H_ -#define _BE_VISITOR_EXCEPTION_CDR_OP_CI_H_ - -class be_visitor_exception_cdr_op_ci : public be_visitor_exception -{ - // - // = TITLE - // be_visitor_exception_cdr_op_ci - // - // = DESCRIPTION - // This is a concrete visitor for exception that generates the CDR operator - // implementations - // - -public: - be_visitor_exception_cdr_op_ci (be_visitor_context *ctx); - // constructor - - ~be_visitor_exception_cdr_op_ci (void); - // destructor - - virtual int visit_exception (be_exception *node); - // visit exception - - virtual int post_process (be_decl *); - // any post processing that needs to be done after a scope element is handled -}; - -#endif /* _BE_VISITOR_EXCEPTION_CDR_OP_CI_H_ */ diff --git a/TAO/TAO_IDL/be_include/be_visitor_exception/cdr_op_cs.h b/TAO/TAO_IDL/be_include/be_visitor_exception/cdr_op_cs.h deleted file mode 100644 index f93ca246e61..00000000000 --- a/TAO/TAO_IDL/be_include/be_visitor_exception/cdr_op_cs.h +++ /dev/null @@ -1,49 +0,0 @@ -/* -*- c++ -*- */ -// -// $Id$ -// - -// ============================================================================ -// -// = LIBRARY -// TAO IDL -// -// = FILENAME -// cdr_op_ch.h -// -// = DESCRIPTION -// Concrete visitor for the Exception class -// This one provides code generation for the CDR operators for the exception -// in the client stub. -// -// = AUTHOR -// Aniruddha Gokhale -// -// ============================================================================ - -#ifndef _BE_VISITOR_EXCEPTION_CDR_OP_CS_H_ -#define _BE_VISITOR_EXCEPTION_CDR_OP_CS_H_ - -class be_visitor_exception_cdr_op_cs : public be_visitor_exception -{ - // - // = TITLE - // be_visitor_exception_cdr_op_cs - // - // = DESCRIPTION - // This is a concrete visitor for exception that generates the CDR operator - // implementations - // - -public: - be_visitor_exception_cdr_op_cs (be_visitor_context *ctx); - // constructor - - ~be_visitor_exception_cdr_op_cs (void); - // destructor - - virtual int visit_exception (be_exception *node); - // visit exception -}; - -#endif /* _BE_VISITOR_EXCEPTION_CDR_OP_CS_H_ */ diff --git a/TAO/TAO_IDL/be_include/be_visitor_exception/ctor.h b/TAO/TAO_IDL/be_include/be_visitor_exception/ctor.h deleted file mode 100644 index 80529d2a203..00000000000 --- a/TAO/TAO_IDL/be_include/be_visitor_exception/ctor.h +++ /dev/null @@ -1,83 +0,0 @@ -/* -*- C++ -*- */ -// -// $Id$ -// - -// ============================================================================ -// -// = LIBRARY -// TAO IDL -// -// = FILENAME -// ctor.h -// -// = DESCRIPTION -// Visitor for Exceptions. -// For code generation for the special constructor for exceptions -// -// = AUTHOR -// Aniruddha Gokhale -// -// ============================================================================ - -#ifndef _BE_VISITOR_EXCEPTION_CTOR_H_ -#define _BE_VISITOR_EXCEPTION_CTOR_H_ - -class be_visitor_exception_ctor : public be_visitor_scope -{ - // =TITLE - // be_visitor_exception_ctor - // - // =DESCRIPTION - // generation of the special constructor -public: - be_visitor_exception_ctor (be_visitor_context *ctx); - // ctor - - ~be_visitor_exception_ctor (void); - // dtor - - virtual int post_process (be_decl *); - // post processing after each element - - virtual int visit_exception (be_exception *node); - // visit exception. We provide code for this method in the derived class - - virtual int visit_field (be_field *node); - // visit the argument node - - // =visit all the nodes that can be the types for the field - - virtual int visit_array (be_array *node); - // visit array type - - virtual int visit_enum (be_enum *node); - // visit the enum node - - virtual int visit_interface (be_interface *node); - // visit interface - - virtual int visit_interface_fwd (be_interface_fwd *node); - // visit interface forward - - virtual int visit_predefined_type (be_predefined_type *node); - // visit predefined type - - virtual int visit_sequence (be_sequence *node); - // visit sequence type - - virtual int visit_string (be_string *node); - // visit string type - - virtual int visit_structure (be_structure *node); - // visit structure type - - virtual int visit_union (be_union *node); - // visit union type - - virtual int visit_typedef (be_typedef *node); - // visit the typedef type - -}; - -#endif /* _BE_VISITOR_EXCEPTION_CTOR_H_ */ diff --git a/TAO/TAO_IDL/be_include/be_visitor_exception/ctor_assign.h b/TAO/TAO_IDL/be_include/be_visitor_exception/ctor_assign.h deleted file mode 100644 index 52b6ab67dd7..00000000000 --- a/TAO/TAO_IDL/be_include/be_visitor_exception/ctor_assign.h +++ /dev/null @@ -1,81 +0,0 @@ -/* -*- C++ -*- */ -// -// $Id$ -// - -// ============================================================================ -// -// = LIBRARY -// TAO IDL -// -// = FILENAME -// ctor_assign.h -// -// = DESCRIPTION -// Visitor for Exceptions. -// For code generation for the special constructor and assignment operator -// for exceptions. -// -// = AUTHOR -// Aniruddha Gokhale -// -// ============================================================================ - -#ifndef _BE_VISITOR_EXCEPTION_CTOR_ASSIGN_H_ -#define _BE_VISITOR_EXCEPTION_CTOR_ASSIGN_H_ - -class be_visitor_exception_ctor_assign : public be_visitor_scope -{ - // =TITLE - // be_visitor_exception_ctor_assign - // - // =DESCRIPTION - // generation of the assignment statements in -public: - be_visitor_exception_ctor_assign (be_visitor_context *ctx); - // ctor - - ~be_visitor_exception_ctor_assign (void); - // dtor - - virtual int visit_exception (be_exception *node); - // visit exception. - - virtual int visit_field (be_field *node); - // visit the field node - - // =visit all the nodes that can be the types for the field - - virtual int visit_array (be_array *node); - // visit array type - - virtual int visit_enum (be_enum *node); - // visit the enum node - - virtual int visit_interface (be_interface *node); - // visit interface - - virtual int visit_interface_fwd (be_interface_fwd *node); - // visit interface forward - - virtual int visit_predefined_type (be_predefined_type *node); - // visit predefined type - - virtual int visit_sequence (be_sequence *node); - // visit sequence type - - virtual int visit_string (be_string *node); - // visit string type - - virtual int visit_structure (be_structure *node); - // visit structure type - - virtual int visit_union (be_union *node); - // visit union type - - virtual int visit_typedef (be_typedef *node); - // visit the typedef type - -}; - -#endif /* _BE_VISITOR_EXCEPTION_CTOR_ASSIGN_H_ */ diff --git a/TAO/TAO_IDL/be_include/be_visitor_exception/exception.h b/TAO/TAO_IDL/be_include/be_visitor_exception/exception.h deleted file mode 100644 index c4be6b317dc..00000000000 --- a/TAO/TAO_IDL/be_include/be_visitor_exception/exception.h +++ /dev/null @@ -1,52 +0,0 @@ -/* -*- C++ -*- */ -// -// $Id$ -// - -// ============================================================================ -// -// = LIBRARY -// TAO IDL -// -// = FILENAME -// exception.h -// -// = DESCRIPTION -// Visitor for Exceptions. -// This is the generic (common) visitor for all exceptions. -// -// = AUTHOR -// Aniruddha Gokhale -// -// ============================================================================ - -#ifndef _BE_VISITOR_EXCEPTION_EXCEPTION_H_ -#define _BE_VISITOR_EXCEPTION_EXCEPTION_H_ - -class be_visitor_exception : public be_visitor_scope -{ - // - // = TITLE - // be_visitor_exception - // - // = DESCRIPTION - // This is the base visitor for exception - // - // -public: - be_visitor_exception (be_visitor_context *ctx); - // ctor - - ~be_visitor_exception (void); - // dtor - - virtual int visit_exception (be_exception *node); - // visit exception. We provide code for this method in the derived class - - // =visit operations on syntactically valid elements in our scope - - virtual int visit_field (be_field *node); - // visit field -}; - -#endif /* _BE_VISITOR_EXCEPTION_EXCEPTION_H_ */ diff --git a/TAO/TAO_IDL/be_include/be_visitor_exception/exception_ch.h b/TAO/TAO_IDL/be_include/be_visitor_exception/exception_ch.h deleted file mode 100644 index c664d166593..00000000000 --- a/TAO/TAO_IDL/be_include/be_visitor_exception/exception_ch.h +++ /dev/null @@ -1,48 +0,0 @@ -/* -*- C++ -*- */ -// -// $Id$ -// - -// ============================================================================ -// -// = LIBRARY -// TAO IDL -// -// = FILENAME -// exception_ch.h -// -// = DESCRIPTION -// Visitor for Exceptions. -// For code generation in client header -// -// = AUTHOR -// Aniruddha Gokhale -// -// ============================================================================ - -#ifndef _BE_VISITOR_EXCEPTION_EXCEPTION_CH_H_ -#define _BE_VISITOR_EXCEPTION_EXCEPTION_CH_H_ - -class be_visitor_exception_ch : public be_visitor_exception -{ - // - // = TITLE - // be_visitor_exception_ch - // - // = DESCRIPTION - // This is a concrete visitor to generate the client header for exception - // - // -public: - be_visitor_exception_ch (be_visitor_context *ctx); - // constructureor - - ~be_visitor_exception_ch (void); - // destructureor - - virtual int visit_exception (be_exception *node); - // visit exception. We provide code for this method in the derived class - -}; - -#endif /* _BE_VISITOR_EXCEPTION_EXCEPTION_CH_H_ */ diff --git a/TAO/TAO_IDL/be_include/be_visitor_exception/exception_ci.h b/TAO/TAO_IDL/be_include/be_visitor_exception/exception_ci.h deleted file mode 100644 index ccd48fbb07b..00000000000 --- a/TAO/TAO_IDL/be_include/be_visitor_exception/exception_ci.h +++ /dev/null @@ -1,48 +0,0 @@ -/* -*- C++ -*- */ -// -// $Id$ -// - -// ============================================================================ -// -// = LIBRARY -// TAO IDL -// -// = FILENAME -// exception_ci.h -// -// = DESCRIPTION -// Visitor for Exceptions. -// For code generation in client inline. -// -// = AUTHOR -// Aniruddha Gokhale -// -// ============================================================================ - -#ifndef _BE_VISITOR_EXCEPTION_EXCEPTION_CI_H_ -#define _BE_VISITOR_EXCEPTION_EXCEPTION_CI_H_ - -class be_visitor_exception_ci : public be_visitor_exception -{ - // - // = TITLE - // be_visitor_exception_ci - // - // = DESCRIPTION - // This is a concrete visitor to generate the client inline for exception - // - // -public: - be_visitor_exception_ci (be_visitor_context *ctx); - // ctor - - ~be_visitor_exception_ci (void); - // dtor - - virtual int visit_exception (be_exception *node); - // visit exception. - -}; - -#endif /* _BE_VISITOR_EXCEPTION_EXCEPTION_CI_H_ */ diff --git a/TAO/TAO_IDL/be_include/be_visitor_exception/exception_cs.h b/TAO/TAO_IDL/be_include/be_visitor_exception/exception_cs.h deleted file mode 100644 index a3d0c0e9c62..00000000000 --- a/TAO/TAO_IDL/be_include/be_visitor_exception/exception_cs.h +++ /dev/null @@ -1,48 +0,0 @@ -/* -*- C++ -*- */ -// -// $Id$ -// - -// ============================================================================ -// -// = LIBRARY -// TAO IDL -// -// = FILENAME -// exception_cs.h -// -// = DESCRIPTION -// Visitor for Exceptions. -// For code generation in client stubs. -// -// = AUTHOR -// Aniruddha Gokhale -// -// ============================================================================ - -#ifndef _BE_VISITOR_EXCEPTION_EXCEPTION_CS_H_ -#define _BE_VISITOR_EXCEPTION_EXCEPTION_CS_H_ - -class be_visitor_exception_cs : public be_visitor_exception -{ - // - // = TITLE - // be_visitor_exception_cs - // - // = DESCRIPTION - // This is a concrete visitor to generate the client stubs for exception - // - // -public: - be_visitor_exception_cs (be_visitor_context *ctx); - // ctor - - ~be_visitor_exception_cs (void); - // dtor - - virtual int visit_exception (be_exception *node); - // visit exception. We provide code for this method in the derived class - -}; - -#endif /* _BE_VISITOR_EXCEPTION_EXCEPTION_CS_H_ */ diff --git a/TAO/TAO_IDL/be_include/be_visitor_exception/exception_ctor.h b/TAO/TAO_IDL/be_include/be_visitor_exception/exception_ctor.h deleted file mode 100644 index fd0ddf8ff0c..00000000000 --- a/TAO/TAO_IDL/be_include/be_visitor_exception/exception_ctor.h +++ /dev/null @@ -1,83 +0,0 @@ -/* -*- C++ -*- */ -// -// $Id$ -// - -// ============================================================================ -// -// = LIBRARY -// TAO IDL -// -// = FILENAME -// exception_ctor.h -// -// = DESCRIPTION -// Visitor for Exceptions. -// For code generation for the special constructor for exceptions -// -// = AUTHOR -// Aniruddha Gokhale -// -// ============================================================================ - -#ifndef _BE_VISITOR_EXCEPTION_EXCEPTION_CTOR_H_ -#define _BE_VISITOR_EXCEPTION_EXCEPTION_CTOR_H_ - -class be_visitor_exception_ctor : public be_visitor_scope -{ - // =TITLE - // be_visitor_exception_ctor - // - // =DESCRIPTION - // generation of the special constructor -public: - be_visitor_exception_ctor (be_visitor_context *ctx); - // ctor - - ~be_visitor_exception_ctor (void); - // dtor - - virtual int post_process (be_decl *); - // post processing after each element - - virtual int visit_exception (be_exception *node); - // visit exception. We provide code for this method in the derived class - - virtual int visit_field (be_field *node); - // visit the argument node - - // =visit all the nodes that can be the types for the field - - virtual int visit_array (be_array *node); - // visit array type - - virtual int visit_enum (be_enum *node); - // visit the enum node - - virtual int visit_interface (be_interface *node); - // visit interface - - virtual int visit_interface_fwd (be_interface_fwd *node); - // visit interface forward - - virtual int visit_predefined_type (be_predefined_type *node); - // visit predefined type - - virtual int visit_sequence (be_sequence *node); - // visit sequence type - - virtual int visit_string (be_string *node); - // visit string type - - virtual int visit_structure (be_structure *node); - // visit structure type - - virtual int visit_union (be_union *node); - // visit union type - - virtual int visit_typedef (be_typedef *node); - // visit the typedef type - -}; - -#endif /* _BE_VISITOR_EXCEPTION_EXCEPTION_CTOR_H_ */ diff --git a/TAO/TAO_IDL/be_include/be_visitor_factory.h b/TAO/TAO_IDL/be_include/be_visitor_factory.h deleted file mode 100644 index 2061b51bb04..00000000000 --- a/TAO/TAO_IDL/be_include/be_visitor_factory.h +++ /dev/null @@ -1,112 +0,0 @@ -// $Id$ - -/* -*- c++ -*- */ -// ============================================================================ -// -// = LIBRARY -// TAO IDL Backend -// -// = FILENAME -// be_visitor_factory.h -// -// = DESCRIPTION -// Define an abstract visitor Factory and a bunch of concrete visitor -// factories (whcih are singletons). -// -// = AUTHOR -// Aniruddha Gokhale -// -// ============================================================================ - -#ifndef TAO_BE_VISITOR_FACTORY_H -#define TAO_BE_VISITOR_FACTORY_H - -class TAO_Visitor_Factory -{ - // =TITLE - // TAO_Visitor_Factory - // - // =DESCRIPTION - // An abstract visitor factory class - -public: - - TAO_Visitor_Factory (void); - // constructor - - virtual ~TAO_Visitor_Factory (void); - // destructor - - virtual be_visitor *make_visitor (be_visitor_context *) = 0; - // make a visitor -}; - -class TAO_Common_Visitor_Factory : public TAO_Visitor_Factory -{ - // =TITLE - // TAO_Common_Visitor_Factory - // - // =DESCRIPTION - // A concrete visitor factory for generating the visitors irrsepective of - // whether we use compiled or interpretive marshaling - -public: - - TAO_Common_Visitor_Factory (void); - // constructor - - virtual ~TAO_Common_Visitor_Factory (void); - // destructor - - virtual be_visitor *make_visitor (be_visitor_context *); - // make the right visitor based on the context and code generation state -}; - -class TAO_Interpretive_Visitor_Factory : public TAO_Visitor_Factory -{ - // =TITLE - // TAO_Interpretive_Visitor_Factory - // - // =DESCRIPTION - // A concrete visitor factory for generating the visitors for stubs and - // skeletons using interpretive marshaling. - -public: - - TAO_Interpretive_Visitor_Factory (void); - // constructor - - virtual ~TAO_Interpretive_Visitor_Factory (void); - // destructor - - virtual be_visitor *make_visitor (be_visitor_context *); - // make the right visitor based on the context and code generation state -}; - -class TAO_Compiled_Visitor_Factory : public TAO_Visitor_Factory -{ - // =TITLE - // TAO_Compiled_Visitor_Factory - // - // =DESCRIPTION - // A concrete visitor factory for generating the visitors for stubs and - // skeletons using compiled marshaling. - -public: - - TAO_Compiled_Visitor_Factory (void); - // constructor - - virtual ~TAO_Compiled_Visitor_Factory (void); - // destructor - - virtual be_visitor *make_visitor (be_visitor_context *); - // make the right visitor based on the context and code generation state -}; - -// Singleton instance of the BE Visitor Factory -typedef ACE_Singleton<TAO_Common_Visitor_Factory, ACE_SYNCH_RECURSIVE_MUTEX> TAO_COMMON_VISITOR_FACTORY; -typedef ACE_Singleton<TAO_Interpretive_Visitor_Factory, ACE_SYNCH_RECURSIVE_MUTEX> TAO_INTERPRETIVE_VISITOR_FACTORY; -typedef ACE_Singleton<TAO_Compiled_Visitor_Factory, ACE_SYNCH_RECURSIVE_MUTEX> TAO_COMPILED_VISITOR_FACTORY; - -#endif /* if !defined _TAO_BE_VISITOR_FACTORY_H_ */ diff --git a/TAO/TAO_IDL/be_include/be_visitor_field.h b/TAO/TAO_IDL/be_include/be_visitor_field.h deleted file mode 100644 index 47913a1c9c4..00000000000 --- a/TAO/TAO_IDL/be_include/be_visitor_field.h +++ /dev/null @@ -1,33 +0,0 @@ -// -// $Id$ -// -/* -*- c++ -*- */ -// ============================================================================ -// -// = LIBRARY -// TAO IDL -// -// = FILENAME -// be_visitor_field.h -// -// = DESCRIPTION -// Concrete visitor for the base "BE_Field" node -// -// = AUTHOR -// Aniruddha Gokhale -// -// ============================================================================ - -#ifndef TAO_BE_VISITOR_FIELD_H -#define TAO_BE_VISITOR_FIELD_H - -#include "be_visitor_decl.h" - -#include "be_visitor_field/field_ch.h" -#include "be_visitor_field/field_ci.h" -#include "be_visitor_field/field_cs.h" -#include "be_visitor_field/cdr_op_ch.h" -#include "be_visitor_field/cdr_op_ci.h" -#include "be_visitor_field/cdr_op_cs.h" - -#endif /* TAO_BE_VISITOR_FIELD_H */ diff --git a/TAO/TAO_IDL/be_include/be_visitor_field/cdr_op_ch.h b/TAO/TAO_IDL/be_include/be_visitor_field/cdr_op_ch.h deleted file mode 100644 index 0e3a9555fd6..00000000000 --- a/TAO/TAO_IDL/be_include/be_visitor_field/cdr_op_ch.h +++ /dev/null @@ -1,66 +0,0 @@ -// -// $Id$ -// -/* -*- c++ -*- */ -// ============================================================================ -// -// = LIBRARY -// TAO IDL -// -// = FILENAME -// cdr_op_ch.h -// -// = DESCRIPTION -// Concrete visitor for the base "BE_Field" node -// This generates code for structure members in the client header. -// -// = AUTHOR -// Aniruddha Gokhale -// -// ============================================================================ - -#ifndef _BE_VISITOR_FIELD_CDR_OP_CH_H_ -#define _BE_VISITOR_FIELD_CDR_OP_CH_H_ - -class be_visitor_field_cdr_op_ch : public be_visitor_decl -{ - // - // = TITLE - // be_visitor_cdr_op_ch - // - // = DESCRIPTION - // This is a concrete visitor for the be_field node for the client header. - // -public: - be_visitor_field_cdr_op_ch (be_visitor_context *ctx); - // constructor - - ~be_visitor_field_cdr_op_ch (void); - // destructor - - virtual int visit_field (be_field *node); - // visit the field node - - // =visit operations on all possible data types that a field can be - - virtual int visit_array (be_array *node); - // visit array type - - virtual int visit_enum (be_enum *node); - // visit enum type - - virtual int visit_sequence (be_sequence *node); - // visit sequence type - - virtual int visit_structure (be_structure *node); - // visit structure type - - virtual int visit_typedef (be_typedef *node); - // visit typedefed type - - virtual int visit_union (be_union *node); - // visit union type - -}; - -#endif /* _BE_VISITOR_FIELD_CDR_OP_CH_H_ */ diff --git a/TAO/TAO_IDL/be_include/be_visitor_field/cdr_op_ci.h b/TAO/TAO_IDL/be_include/be_visitor_field/cdr_op_ci.h deleted file mode 100644 index 35d1a4a136b..00000000000 --- a/TAO/TAO_IDL/be_include/be_visitor_field/cdr_op_ci.h +++ /dev/null @@ -1,108 +0,0 @@ -// -// $Id$ -// -/* -*- c++ -*- */ -// ============================================================================ -// -// = LIBRARY -// TAO IDL -// -// = FILENAME -// cdr_op_ci.h -// -// = DESCRIPTION -// Concrete visitor for the base "BE_Field" node -// This generates code for structure members in the client header. -// -// = AUTHOR -// Aniruddha Gokhale -// -// ============================================================================ - -#ifndef _BE_VISITOR_FIELD_CDR_OP_CI_H_ -#define _BE_VISITOR_FIELD_CDR_OP_CI_H_ - -#include "be_visitor_scope.h" - -class be_visitor_field_cdr_op_ci : public be_visitor_decl -{ - // - // = TITLE - // be_visitor_field_cdr_op_ci - // - // = DESCRIPTION - // This is a concrete visitor for the be_field node for the client header. - // -public: - be_visitor_field_cdr_op_ci (be_visitor_context *ctx); - // constructor - - ~be_visitor_field_cdr_op_ci (void); - // destructor - - virtual int visit_field (be_field *node); - // visit the field node - - // =visit operations on all possible data types that a field can be - - virtual int visit_array (be_array *node); - // visit array type - - virtual int visit_enum (be_enum *node); - // visit enum type - - virtual int visit_interface (be_interface *node); - // visit interface type - - virtual int visit_interface_fwd (be_interface_fwd *node); - // visit interface forward type - - virtual int visit_predefined_type (be_predefined_type *node); - // visit predefined type - - virtual int visit_sequence (be_sequence *node); - // visit sequence type - - virtual int visit_string (be_string *node); - // visit string type - - virtual int visit_structure (be_structure *node); - // visit structure type - - virtual int visit_typedef (be_typedef *node); - // visit typedefed type - - virtual int visit_union (be_union *node); - // visit union type - -}; - -class be_visitor_cdr_op_field_decl : public be_visitor_scope -{ - // - // = TITLE - // be_visitor_cdr_op_ci_field_decl - // - // = DESCRIPTION - // When generating CDR operators for fields of structures and/or - // unions it may be necessary to define some local variables (for - // instance to hold temporary T_forany objects); this visitor - // generates that code. - // -public: - be_visitor_cdr_op_field_decl (be_visitor_context *ctx); - // constructor - - virtual int visit_field (be_field *node); - // visit the field node - - // = visit operations for data types that require a local variable. - - virtual int visit_array (be_array *node); - // visit array type - - virtual int visit_typedef (be_typedef *node); - // visit typedef type -}; - -#endif /* _BE_VISITOR_FIELD_CDR_OP_CI_H_ */ diff --git a/TAO/TAO_IDL/be_include/be_visitor_field/cdr_op_cs.h b/TAO/TAO_IDL/be_include/be_visitor_field/cdr_op_cs.h deleted file mode 100644 index dd5731bac68..00000000000 --- a/TAO/TAO_IDL/be_include/be_visitor_field/cdr_op_cs.h +++ /dev/null @@ -1,57 +0,0 @@ -// -// $Id$ -// -/* -*- c++ -*- */ -// ============================================================================ -// -// = LIBRARY -// TAO IDL -// -// = FILENAME -// cdr_op_cs.h -// -// = DESCRIPTION -// Concrete visitor for the base "BE_Field" node -// This generates code for structure members in the client header. -// -// = AUTHOR -// Aniruddha Gokhale -// -// ============================================================================ - -#ifndef _BE_VISITOR_FIELD_CDR_OP_CS_H_ -#define _BE_VISITOR_FIELD_CDR_OP_CS_H_ - -#include "be_visitor_scope.h" - -class be_visitor_field_cdr_op_cs : public be_visitor_decl -{ - // - // = TITLE - // be_visitor_field_cdr_op_cs - // - // = DESCRIPTION - // This is a concrete visitor for the be_field node for the client header. - // -public: - be_visitor_field_cdr_op_cs (be_visitor_context *ctx); - // constructor - - ~be_visitor_field_cdr_op_cs (void); - // destructor - - virtual int visit_field (be_field *node); - // visit the field node - - // =visit operations on all possible data types that a field can be - - virtual int visit_array (be_array *node); - virtual int visit_enum (be_enum *node); - virtual int visit_sequence (be_sequence *node); - virtual int visit_structure (be_structure *node); - virtual int visit_typedef (be_typedef *node); - virtual int visit_union (be_union *node); - -}; - -#endif /* _BE_VISITOR_FIELD_CDR_OP_CS_H_ */ diff --git a/TAO/TAO_IDL/be_include/be_visitor_field/field_ch.h b/TAO/TAO_IDL/be_include/be_visitor_field/field_ch.h deleted file mode 100644 index 27e7d702085..00000000000 --- a/TAO/TAO_IDL/be_include/be_visitor_field/field_ch.h +++ /dev/null @@ -1,86 +0,0 @@ -// -// $Id$ -// -/* -*- c++ -*- */ -// ============================================================================ -// -// = LIBRARY -// TAO IDL -// -// = FILENAME -// field_ch.h -// -// = DESCRIPTION -// Concrete visitor for the base "BE_Field" node -// This generates code for structure members in the client header. -// -// = AUTHOR -// Aniruddha Gokhale -// -// ============================================================================ - -#ifndef _BE_VISITOR_FIELD_CH_H_ -#define _BE_VISITOR_FIELD_CH_H_ - -class be_visitor_field_ch : public be_visitor_decl -{ - // - // = TITLE - // be_visitor_field_ch - // - // = DESCRIPTION - // This is a concrete visitor for the be_field node for the client header. - // -public: - be_visitor_field_ch (be_visitor_context *ctx); - // constructor - - ~be_visitor_field_ch (void); - // destructor - - virtual int visit_field (be_field *node); - // visit the field node - - // =visit operations on all possible data types that a field can be - - virtual int visit_array (be_array *node); - // visit array type - - virtual int visit_enum (be_enum *node); - // visit enum type - - virtual int visit_interface (be_interface *node); - // visit interface type - - virtual int visit_interface_fwd (be_interface_fwd *node); - // visit interface forward type - -#ifdef IDL_HAS_VALUETYPE - virtual int visit_valuetype (be_valuetype *node); - // visit valuetype type - - virtual int visit_valuetype_fwd (be_valuetype_fwd *node); - // visit valuetype forward type -#endif /* IDL_HAS_VALUETYPE */ - - virtual int visit_predefined_type (be_predefined_type *node); - // visit predefined type - - virtual int visit_sequence (be_sequence *node); - // visit sequence type - - virtual int visit_string (be_string *node); - // visit string type - - virtual int visit_structure (be_structure *node); - // visit structure type - - virtual int visit_typedef (be_typedef *node); - // visit typedefed type - - virtual int visit_union (be_union *node); - // visit union type - -}; - -#endif /* _BE_VISITOR_FIELD_CH_H_ */ diff --git a/TAO/TAO_IDL/be_include/be_visitor_field/field_ci.h b/TAO/TAO_IDL/be_include/be_visitor_field/field_ci.h deleted file mode 100644 index b2b71678b70..00000000000 --- a/TAO/TAO_IDL/be_include/be_visitor_field/field_ci.h +++ /dev/null @@ -1,65 +0,0 @@ -// -// $Id$ -// -/* -*- c++ -*- */ -// ============================================================================ -// -// = LIBRARY -// TAO IDL -// -// = FILENAME -// field_ci.h -// -// = DESCRIPTION -// Concrete visitor for the base "BE_Field" node -// This generates code for structure members in the client inline. -// -// = AUTHOR -// Aniruddha Gokhale -// -// ============================================================================ - -#ifndef _BE_VISITOR_FIELD_CI_H_ -#define _BE_VISITOR_FIELD_CI_H_ - -class be_visitor_field_ci : public be_visitor_decl -{ - // - // = TITLE - // be_visitor_field_ci - // - // = DESCRIPTION - // This is a concrete visitor for the be_field node for the client inline - // file - // -public: - be_visitor_field_ci (be_visitor_context *ctx); - // constructor - - ~be_visitor_field_ci (void); - // destructor - - virtual int visit_field (be_field *node); - // visit the field node - - // =visit operations on all possible data types that a field can be and for - // which inline code must be generated - - virtual int visit_array (be_array *node); - // visit array type - - virtual int visit_sequence (be_sequence *node); - // visit sequence type - - virtual int visit_structure (be_structure *node); - // visit structure type - - virtual int visit_typedef (be_typedef *node); - // visit typedefed type - - virtual int visit_union (be_union *node); - // visit union type - -}; - -#endif /* _BE_VISITOR_FIELD_CI_H_ */ diff --git a/TAO/TAO_IDL/be_include/be_visitor_field/field_cs.h b/TAO/TAO_IDL/be_include/be_visitor_field/field_cs.h deleted file mode 100644 index c48a1fd5969..00000000000 --- a/TAO/TAO_IDL/be_include/be_visitor_field/field_cs.h +++ /dev/null @@ -1,68 +0,0 @@ -// -// $Id$ -// -/* -*- c++ -*- */ -// ============================================================================ -// -// = LIBRARY -// TAO IDL -// -// = FILENAME -// field_cs.h -// -// = DESCRIPTION -// Concrete visitor for the base "BE_Field" node -// This generates code for structure members in the client stubs. -// -// = AUTHOR -// Aniruddha Gokhale -// -// ============================================================================ - -#ifndef _BE_VISITOR_FIELD_CS_H_ -#define _BE_VISITOR_FIELD_CS_H_ - -class be_visitor_field_cs : public be_visitor_decl -{ - // - // = TITLE - // be_visitor_field_cs - // - // = DESCRIPTION - // This is a concrete visitor for the be_field node for the client stubs - // file - // -public: - be_visitor_field_cs (be_visitor_context *ctx); - // constructor - - ~be_visitor_field_cs (void); - // destructor - - virtual int visit_field (be_field *node); - // visit the field node - - // =visit operations on all possible data types that a field can be and impl - // code must be generated - - virtual int visit_array (be_array *node); - // visit array type - - virtual int visit_enum (be_enum *node); - // visit enum type - - virtual int visit_sequence (be_sequence *node); - // visit sequence type - - virtual int visit_structure (be_structure *node); - // visit structure type - - virtual int visit_typedef (be_typedef *node); - // visit typedefed type - - virtual int visit_union (be_union *node); - // visit union type - -}; - -#endif /* _BE_VISITOR_FIELD_CS_H_ */ diff --git a/TAO/TAO_IDL/be_include/be_visitor_interface.h b/TAO/TAO_IDL/be_include/be_visitor_interface.h deleted file mode 100644 index e35aed8ac7b..00000000000 --- a/TAO/TAO_IDL/be_include/be_visitor_interface.h +++ /dev/null @@ -1,54 +0,0 @@ - -// $Id$ -// -/* -*- c++ -*- */ -// ============================================================================ -// -// = LIBRARY -// TAO IDL -// -// = FILENAME -// be_visitor_interface.h -// -// = DESCRIPTION -// Concrete visitor for the Interface class -// -// = AUTHOR -// Carlos O'Ryan and Aniruddha Gokhale -// -// ============================================================================ - -#ifndef TAO_BE_VISITOR_INTERFACE_H -#define TAO_BE_VISITOR_INTERFACE_H - -#include "be_visitor_scope.h" - -#include "be_visitor_interface/interface.h" -#include "be_visitor_interface/interface_ch.h" -#include "be_visitor_interface/interface_ci.h" -#include "be_visitor_interface/interface_cs.h" -#include "be_visitor_interface/interface_sh.h" -#include "be_visitor_interface/interface_ih.h" -#include "be_visitor_interface/interface_si.h" -#include "be_visitor_interface/interface_ss.h" -#include "be_visitor_interface/interface_is.h" -#include "be_visitor_interface/thru_poa_collocated_sh.h" -#include "be_visitor_interface/thru_poa_collocated_ss.h" -#include "be_visitor_interface/direct_collocated_sh.h" -#include "be_visitor_interface/direct_collocated_ss.h" -#include "be_visitor_interface/any_op_ch.h" -#include "be_visitor_interface/any_op_cs.h" -#include "be_visitor_interface/cdr_op_ch.h" -#include "be_visitor_interface/cdr_op_ci.h" -#include "be_visitor_interface/cdr_op_cs.h" -#include "be_visitor_interface/tie_sh.h" -#include "be_visitor_interface/tie_si.h" -#include "be_visitor_interface/ami_handler_fwd_ch.h" -#include "be_visitor_interface/ami_handler_fwd_ci.h" -#include "be_visitor_interface/ami_handler_servant_ch.h" -#include "be_visitor_interface/ami_handler_servant_cs.h" -#include "be_visitor_interface/ami_handler_stub_ch.h" -#include "be_visitor_interface/ami_handler_stub_cs.h" -#include "be_visitor_interface/collocated_ami_handler_ch.h" - -#endif /* _BE_VISITOR_INTERFACE_H */ diff --git a/TAO/TAO_IDL/be_include/be_visitor_interface/ami_handler_ch.h b/TAO/TAO_IDL/be_include/be_visitor_interface/ami_handler_ch.h deleted file mode 100644 index ec5b0136d7d..00000000000 --- a/TAO/TAO_IDL/be_include/be_visitor_interface/ami_handler_ch.h +++ /dev/null @@ -1,47 +0,0 @@ -// -// $Id$ -// -/* -*- c++ -*- */ -// ============================================================================ -// -// = LIBRARY -// TAO IDL -// -// = FILENAME -// ami_handler_ch.h -// -// = DESCRIPTION -// Concrete visitor for the Interface node. -// This provides for code generation in the server header -// -// = AUTHOR -// Aniruddha Gokhale and Alexander Babu Arulanthu -// <alex@cs.wustl.edu> -// -// ============================================================================ - -#ifndef _BE_INTERFACE_AMI_HANDLER_CH_H_ -#define _BE_INTERFACE_AMI_HANDLER_CH_H_ - -class be_visitor_interface_ami_handler_ch : public be_visitor_interface -{ - // - // = TITLE - // be_visitor_interface_ami_handler_ch - // - // = DESCRIPTION - // This is a concrete visitor to generate the server header for interface - // - // -public: - be_visitor_interface_ami_handler_ch (be_visitor_context *ctx); - // constructor - - ~be_visitor_interface_ami_handler_ch (void); - // destructor - - virtual int visit_interface (be_interface *node); - // set the right context and make a visitor -}; - -#endif /* _BE_INTERFACE_AMI_HANDLER_CH_H_ */ diff --git a/TAO/TAO_IDL/be_include/be_visitor_interface/ami_handler_cs.h b/TAO/TAO_IDL/be_include/be_visitor_interface/ami_handler_cs.h deleted file mode 100644 index 00f3472e5d2..00000000000 --- a/TAO/TAO_IDL/be_include/be_visitor_interface/ami_handler_cs.h +++ /dev/null @@ -1,46 +0,0 @@ -// -// $Id$ -// -/* -*- c++ -*- */ -// ============================================================================ -// -// = LIBRARY -// TAO IDL -// -// = FILENAME -// ami_handler_cs.h -// -// = DESCRIPTION -// Concrete visitor for the Interface node. -// This one provides code generation for interfaces in the client stubs. -// -// = AUTHOR -// Aniruddha Gokhale -// -// ============================================================================ - -#ifndef _BE_INTERFACE_AMI_HANDLER_CS_H_ -#define _BE_INTERFACE_AMI_HANDLER_CS_H_ - -class be_visitor_ami_handler_cs : public be_visitor_interface -{ - // - // = TITLE - // be_visitor_ami_handler_cs - // - // = DESCRIPTION - // This is a concrete visitor to generate the AMI Handler - // skeletons for interface. - // -public: - be_visitor_ami_handler_cs (be_visitor_context *ctx); - // constructor - - ~be_visitor_ami_handler_cs (void); - // destructor - - virtual int visit_interface (be_interface *node); - // set the right context and make a visitor -}; - -#endif /* _BE_INTERFACE_AMI_HANDLER_CS_H_ */ diff --git a/TAO/TAO_IDL/be_include/be_visitor_interface/ami_handler_fwd_ch.h b/TAO/TAO_IDL/be_include/be_visitor_interface/ami_handler_fwd_ch.h deleted file mode 100644 index 158675919c9..00000000000 --- a/TAO/TAO_IDL/be_include/be_visitor_interface/ami_handler_fwd_ch.h +++ /dev/null @@ -1,48 +0,0 @@ -// -// $Id$ -// -/* -*- c++ -*- */ -// ============================================================================ -// -// = LIBRARY -// TAO IDL -// -// = FILENAME -// interface_fwd_ch.h -// -// = DESCRIPTION -// Concrete visitor for the Interface Forward node. -// This one provides code generation for interface forward node. -// -// = AUTHOR -// Aniruddha Gokhale and Alexander Babu Arulanthu -// <alex@cs.wustl.edu> -// -// ============================================================================ - -#ifndef _BE_INTERFACE_AMI_HANDLER_FWD_CH_H_ -#define _BE_INTERFACE_AMI_HANDLER_FWD_CH_H_ - -class be_visitor_interface_ami_handler_fwd_ch : public be_visitor_decl -{ - // - // = TITLE - // be_visitor_interface_ami_handler_fwd_ch - // - // = DESCRIPTION - // This visitor visits the an interface and generates fwd - // declaration code for the AMI Handler interface. - // - // -public: - be_visitor_interface_ami_handler_fwd_ch (be_visitor_context *ctx); - // constructor - - ~be_visitor_interface_ami_handler_fwd_ch (void); - // destructor - - virtual int visit_interface (be_interface *node); - // visit interface. -}; - -#endif /* _BE_INTERFACE_AMI_HANDLER_FWD_CH_H_ */ diff --git a/TAO/TAO_IDL/be_include/be_visitor_interface/ami_handler_fwd_ci.h b/TAO/TAO_IDL/be_include/be_visitor_interface/ami_handler_fwd_ci.h deleted file mode 100644 index 5714eeeaac1..00000000000 --- a/TAO/TAO_IDL/be_include/be_visitor_interface/ami_handler_fwd_ci.h +++ /dev/null @@ -1,49 +0,0 @@ -// -// $Id$ -// -/* -*- c++ -*- */ -// ============================================================================ -// -// = LIBRARY -// TAO IDL -// -// = FILENAME -// ami_handler_fwd_ci.h -// -// = DESCRIPTION -// Concrete visitor for the Interface Forward node. -// This one provides code generation for interface forward node. -// -// = AUTHOR -// Aniruddha Gokhale and Alexander Babu Arulanthu -// <alex@cs.wustl.edu> -// -// ============================================================================ - -#ifndef _BE_INTERFACE_AMI_HANDLER_FWD_CI_H_ -#define _BE_INTERFACE_AMI_HANDLER_FWD_CI_H_ - -class be_visitor_interface_ami_handler_fwd_ci : public be_visitor_decl -{ - // - // = TITLE - // be_visitor_interface_ami_handler_fwd_ci - // - // = DESCRIPTION - // This visitor visits the interface to generate the forward - // declration code for the AMI reply handler. - // - // -public: - be_visitor_interface_ami_handler_fwd_ci (be_visitor_context *ctx); - // constructor - - ~be_visitor_interface_ami_handler_fwd_ci (void); - // destructor - - virtual int visit_interface (be_interface *node); - // visit interface. - -}; - -#endif /* _BE_INTERFACE_INTERFACE_FWD_CH_I_ */ diff --git a/TAO/TAO_IDL/be_include/be_visitor_interface/ami_handler_servant_ch.h b/TAO/TAO_IDL/be_include/be_visitor_interface/ami_handler_servant_ch.h deleted file mode 100644 index 8bc8857ed4f..00000000000 --- a/TAO/TAO_IDL/be_include/be_visitor_interface/ami_handler_servant_ch.h +++ /dev/null @@ -1,47 +0,0 @@ -// -// $Id$ -// -/* -*- c++ -*- */ -// ============================================================================ -// -// = LIBRARY -// TAO IDL -// -// = FILENAME -// ami_handler_servant_ch.h -// -// = DESCRIPTION -// Concrete visitor for the Interface node. -// This provides for code generation in the server header -// -// = AUTHOR -// Aniruddha Gokhale and Alexander Babu Arulanthu -// <alex@cs.wustl.edu> -// -// ============================================================================ - -#ifndef _BE_INTERFACE_AMI_HANDLER_SERVANT_CH_H_ -#define _BE_INTERFACE_AMI_HANDLER_SERVANT_CH_H_ - -class be_visitor_interface_ami_handler_servant_ch : public be_visitor_interface -{ - // - // = TITLE - // be_visitor_interface_ami_handler_servant_ch - // - // = DESCRIPTION - // This is a concrete visitor to generate the server header for interface - // - // -public: - be_visitor_interface_ami_handler_servant_ch (be_visitor_context *ctx); - // constructor - - ~be_visitor_interface_ami_handler_servant_ch (void); - // destructor - - virtual int visit_interface (be_interface *node); - // set the right context and make a visitor -}; - -#endif /* _BE_INTERFACE_AMI_HANDLER_SERVANT_CH_H_ */ diff --git a/TAO/TAO_IDL/be_include/be_visitor_interface/ami_handler_servant_cs.h b/TAO/TAO_IDL/be_include/be_visitor_interface/ami_handler_servant_cs.h deleted file mode 100644 index 71a082763e4..00000000000 --- a/TAO/TAO_IDL/be_include/be_visitor_interface/ami_handler_servant_cs.h +++ /dev/null @@ -1,46 +0,0 @@ -// $Id$ -// -// -/* -*- c++ -*- */ -// ============================================================================ -// -// = LIBRARY -// TAO IDL -// -// = FILENAME -// ami_handler_servant_cs.h -// -// = DESCRIPTION -// Concrete visitor for the Interface node. -// This provides for code generation in the server skeleton -// -// = AUTHOR -// Aniruddha Gokhale -// -// ============================================================================ - -#ifndef _BE_INTERFACE_INTERFACE_AMI_HANDLER_SERVANT_CS_H_ -#define _BE_INTERFACE_INTERFACE_AMI_HANDLER_SERVANT_CS_H_ - -class be_visitor_interface_ami_handler_servant_cs : public be_visitor_interface -{ - // - // = TITLE - // be_visitor_interface_ami_handler_servant_cs - // - // = DESCRIPTION - // This is a concrete visitor to generate the server skeletons for interface - // - // -public: - be_visitor_interface_ami_handler_servant_cs (be_visitor_context *ctx); - // constructor - - ~be_visitor_interface_ami_handler_servant_cs (void); - // destructor - - virtual int visit_interface (be_interface *node); - // set the right context and make a visitor -}; - -#endif /* _BE_INTERFACE_INTERFACE_AMI_HANDLER_SERVANT_CS_H_ */ diff --git a/TAO/TAO_IDL/be_include/be_visitor_interface/ami_handler_stub_ch.h b/TAO/TAO_IDL/be_include/be_visitor_interface/ami_handler_stub_ch.h deleted file mode 100644 index 149201d00db..00000000000 --- a/TAO/TAO_IDL/be_include/be_visitor_interface/ami_handler_stub_ch.h +++ /dev/null @@ -1,50 +0,0 @@ -// -// $Id$ -// -/* -*- c++ -*- */ -// ============================================================================ -// -// = LIBRARY -// TAO IDL -// -// = FILENAME -// ami_handler_stub_ch.h -// -// = DESCRIPTION -// Concrete visitor for the Interface node. -// This one provides code generation for interfaces in the client header. -// -// = AUTHOR -// Aniruddha Gokhale and Alexander Babu Arulanthu -// <alex@cs.wustl.edu> -// -// ============================================================================ - -#ifndef _BE_INTERFACE_AMI_HANDLER_STUB_CH_H_ -#define _BE_INTERFACE_AMI_HANDLER_STUB_CH_H_ - -// we need derived interface visitors for the client and server header files. For -// the others, they use the default interface visitor - -class be_visitor_interface_ami_handler_stub_ch : public be_visitor_interface -{ - // - // = TITLE - // be_visitor_ami_handler_stub_ch - // - // = DESCRIPTION - // This is a concrete visitor to generate the client header for - // interface. - // -public: - be_visitor_interface_ami_handler_stub_ch (be_visitor_context *ctx); - // constructor - - ~be_visitor_interface_ami_handler_stub_ch (void); - // destructor - - virtual int visit_interface (be_interface *node); - // set the right context and make a visitor -}; - -#endif /* _BE_INTERFACE_AMI_HANDLER_STUB_CH_H_ */ diff --git a/TAO/TAO_IDL/be_include/be_visitor_interface/ami_handler_stub_cs.h b/TAO/TAO_IDL/be_include/be_visitor_interface/ami_handler_stub_cs.h deleted file mode 100644 index 3af5f1a4720..00000000000 --- a/TAO/TAO_IDL/be_include/be_visitor_interface/ami_handler_stub_cs.h +++ /dev/null @@ -1,46 +0,0 @@ -// -// $Id$ -// -/* -*- c++ -*- */ -// ============================================================================ -// -// = LIBRARY -// TAO IDL -// -// = FILENAME -// ami_handler_cs.h -// -// = DESCRIPTION -// Concrete visitor for the Interface node. -// This one provides code generation for interfaces in the client stubs. -// -// = AUTHOR -// Aniruddha Gokhale -// -// ============================================================================ - -#ifndef _BE_INTERFACE_AMI_HANDLER_CS_H_ -#define _BE_INTERFACE_AMI_HANDLER_CS_H_ - -class be_visitor_interface_ami_handler_stub_cs : public be_visitor_interface -{ - // - // = TITLE - // be_visitor_interface_ami_handler_stub_cs - // - // = DESCRIPTION - // This is a concrete visitor to generate the AMI Handler - // skeletons for interface. - // -public: - be_visitor_interface_ami_handler_stub_cs (be_visitor_context *ctx); - // constructor - - ~be_visitor_interface_ami_handler_stub_cs (void); - // destructor - - virtual int visit_interface (be_interface *node); - // set the right context and make a visitor -}; - -#endif /* _BE_INTERFACE_AMI_HANDLER_CS_H_ */ diff --git a/TAO/TAO_IDL/be_include/be_visitor_interface/any_op_ch.h b/TAO/TAO_IDL/be_include/be_visitor_interface/any_op_ch.h deleted file mode 100644 index 0b25ff3f3be..00000000000 --- a/TAO/TAO_IDL/be_include/be_visitor_interface/any_op_ch.h +++ /dev/null @@ -1,47 +0,0 @@ -// -// $Id$ -// -/* -*- c++ -*- */ -// ============================================================================ -// -// = LIBRARY -// TAO IDL -// -// = FILENAME -// any_op_ch.h -// -// = DESCRIPTION -// Concrete visitor for the Interface node. -// This one provides code generation for the Any operators -// -// = AUTHOR -// Aniruddha Gokhale -// -// ============================================================================ - -#ifndef _BE_INTERFACE_ANY_OP_CH_H_ -#define _BE_INTERFACE_ANY_OP_CH_H_ - -class be_visitor_interface_any_op_ch : public be_visitor_interface -{ - // - // = TITLE - // be_visitor_interface_any_op_ch - // - // = DESCRIPTION - // This is a concrete visitor for interface that generates the Any operator - // declarations - // - -public: - be_visitor_interface_any_op_ch (be_visitor_context *ctx); - // constructor - - ~be_visitor_interface_any_op_ch (void); - // destructor - - virtual int visit_interface (be_interface *node); - // visit interface -}; - -#endif /* _BE_INTERFACE_ANY_OP_CH_H_ */ diff --git a/TAO/TAO_IDL/be_include/be_visitor_interface/any_op_cs.h b/TAO/TAO_IDL/be_include/be_visitor_interface/any_op_cs.h deleted file mode 100644 index aa84f6fd2c9..00000000000 --- a/TAO/TAO_IDL/be_include/be_visitor_interface/any_op_cs.h +++ /dev/null @@ -1,47 +0,0 @@ -// -// $Id$ -// -/* -*- c++ -*- */ -// ============================================================================ -// -// = LIBRARY -// TAO IDL -// -// = FILENAME -// any_op_cs.h -// -// = DESCRIPTION -// Concrete visitor for the Interface node. -// This one provides code generation for the Any operators -// -// = AUTHOR -// Aniruddha Gokhale -// -// ============================================================================ - -#ifndef _BE_INTERFACE_ANY_OP_CS_H_ -#define _BE_INTERFACE_ANY_OP_CS_H_ - -class be_visitor_interface_any_op_cs : public be_visitor_interface -{ - // - // = TITLE - // be_visitor_interface_any_op_cs - // - // = DESCRIPTION - // This is a concrete visitor for interface that generates the Any operator - // implementations - // - -public: - be_visitor_interface_any_op_cs (be_visitor_context *ctx); - // constructor - - ~be_visitor_interface_any_op_cs (void); - // destructor - - virtual int visit_interface (be_interface *node); - // visit interface -}; - -#endif /* _BE_INTERFACE_ANY_OP_CS_H_ */ diff --git a/TAO/TAO_IDL/be_include/be_visitor_interface/cdr_op_ch.h b/TAO/TAO_IDL/be_include/be_visitor_interface/cdr_op_ch.h deleted file mode 100644 index 353659c3bcc..00000000000 --- a/TAO/TAO_IDL/be_include/be_visitor_interface/cdr_op_ch.h +++ /dev/null @@ -1,50 +0,0 @@ -/* -*- c++ -*- */ -// -// $Id$ -// - -// ============================================================================ -// -// = LIBRARY -// TAO IDL -// -// = FILENAME -// cdr_op_ch.h -// -// = DESCRIPTION -// Concrete visitor for the Interface class -// This one provides code generation for the CDR operators for the interface -// in the client header. -// -// = AUTHOR -// Aniruddha Gokhale -// -// ============================================================================ - -#ifndef _BE_VISITOR_INTERFACE_CDR_OP_CH_H_ -#define _BE_VISITOR_INTERFACE_CDR_OP_CH_H_ - -class be_visitor_interface_cdr_op_ch : public be_visitor_interface -{ - // - // = TITLE - // be_visitor_interface_cdr_op_ch - // - // = DESCRIPTION - // This is a concrete visitor for interface that generates the CDR operator - // declarations - // - -public: - be_visitor_interface_cdr_op_ch (be_visitor_context *ctx); - // constructor - - ~be_visitor_interface_cdr_op_ch (void); - // destructor - - virtual int visit_interface (be_interface *node); - // visit interface - -}; - -#endif /* _BE_VISITOR_INTERFACE_CDR_OP_CH_H_ */ diff --git a/TAO/TAO_IDL/be_include/be_visitor_interface/cdr_op_ci.h b/TAO/TAO_IDL/be_include/be_visitor_interface/cdr_op_ci.h deleted file mode 100644 index 47639725412..00000000000 --- a/TAO/TAO_IDL/be_include/be_visitor_interface/cdr_op_ci.h +++ /dev/null @@ -1,50 +0,0 @@ -/* -*- c++ -*- */ -// -// $Id$ -// - -// ============================================================================ -// -// = LIBRARY -// TAO IDL -// -// = FILENAME -// cdr_op_ch.h -// -// = DESCRIPTION -// Concrete visitor for the Interface class -// This one provides code generation for the CDR operators for the interface -// in the client stub. -// -// = AUTHOR -// Aniruddha Gokhale -// -// ============================================================================ - -#ifndef _BE_VISITOR_INTERFACE_CDR_OP_CI_H_ -#define _BE_VISITOR_INTERFACE_CDR_OP_CI_H_ - -class be_visitor_interface_cdr_op_ci : public be_visitor_interface -{ - // - // = TITLE - // be_visitor_interface_cdr_op_ci - // - // = DESCRIPTION - // This is a concrete visitor for interface that generates the CDR operator - // implementations - // - -public: - be_visitor_interface_cdr_op_ci (be_visitor_context *ctx); - // constructor - - ~be_visitor_interface_cdr_op_ci (void); - // destructor - - virtual int visit_interface (be_interface *node); - // visit interface - -}; - -#endif /* _BE_VISITOR_INTERFACE_CDR_OP_CI_H_ */ diff --git a/TAO/TAO_IDL/be_include/be_visitor_interface/cdr_op_cs.h b/TAO/TAO_IDL/be_include/be_visitor_interface/cdr_op_cs.h deleted file mode 100644 index 05a062d594f..00000000000 --- a/TAO/TAO_IDL/be_include/be_visitor_interface/cdr_op_cs.h +++ /dev/null @@ -1,50 +0,0 @@ -/* -*- c++ -*- */ -// -// $Id$ -// - -// ============================================================================ -// -// = LIBRARY -// TAO IDL -// -// = FILENAME -// cdr_op_ch.h -// -// = DESCRIPTION -// Concrete visitor for the Interface class -// This one provides code generation for the CDR operators for the interface -// in the client stub. -// -// = AUTHOR -// Aniruddha Gokhale -// -// ============================================================================ - -#ifndef _BE_VISITOR_INTERFACE_CDR_OP_CS_H_ -#define _BE_VISITOR_INTERFACE_CDR_OP_CS_H_ - -class be_visitor_interface_cdr_op_cs : public be_visitor_interface -{ - // - // = TITLE - // be_visitor_interface_cdr_op_cs - // - // = DESCRIPTION - // This is a concrete visitor for interface that generates the CDR operator - // implementations - // - -public: - be_visitor_interface_cdr_op_cs (be_visitor_context *ctx); - // constructor - - ~be_visitor_interface_cdr_op_cs (void); - // destructor - - virtual int visit_interface (be_interface *node); - // visit interface - -}; - -#endif /* _BE_VISITOR_INTERFACE_CDR_OP_CS_H_ */ diff --git a/TAO/TAO_IDL/be_include/be_visitor_interface/collocated_ami_handler_ch.h b/TAO/TAO_IDL/be_include/be_visitor_interface/collocated_ami_handler_ch.h deleted file mode 100644 index d20938a046c..00000000000 --- a/TAO/TAO_IDL/be_include/be_visitor_interface/collocated_ami_handler_ch.h +++ /dev/null @@ -1,42 +0,0 @@ -// -// $Id$ -// -/* -*- c++ -*- */ -// ============================================================================ -// -// = LIBRARY -// TAO IDL -// -// = FILENAME -// collocated_ami_handler_ch.h -// -// = DESCRIPTION -// Concrete visitor for the Interface node. -// This provides code generation for collocated classes in server header -// -// = AUTHOR -// Aniruddha Gokhale -// -// ============================================================================ - -#ifndef _BE_INTERFACE_COLLOCATED_AMI_HANDLER_CH_H_ -#define _BE_INTERFACE_COLLOCATED_AMI_HANDLER_CH_H_ - -class be_visitor_interface_collocated_ami_handler_ch : public be_visitor_interface -{ - // = TITLE - // Generate the "collocated" class declaration. - -public: - be_visitor_interface_collocated_ami_handler_ch (be_visitor_context *ctx); - // constructor - - virtual ~be_visitor_interface_collocated_ami_handler_ch (void); - // destructor - - virtual int visit_interface (be_interface *node); - // visit an interface - -}; - -#endif /* _BE_INTERFACE_COLLOCATED_AMI_HANDLER_CH_H_ */ diff --git a/TAO/TAO_IDL/be_include/be_visitor_interface/direct_collocated_sh.h b/TAO/TAO_IDL/be_include/be_visitor_interface/direct_collocated_sh.h deleted file mode 100644 index 76e937d32e9..00000000000 --- a/TAO/TAO_IDL/be_include/be_visitor_interface/direct_collocated_sh.h +++ /dev/null @@ -1,42 +0,0 @@ -// -// $Id$ -// -/* -*- c++ -*- */ -// ============================================================================ -// -// = LIBRARY -// TAO IDL -// -// = FILENAME -// direct_collocated_sh.h -// -// = DESCRIPTION -// Concrete visitor for the Interface node. -// This provides code generation for direct collocated classes in server header -// -// = AUTHOR -// Aniruddha Gokhale -// -// ============================================================================ - -#ifndef _BE_INTERFACE_DIRECT_COLLOCATED_SH_H_ -#define _BE_INTERFACE_DIRECT_COLLOCATED_SH_H_ - -class be_visitor_interface_direct_collocated_sh : public be_visitor_interface -{ - // = TITLE - // Generate the "direct collocated" class declaration. - -public: - be_visitor_interface_direct_collocated_sh (be_visitor_context *ctx); - // constructor - - virtual ~be_visitor_interface_direct_collocated_sh (void); - // destructor - - virtual int visit_interface (be_interface *node); - // visit an interface - -}; - -#endif /* _BE_INTERFACE_DIRECT_COLLOCATED_SH_H_ */ diff --git a/TAO/TAO_IDL/be_include/be_visitor_interface/direct_collocated_ss.h b/TAO/TAO_IDL/be_include/be_visitor_interface/direct_collocated_ss.h deleted file mode 100644 index faca2392b8e..00000000000 --- a/TAO/TAO_IDL/be_include/be_visitor_interface/direct_collocated_ss.h +++ /dev/null @@ -1,47 +0,0 @@ -// -// $Id$ -// -/* -*- c++ -*- */ -// ============================================================================ -// -// = LIBRARY -// TAO IDL -// -// = FILENAME -// driect_collocated_ss.h -// -// = DESCRIPTION -// Concrete visitor for the Interface node. -// This provides code generation for direct collocated classes in server skeleton -// -// = AUTHOR -// Aniruddha Gokhale -// -// ============================================================================ - -#ifndef _BE_INTERFACE_DIRECT_COLLOCATED_SS_H_ -#define _BE_INTERFACE_DIRECT_COLLOCATED_SS_H_ - -class be_visitor_interface_direct_collocated_ss : public be_visitor_interface -{ - // = TITLE - // Generate the "direct collocated" class declaration. - -public: - be_visitor_interface_direct_collocated_ss (be_visitor_context *ctx); - // constructor - - virtual ~be_visitor_interface_direct_collocated_ss (void); - // destructor - - virtual int visit_interface (be_interface *node); - // visit interface - - static int collocated_ctor_helper (be_interface *, - be_interface *, - TAO_OutStream *os); - // helper method passed to the template method to invoke ctors of all the - // base classes. -}; - -#endif /* _BE_DIRECT_INTERFACE_COLLOCATED_SS_H_ */ diff --git a/TAO/TAO_IDL/be_include/be_visitor_interface/interface.h b/TAO/TAO_IDL/be_include/be_visitor_interface/interface.h deleted file mode 100644 index 41dfd82b0a5..00000000000 --- a/TAO/TAO_IDL/be_include/be_visitor_interface/interface.h +++ /dev/null @@ -1,91 +0,0 @@ -// -// $Id$ -// -/* -*- c++ -*- */ -// ============================================================================ -// -// = LIBRARY -// TAO IDL -// -// = FILENAME -// interface.h -// -// = DESCRIPTION -// Concrete visitor for the Interface node. -// This one provides the generic visitor for interfaces from which others -// will inherit. -// -// = AUTHOR -// Aniruddha Gokhale -// -// ============================================================================ - -#ifndef _BE_INTERFACE_INTERFACE_H_ -#define _BE_INTERFACE_INTERFACE_H_ - -// = DESCRIPTION -// Interface code generation is complex, the client stubs require -// two different class and the server also require other two. -// Only one of them includes whatever nested typedefs, exceptions -// and or structures are defined in the interface. -// To break this complexity a different visitor is used for each -// case. -// -// = NOTE -// Visitors were added recently into the compiler, so some -// code is still generated using the old "state oriented" approach; -// notably only the _collocated class is actually generated using -// the visitor, in the other cases (the interface class and the -// skeleton class) we still call back the old code generation -// methods. -// - -class be_visitor_interface : public be_visitor_scope -{ - // - // = TITLE - // be_visitor_interface - // - // = DESCRIPTION - // This is a concrete visitor for interface that abstracts all common tasks - // - -public: - be_visitor_interface (be_visitor_context *ctx); - // constructor - - ~be_visitor_interface (void); - // destructor - - virtual int visit_interface (be_interface *node); - // visit the interface node - - // =visit methods on all elements syntactically valid in a Interface scope - - virtual int visit_attribute (be_attribute *node); - // visit attribute - - virtual int visit_constant (be_constant *node); - // visit a constant - - virtual int visit_enum (be_enum *node); - // visit an enum - - virtual int visit_exception (be_exception *node); - // visit an exception - - virtual int visit_operation (be_operation *node); - // visit operation - - virtual int visit_structure (be_structure *node); - // visit a structure - - virtual int visit_union (be_union *node); - // visit a union - - virtual int visit_typedef (be_typedef *node); - // visit the typedef node - -}; - -#endif /* _BE_INTERFACE_INTERFACE_H_ */ diff --git a/TAO/TAO_IDL/be_include/be_visitor_interface/interface_ch.h b/TAO/TAO_IDL/be_include/be_visitor_interface/interface_ch.h deleted file mode 100644 index 0294553503b..00000000000 --- a/TAO/TAO_IDL/be_include/be_visitor_interface/interface_ch.h +++ /dev/null @@ -1,49 +0,0 @@ -// -// $Id$ -// -/* -*- c++ -*- */ -// ============================================================================ -// -// = LIBRARY -// TAO IDL -// -// = FILENAME -// interface_ch.h -// -// = DESCRIPTION -// Concrete visitor for the Interface node. -// This one provides code generation for interfaces in the client header. -// -// = AUTHOR -// Aniruddha Gokhale -// -// ============================================================================ - -#ifndef _BE_INTERFACE_INTERFACE_CH_H_ -#define _BE_INTERFACE_INTERFACE_CH_H_ - -// we need derived interface visitors for the client and server header files. For -// the others, they use the default interface visitor - -class be_visitor_interface_ch : public be_visitor_interface -{ - // - // = TITLE - // be_visitor_interface_ch - // - // = DESCRIPTION - // This is a concrete visitor to generate the client header for interface - // - // -public: - be_visitor_interface_ch (be_visitor_context *ctx); - // constructor - - ~be_visitor_interface_ch (void); - // destructor - - virtual int visit_interface (be_interface *node); - // set the right context and make a visitor -}; - -#endif /* _BE_INTERFACE_INTERFACE_CH_H_ */ diff --git a/TAO/TAO_IDL/be_include/be_visitor_interface/interface_ci.h b/TAO/TAO_IDL/be_include/be_visitor_interface/interface_ci.h deleted file mode 100644 index ad1a5b31063..00000000000 --- a/TAO/TAO_IDL/be_include/be_visitor_interface/interface_ci.h +++ /dev/null @@ -1,47 +0,0 @@ -// -// $Id$ -// -/* -*- c++ -*- */ -// ============================================================================ -// -// = LIBRARY -// TAO IDL -// -// = FILENAME -// interface_ci.h -// -// = DESCRIPTION -// Concrete visitor for the Interface node. -// This one provides code generation for interfaces in the client inline. -// -// = AUTHOR -// Aniruddha Gokhale -// -// ============================================================================ - -#ifndef _BE_INTERFACE_INTERFACE_CI_H_ -#define _BE_INTERFACE_INTERFACE_CI_H_ - -class be_visitor_interface_ci : public be_visitor_interface -{ - // - // = TITLE - // be_visitor_interface_ci - // - // = DESCRIPTION - // This is a concrete visitor to generate the client inline for interface - // - // -public: - be_visitor_interface_ci (be_visitor_context *ctx); - // constructor - - ~be_visitor_interface_ci (void); - // destructor - - virtual int visit_interface (be_interface *node); - // set the right context and make a visitor - -}; - -#endif /* _BE_INTERFACE_INTERFACE_CI_H_ */ diff --git a/TAO/TAO_IDL/be_include/be_visitor_interface/interface_cs.h b/TAO/TAO_IDL/be_include/be_visitor_interface/interface_cs.h deleted file mode 100644 index 51e3f8a7a88..00000000000 --- a/TAO/TAO_IDL/be_include/be_visitor_interface/interface_cs.h +++ /dev/null @@ -1,46 +0,0 @@ -// -// $Id$ -// -/* -*- c++ -*- */ -// ============================================================================ -// -// = LIBRARY -// TAO IDL -// -// = FILENAME -// interface_cs.h -// -// = DESCRIPTION -// Concrete visitor for the Interface node. -// This one provides code generation for interfaces in the client stubs. -// -// = AUTHOR -// Aniruddha Gokhale -// -// ============================================================================ - -#ifndef _BE_INTERFACE_INTERFACE_CS_H_ -#define _BE_INTERFACE_INTERFACE_CS_H_ - -class be_visitor_interface_cs : public be_visitor_interface -{ - // - // = TITLE - // be_visitor_interface_cs - // - // = DESCRIPTION - // This is a concrete visitor to generate the client stubs for interface - // - // -public: - be_visitor_interface_cs (be_visitor_context *ctx); - // constructor - - ~be_visitor_interface_cs (void); - // destructor - - virtual int visit_interface (be_interface *node); - // set the right context and make a visitor -}; - -#endif /* _BE_INTERFACE_INTERFACE_CS_H_ */ diff --git a/TAO/TAO_IDL/be_include/be_visitor_interface/interface_ih.h b/TAO/TAO_IDL/be_include/be_visitor_interface/interface_ih.h deleted file mode 100644 index ed74b0d488d..00000000000 --- a/TAO/TAO_IDL/be_include/be_visitor_interface/interface_ih.h +++ /dev/null @@ -1,47 +0,0 @@ - -/* -*- c++ -*- */ - -// $Id$ - -// ============================================================================ -// -// = LIBRARY -// TAO IDL -// -// = FILENAME -// interface_ih.h -// -// = DESCRIPTION -// Concrete visitor for the Interface node. -// This provides for code generation in the implementation header -// -// = AUTHOR -// Yamuna Krishnamurthy (yamuna@cs.wustl.edu) -// -// ============================================================================ - -#ifndef _BE_INTERFACE_INTERFACE_IH_H_ -#define _BE_INTERFACE_INTERFACE_IH_H_ - -class be_visitor_interface_ih : public be_visitor_interface -{ - // - // = TITLE - // be_visitor_interface_ih - // - // = DESCRIPTION - // This is a concrete visitor to generate the implementation header for interface - // - // -public: - be_visitor_interface_ih (be_visitor_context *ctx); - // constructor - - ~be_visitor_interface_ih (void); - // destructor - - virtual int visit_interface (be_interface *node); - // set the right context and make a visitor -}; - -#endif /* _BE_INTERFACE_INTERFACE_IH_H_ */ diff --git a/TAO/TAO_IDL/be_include/be_visitor_interface/interface_is.h b/TAO/TAO_IDL/be_include/be_visitor_interface/interface_is.h deleted file mode 100644 index d0f81d1a4c6..00000000000 --- a/TAO/TAO_IDL/be_include/be_visitor_interface/interface_is.h +++ /dev/null @@ -1,45 +0,0 @@ -// $Id$ - -// ============================================================================ -// -// = LIBRARY -// TAO IDL -// -// = FILENAME -// interface_is.h -// -// = DESCRIPTION -// Concrete visitor for the Interface node. -// This provides for code generation in the implementation skeleton -// -// = AUTHOR -// Yamuna Krishnamurthy (yamuna@cs.wustl.edu) -// -// ============================================================================ - -#ifndef _BE_INTERFACE_INTERFACE_IS_H_ -#define _BE_INTERFACE_INTERFACE_IS_H_ - -class be_visitor_interface_is : public be_visitor_interface -{ - // - // = TITLE - // be_visitor_interface_is - // - // = DESCRIPTION - // This is a concrete visitor to generate the implementation skeletons for interface - // - // -public: - be_visitor_interface_is (be_visitor_context *ctx); - // constructor - - ~be_visitor_interface_is (void); - // destructor - - virtual int visit_interface (be_interface *node); - // set the right context and make a visitor - -}; - -#endif /* _BE_INTERFACE_INTERFACE_IS_H_ */ diff --git a/TAO/TAO_IDL/be_include/be_visitor_interface/interface_sh.h b/TAO/TAO_IDL/be_include/be_visitor_interface/interface_sh.h deleted file mode 100644 index 526a92af825..00000000000 --- a/TAO/TAO_IDL/be_include/be_visitor_interface/interface_sh.h +++ /dev/null @@ -1,46 +0,0 @@ -// -// $Id$ -// -/* -*- c++ -*- */ -// ============================================================================ -// -// = LIBRARY -// TAO IDL -// -// = FILENAME -// interface_sh.h -// -// = DESCRIPTION -// Concrete visitor for the Interface node. -// This provides for code generation in the server header -// -// = AUTHOR -// Aniruddha Gokhale -// -// ============================================================================ - -#ifndef _BE_INTERFACE_INTERFACE_SH_H_ -#define _BE_INTERFACE_INTERFACE_SH_H_ - -class be_visitor_interface_sh : public be_visitor_interface -{ - // - // = TITLE - // be_visitor_interface_sh - // - // = DESCRIPTION - // This is a concrete visitor to generate the server header for interface - // - // -public: - be_visitor_interface_sh (be_visitor_context *ctx); - // constructor - - ~be_visitor_interface_sh (void); - // destructor - - virtual int visit_interface (be_interface *node); - // set the right context and make a visitor -}; - -#endif /* _BE_INTERFACE_INTERFACE_SH_H_ */ diff --git a/TAO/TAO_IDL/be_include/be_visitor_interface/interface_si.h b/TAO/TAO_IDL/be_include/be_visitor_interface/interface_si.h deleted file mode 100644 index c46560a433d..00000000000 --- a/TAO/TAO_IDL/be_include/be_visitor_interface/interface_si.h +++ /dev/null @@ -1,46 +0,0 @@ -// -// $Id$ -// -/* -*- c++ -*- */ -// ============================================================================ -// -// = LIBRARY -// TAO IDL -// -// = FILENAME -// interface_si.h -// -// = DESCRIPTION -// Concrete visitor for the Interface node. -// This provides for code generation in the server inline -// -// = AUTHOR -// Aniruddha Gokhale -// -// ============================================================================ - -#ifndef _BE_INTERFACE_INTERFACE_SI_H_ -#define _BE_INTERFACE_INTERFACE_SI_H_ - -class be_visitor_interface_si : public be_visitor_interface -{ - // - // = TITLE - // be_visitor_interface_si - // - // = DESCRIPTION - // This is a concrete visitor to generate the server inline for interface - // - // -public: - be_visitor_interface_si (be_visitor_context *ctx); - // constructor - - ~be_visitor_interface_si (void); - // destructor - - virtual int visit_interface (be_interface *node); - // set the right context and make a visitor -}; - -#endif /* _BE_INTERFACE_INTERFACE_SI_H_ */ diff --git a/TAO/TAO_IDL/be_include/be_visitor_interface/interface_ss.h b/TAO/TAO_IDL/be_include/be_visitor_interface/interface_ss.h deleted file mode 100644 index e57a272a3be..00000000000 --- a/TAO/TAO_IDL/be_include/be_visitor_interface/interface_ss.h +++ /dev/null @@ -1,46 +0,0 @@ -// -// $Id$ -// -/* -*- c++ -*- */ -// ============================================================================ -// -// = LIBRARY -// TAO IDL -// -// = FILENAME -// interface_ss.h -// -// = DESCRIPTION -// Concrete visitor for the Interface node. -// This provides for code generation in the server skeleton -// -// = AUTHOR -// Aniruddha Gokhale -// -// ============================================================================ - -#ifndef _BE_INTERFACE_INTERFACE_SS_H_ -#define _BE_INTERFACE_INTERFACE_SS_H_ - -class be_visitor_interface_ss : public be_visitor_interface -{ - // - // = TITLE - // be_visitor_interface_ss - // - // = DESCRIPTION - // This is a concrete visitor to generate the server skeletons for interface - // - // -public: - be_visitor_interface_ss (be_visitor_context *ctx); - // constructor - - ~be_visitor_interface_ss (void); - // destructor - - virtual int visit_interface (be_interface *node); - // set the right context and make a visitor -}; - -#endif /* _BE_INTERFACE_INTERFACE_SS_H_ */ diff --git a/TAO/TAO_IDL/be_include/be_visitor_interface/thru_poa_collocated_sh.h b/TAO/TAO_IDL/be_include/be_visitor_interface/thru_poa_collocated_sh.h deleted file mode 100644 index 89a73401341..00000000000 --- a/TAO/TAO_IDL/be_include/be_visitor_interface/thru_poa_collocated_sh.h +++ /dev/null @@ -1,42 +0,0 @@ -// -// $Id$ -// -/* -*- c++ -*- */ -// ============================================================================ -// -// = LIBRARY -// TAO IDL -// -// = FILENAME -// thru_poa_collocated_sh.h -// -// = DESCRIPTION -// Concrete visitor for the Interface node. -// This provides code generation for thru_poa collocated classes in server header -// -// = AUTHOR -// Aniruddha Gokhale -// -// ============================================================================ - -#ifndef _BE_INTERFACE_THRU_POA_COLLOCATED_SH_H_ -#define _BE_INTERFACE_THRU_POA_COLLOCATED_SH_H_ - -class be_visitor_interface_thru_poa_collocated_sh : public be_visitor_interface -{ - // = TITLE - // Generate the "thru_poa collocated" class declaration. - -public: - be_visitor_interface_thru_poa_collocated_sh (be_visitor_context *ctx); - // constructor - - virtual ~be_visitor_interface_thru_poa_collocated_sh (void); - // destructor - - virtual int visit_interface (be_interface *node); - // visit an interface - -}; - -#endif /* _BE_INTERFACE_THRU_POA_COLLOCATED_SH_H_ */ diff --git a/TAO/TAO_IDL/be_include/be_visitor_interface/thru_poa_collocated_ss.h b/TAO/TAO_IDL/be_include/be_visitor_interface/thru_poa_collocated_ss.h deleted file mode 100644 index 9348412e9c3..00000000000 --- a/TAO/TAO_IDL/be_include/be_visitor_interface/thru_poa_collocated_ss.h +++ /dev/null @@ -1,47 +0,0 @@ -// -// $Id$ -// -/* -*- c++ -*- */ -// ============================================================================ -// -// = LIBRARY -// TAO IDL -// -// = FILENAME -// thru_poa_collocated_ss.h -// -// = DESCRIPTION -// Concrete visitor for the Interface node. -// This provides code generation for thru_poa collocated classes in server skeleton -// -// = AUTHOR -// Aniruddha Gokhale -// -// ============================================================================ - -#ifndef _BE_INTERFACE_THRU_POA_COLLOCATED_SS_H_ -#define _BE_INTERFACE_THRU_POA_COLLOCATED_SS_H_ - -class be_visitor_interface_thru_poa_collocated_ss : public be_visitor_interface -{ - // = TITLE - // Generate the "thru_poa collocated" class declaration. - -public: - be_visitor_interface_thru_poa_collocated_ss (be_visitor_context *ctx); - // constructor - - virtual ~be_visitor_interface_thru_poa_collocated_ss (void); - // destructor - - virtual int visit_interface (be_interface *node); - // visit interface - - static int collocated_ctor_helper (be_interface *, - be_interface *, - TAO_OutStream *os); - // helper method passed to the template method to invoke ctors of all the - // base classes. -}; - -#endif /* _BE_INTERFACE_THRU_POA_COLLOCATED_SS_H_ */ diff --git a/TAO/TAO_IDL/be_include/be_visitor_interface/tie_sh.h b/TAO/TAO_IDL/be_include/be_visitor_interface/tie_sh.h deleted file mode 100644 index bd2fbfbae13..00000000000 --- a/TAO/TAO_IDL/be_include/be_visitor_interface/tie_sh.h +++ /dev/null @@ -1,51 +0,0 @@ -// -// $Id$ -// -/* -*- c++ -*- */ -// ============================================================================ -// -// = LIBRARY -// TAO IDL -// -// = FILENAME -// tie_sh.h -// -// = DESCRIPTION -// Concrete visitor for the Interface node. -// This one provides the code generation for TIE classes -// -// = AUTHOR -// Aniruddha Gokhale -// -// ============================================================================ - -#ifndef _BE_INTERFACE_TIE_SH_H_ -#define _BE_INTERFACE_TIE_SH_H_ - -class be_visitor_interface_tie_sh : public be_visitor_interface -{ - // - // = TITLE - // be_visitor_interface_tie_sh - // - // = DESCRIPTION - // This is a concrete visitor to generate the server header for the TIE class - // - // -public: - be_visitor_interface_tie_sh (be_visitor_context *ctx); - // constructor - - ~be_visitor_interface_tie_sh (void); - // destructor - - virtual int visit_interface (be_interface *node); - // set the right context and make a visitor - - static int method_helper (be_interface *, - be_interface *, - TAO_OutStream *os); - // helper method to generate method declaration in the TIE classes. -}; - -#endif /* _BE_INTERFACE_TIE_SH_H_ */ diff --git a/TAO/TAO_IDL/be_include/be_visitor_interface/tie_si.h b/TAO/TAO_IDL/be_include/be_visitor_interface/tie_si.h deleted file mode 100644 index f8a9f982946..00000000000 --- a/TAO/TAO_IDL/be_include/be_visitor_interface/tie_si.h +++ /dev/null @@ -1,52 +0,0 @@ -// -// $Id$ -// -/* -*- c++ -*- */ -// ============================================================================ -// -// = LIBRARY -// TAO IDL -// -// = FILENAME -// tie_si.h -// -// = DESCRIPTION -// Concrete visitor for the Interface node. -// This one provides the code generation for TIE classes -// -// = AUTHOR -// Aniruddha Gokhale -// -// ============================================================================ - -#ifndef _BE_INTERFACE_TIE_SI_H_ -#define _BE_INTERFACE_TIE_SI_H_ - -class be_visitor_interface_tie_si : public be_visitor_interface -{ - // - // = TITLE - // be_visitor_interface_tie_si - // - // = DESCRIPTION - // This is a concrete visitor to generate the server inline for operations - // of the TIE class - // - // -public: - be_visitor_interface_tie_si (be_visitor_context *ctx); - // constructor - - ~be_visitor_interface_tie_si (void); - // destructor - - virtual int visit_interface (be_interface *node); - // set the right context and make a visitor - - static int method_helper (be_interface *, - be_interface *, - TAO_OutStream *os); - // helper method to generate method declaration in the TIE classes. -}; - -#endif /* _BE_INTERFACE_TIE_SI_H_ */ diff --git a/TAO/TAO_IDL/be_include/be_visitor_interface_fwd.h b/TAO/TAO_IDL/be_include/be_visitor_interface_fwd.h deleted file mode 100644 index a32da4c3de0..00000000000 --- a/TAO/TAO_IDL/be_include/be_visitor_interface_fwd.h +++ /dev/null @@ -1,31 +0,0 @@ -/* -*- C++ -*- */ -// -// $Id$ -// - -// ============================================================================ -// -// = LIBRARY -// TAO IDL -// -// = FILENAME -// be_visitor_interface_fwd.h -// -// = DESCRIPTION -// Concrete visitor for the interface_fwd class -// -// = AUTHOR -// Aniruddha Gokhale -// -// ============================================================================ - -#ifndef TAO_BE_VISITOR_INTERFACE_FWD_H -#define TAO_BE_VISITOR_INTERFACE_FWD_H - -#include "be_visitor.h" -#include "be_visitor_scope.h" - -#include "be_visitor_interface_fwd/interface_fwd_ch.h" -#include "be_visitor_interface_fwd/interface_fwd_ci.h" -#include "be_visitor_interface_fwd/cdr_op_ci.h" -#endif /* TAO_BE_VISITOR_INTERFACE_FWD_H */ diff --git a/TAO/TAO_IDL/be_include/be_visitor_interface_fwd/cdr_op_ci.h b/TAO/TAO_IDL/be_include/be_visitor_interface_fwd/cdr_op_ci.h deleted file mode 100644 index 3e7953ee80f..00000000000 --- a/TAO/TAO_IDL/be_include/be_visitor_interface_fwd/cdr_op_ci.h +++ /dev/null @@ -1,51 +0,0 @@ -/* -*- c++ -*- */ -// -// $Id$ -// - -// ============================================================================ -// -// = LIBRARY -// TAO IDL -// -// = FILENAME -// cdr_op_ci.h -// -// = DESCRIPTION -// Concrete visitor for the interface_fwd class -// This one provides code generation for the CDR operators -// (actually just their declarations) for the interface forward -// declaration in the client inline. -// -// = AUTHOR -// Aniruddha Gokhale & Carlos O'Ryan -// -// ============================================================================ - -#ifndef BE_VISITOR_INTERFACE_FWD_CDR_OP_CI_H -#define BE_VISITOR_INTERFACE_FWD_CDR_OP_CI_H - -class be_visitor_interface_fwd_cdr_op_ci : public be_visitor_decl -{ - // - // = TITLE - // be_visitor_interface_fwd_cdr_op_ci - // - // = DESCRIPTION - // This is a concrete visitor for interface that generates the CDR - // operator forward declarations. - // - -public: - be_visitor_interface_fwd_cdr_op_ci (be_visitor_context *ctx); - // constructor - - ~be_visitor_interface_fwd_cdr_op_ci (void); - // destructor - - virtual int visit_interface_fwd (be_interface_fwd *node); - // visit interface - -}; - -#endif /* BE_VISITOR_INTERFACE_FWD_CDR_OP_CI_H */ diff --git a/TAO/TAO_IDL/be_include/be_visitor_interface_fwd/interface_fwd_ch.h b/TAO/TAO_IDL/be_include/be_visitor_interface_fwd/interface_fwd_ch.h deleted file mode 100644 index 02c788c071b..00000000000 --- a/TAO/TAO_IDL/be_include/be_visitor_interface_fwd/interface_fwd_ch.h +++ /dev/null @@ -1,47 +0,0 @@ -// -// $Id$ -// -/* -*- c++ -*- */ -// ============================================================================ -// -// = LIBRARY -// TAO IDL -// -// = FILENAME -// interface_fwd_ch.h -// -// = DESCRIPTION -// Concrete visitor for the Interface Forward node. -// This one provides code generation for interface forward node. -// -// = AUTHOR -// Aniruddha Gokhale -// -// ============================================================================ - -#ifndef _BE_INTERFACE_INTERFACE_FWD_CH_H_ -#define _BE_INTERFACE_INTERFACE_FWD_CH_H_ - -class be_visitor_interface_fwd_ch : public be_visitor_decl -{ - // - // = TITLE - // be_visitor_interface_fwd_ch - // - // = DESCRIPTION - // This is the visitor for interface_fwd for the header file - // - // -public: - be_visitor_interface_fwd_ch (be_visitor_context *ctx); - // constructor - - ~be_visitor_interface_fwd_ch (void); - // destructor - - virtual int visit_interface_fwd (be_interface_fwd *node); - // visit interface_fwd. - -}; - -#endif /* _BE_INTERFACE_INTERFACE_FWD_CH_H_ */ diff --git a/TAO/TAO_IDL/be_include/be_visitor_interface_fwd/interface_fwd_ci.h b/TAO/TAO_IDL/be_include/be_visitor_interface_fwd/interface_fwd_ci.h deleted file mode 100644 index f8c765d986f..00000000000 --- a/TAO/TAO_IDL/be_include/be_visitor_interface_fwd/interface_fwd_ci.h +++ /dev/null @@ -1,47 +0,0 @@ -// -// $Id$ -// -/* -*- c++ -*- */ -// ============================================================================ -// -// = LIBRARY -// TAO IDL -// -// = FILENAME -// interface_fwd_ci.h -// -// = DESCRIPTION -// Concrete visitor for the Interface Forward node. -// This one provides code generation for interface forward node. -// -// = AUTHOR -// Aniruddha Gokhale -// -// ============================================================================ - -#ifndef _BE_INTERFACE_INTERFACE_FWD_CI_H_ -#define _BE_INTERFACE_INTERFACE_FWD_CI_H_ - -class be_visitor_interface_fwd_ci : public be_visitor_decl -{ - // - // = TITLE - // be_visitor_interface_fwd_ci - // - // = DESCRIPTION - // This is the visitor for interface_fwd for the inline file - // - // -public: - be_visitor_interface_fwd_ci (be_visitor_context *ctx); - // constructor - - ~be_visitor_interface_fwd_ci (void); - // destructor - - virtual int visit_interface_fwd (be_interface_fwd *node); - // visit interface_fwd - -}; - -#endif /* _BE_INTERFACE_INTERFACE_FWD_CH_I_ */ diff --git a/TAO/TAO_IDL/be_include/be_visitor_module.h b/TAO/TAO_IDL/be_include/be_visitor_module.h deleted file mode 100644 index ea4f140fd6d..00000000000 --- a/TAO/TAO_IDL/be_include/be_visitor_module.h +++ /dev/null @@ -1,37 +0,0 @@ -/* -*- c++ -*- */ -// -// $Id$ -// - -// ============================================================================ -// -// = LIBRARY -// TAO IDL -// -// = FILENAME -// be_visitor_module.h -// -// = DESCRIPTION -// Concrete visitor for the Module class -// -// = AUTHOR -// Aniruddha Gokhale -// -// ============================================================================ - -#ifndef TAO_BE_VISITOR_MODULE_H -#define TAO_BE_VISITOR_MODULE_H - -#include "be_visitor.h" -#include "be_visitor_scope.h" - -#include "be_visitor_module/module.h" -// we need derived module visitors for the client and server header files. For -// the others, they use the default module visitor -#include "be_visitor_module/module_ch.h" -#include "be_visitor_module/module_sh.h" -#include "be_visitor_module/module_ih.h" -#include "be_visitor_module/any_op.h" -#include "be_visitor_module/cdr_op.h" - -#endif // TAO_BE_VISITOR_MODULE_H diff --git a/TAO/TAO_IDL/be_include/be_visitor_module/any_op.h b/TAO/TAO_IDL/be_include/be_visitor_module/any_op.h deleted file mode 100644 index a41fec48195..00000000000 --- a/TAO/TAO_IDL/be_include/be_visitor_module/any_op.h +++ /dev/null @@ -1,49 +0,0 @@ -/* -*- c++ -*- */ -// -// $Id$ -// - -// ============================================================================ -// -// = LIBRARY -// TAO IDL -// -// = FILENAME -// any_op.h -// -// = DESCRIPTION -// Concrete visitor for the Module class -// This one provides visitors to generate the Any operators for elements in -// the Module's scope. -// -// = AUTHOR -// Aniruddha Gokhale -// -// ============================================================================ - -#ifndef _BE_VISITOR_MODULE_ANY_OP_H_ -#define _BE_VISITOR_MODULE_ANY_OP_H_ - -class be_visitor_module_any_op : public be_visitor_module -{ - // - // = TITLE - // be_visitor_module_any_op - // - // = DESCRIPTION - // This is a concrete visitor for module that generates the Any operator - // declarations and implementations - // - -public: - be_visitor_module_any_op (be_visitor_context *ctx); - // constructor - - ~be_visitor_module_any_op (void); - // destructor - - virtual int visit_module (be_module *node); - // visit module -}; - -#endif /* _BE_VISITOR_MODULE_ANY_OP_H_ */ diff --git a/TAO/TAO_IDL/be_include/be_visitor_module/cdr_op.h b/TAO/TAO_IDL/be_include/be_visitor_module/cdr_op.h deleted file mode 100644 index 78a56a082f9..00000000000 --- a/TAO/TAO_IDL/be_include/be_visitor_module/cdr_op.h +++ /dev/null @@ -1,49 +0,0 @@ -/* -*- c++ -*- */ -// -// $Id$ -// - -// ============================================================================ -// -// = LIBRARY -// TAO IDL -// -// = FILENAME -// cdr_op.h -// -// = DESCRIPTION -// Concrete visitor for the Module class -// This one provides visitors to generate the CDR operators for elements in -// the Module's scope. -// -// = AUTHOR -// Aniruddha Gokhale -// -// ============================================================================ - -#ifndef _BE_VISITOR_MODULE_CDR_OP_H_ -#define _BE_VISITOR_MODULE_CDR_OP_H_ - -class be_visitor_module_cdr_op : public be_visitor_module -{ - // - // = TITLE - // be_visitor_module_cdr_op - // - // = DESCRIPTION - // This is a concrete visitor for module that generates the CDR operator - // declarations and implementations - // - -public: - be_visitor_module_cdr_op (be_visitor_context *ctx); - // constructor - - ~be_visitor_module_cdr_op (void); - // destructor - - virtual int visit_module (be_module *node); - // visit module -}; - -#endif /* _BE_VISITOR_MODULE_CDR_OP_H_ */ diff --git a/TAO/TAO_IDL/be_include/be_visitor_module/module.h b/TAO/TAO_IDL/be_include/be_visitor_module/module.h deleted file mode 100644 index c12aeeed170..00000000000 --- a/TAO/TAO_IDL/be_include/be_visitor_module/module.h +++ /dev/null @@ -1,82 +0,0 @@ -/* -*- c++ -*- */ -// -// $Id$ -// - -// ============================================================================ -// -// = LIBRARY -// TAO IDL -// -// = FILENAME -// module.h -// -// = DESCRIPTION -// Concrete visitor for the Module class -// This one provides the generic visitor for the Module node. -// -// = AUTHOR -// Aniruddha Gokhale -// -// ============================================================================ - -#ifndef _BE_VISITOR_MODULE_MODULE_H_ -#define _BE_VISITOR_MODULE_MODULE_H_ - -class be_visitor_module : public be_visitor_scope -{ - // - // = TITLE - // be_visitor_module - // - // = DESCRIPTION - // This is a concrete visitor for module that abstracts all common tasks - // - -public: - be_visitor_module (be_visitor_context *ctx); - // constructor - - ~be_visitor_module (void); - // destructor - - // =visit methods on all elements syntactically valid in a Module scope - - virtual int visit_constant (be_constant *node); - // visit a constant - - virtual int visit_enum (be_enum *node); - // visit an enum - - virtual int visit_exception (be_exception *node); - // visit an exception - - virtual int visit_interface (be_interface *node); - // visit an interface - - virtual int visit_interface_fwd (be_interface_fwd *node); - // visit an interface - -#ifdef IDL_HAS_VALUETYPE - virtual int visit_valuetype (be_valuetype *node); - // visit valuetype - - virtual int visit_valuetype_fwd (be_valuetype_fwd *node); - // visit valuetype_fwd -#endif /* IDL_HAS_VALUETYPE */ - - virtual int visit_module (be_module *node); - // visit a module - - virtual int visit_structure (be_structure *node); - // visit a structure - - virtual int visit_union (be_union *node); - // visit a union - - virtual int visit_typedef (be_typedef *node); - // visit the typedef node - -}; - -#endif /* _BE_VISITOR_MODULE_MODULE_H_ */ diff --git a/TAO/TAO_IDL/be_include/be_visitor_module/module_ch.h b/TAO/TAO_IDL/be_include/be_visitor_module/module_ch.h deleted file mode 100644 index 5de940fa34f..00000000000 --- a/TAO/TAO_IDL/be_include/be_visitor_module/module_ch.h +++ /dev/null @@ -1,48 +0,0 @@ -/* -*- c++ -*- */ -// -// $Id$ -// - -// ============================================================================ -// -// = LIBRARY -// TAO IDL -// -// = FILENAME -// module_ch.h -// -// = DESCRIPTION -// Concrete visitor for the Module class -// This provides code generation for the module in the client header. -// -// = AUTHOR -// Aniruddha Gokhale -// -// ============================================================================ - -#ifndef _BE_VISITOR_MODULE_MODULE_CH_H_ -#define _BE_VISITOR_MODULE_MODULE_CH_H_ - -class be_visitor_module_ch : public be_visitor_module -{ - // - // = TITLE - // be_visitor_module_ch - // - // = DESCRIPTION - // This is a concrete visitor to generate the client header for module - // - // -public: - be_visitor_module_ch (be_visitor_context *ctx); - // constructor - - ~be_visitor_module_ch (void); - // destructor - - virtual int visit_module (be_module *node); - // visit module. We provide code for this method in the derived class - -}; - -#endif /* _BE_VISITOR_MODULE_MODULE_CH_H_ */ diff --git a/TAO/TAO_IDL/be_include/be_visitor_module/module_ih.h b/TAO/TAO_IDL/be_include/be_visitor_module/module_ih.h deleted file mode 100644 index f0039005391..00000000000 --- a/TAO/TAO_IDL/be_include/be_visitor_module/module_ih.h +++ /dev/null @@ -1,47 +0,0 @@ -/* -*- c++ -*- */ -// $Id$ - - -// ============================================================================ -// -// = LIBRARY -// TAO IDL -// -// = FILENAME -// module_ih.h -// -// = DESCRIPTION -// Concrete visitor for the Module class -// This provides code generation for the module in the implementation header. -// -// = AUTHOR -// Yamuna Krishnamurthy (yamuna@cs.wustl.edu) -// -// ============================================================================ - -#ifndef _BE_VISITOR_MODULE_MODULE_IH_H_ -#define _BE_VISITOR_MODULE_MODULE_IH_H_ - -class be_visitor_module_ih : public be_visitor_module -{ - // - // = TITLE - // be_visitor_module_ih - // - // = DESCRIPTION - // This is a concrete visitor to generate the implementation header for module - // - // -public: - be_visitor_module_ih (be_visitor_context *ctx); - // constructor - - ~be_visitor_module_ih (void); - // destructor - - virtual int visit_module (be_module *node); - // visit module. We provide code for this method in the derived class - -}; - -#endif /* _BE_VISITOR_MODULE_MODULE_SH_H_ */ diff --git a/TAO/TAO_IDL/be_include/be_visitor_module/module_sh.h b/TAO/TAO_IDL/be_include/be_visitor_module/module_sh.h deleted file mode 100644 index c0b6dfc5b37..00000000000 --- a/TAO/TAO_IDL/be_include/be_visitor_module/module_sh.h +++ /dev/null @@ -1,48 +0,0 @@ -/* -*- c++ -*- */ -// -// $Id$ -// - -// ============================================================================ -// -// = LIBRARY -// TAO IDL -// -// = FILENAME -// module_sh.h -// -// = DESCRIPTION -// Concrete visitor for the Module class -// This provides code generation for the module in the server header. -// -// = AUTHOR -// Aniruddha Gokhale -// -// ============================================================================ - -#ifndef _BE_VISITOR_MODULE_MODULE_SH_H_ -#define _BE_VISITOR_MODULE_MODULE_SH_H_ - -class be_visitor_module_sh : public be_visitor_module -{ - // - // = TITLE - // be_visitor_module_sh - // - // = DESCRIPTION - // This is a concrete visitor to generate the server header for module - // - // -public: - be_visitor_module_sh (be_visitor_context *ctx); - // constructor - - ~be_visitor_module_sh (void); - // destructor - - virtual int visit_module (be_module *node); - // visit module. We provide code for this method in the derived class - -}; - -#endif /* _BE_VISITOR_MODULE_MODULE_SH_H_ */ diff --git a/TAO/TAO_IDL/be_include/be_visitor_operation.h b/TAO/TAO_IDL/be_include/be_visitor_operation.h deleted file mode 100644 index e19952ca92d..00000000000 --- a/TAO/TAO_IDL/be_include/be_visitor_operation.h +++ /dev/null @@ -1,66 +0,0 @@ -/* -*- c++ -*- */ -// -// $Id$ -// - -// ============================================================================ -// -// = LIBRARY -// TAO IDL -// -// = FILENAME -// be_visitor_operation.h -// -// = DESCRIPTION -// Concrete visitor for the Operation class -// -// = AUTHOR -// Aniruddha Gokhale -// -// ============================================================================ - -#ifndef TAO_BE_VISITOR_OPERATION_H -#define TAO_BE_VISITOR_OPERATION_H - -#include "be_visitor.h" -#include "be_visitor_scope.h" -#include "be_visitor_operation/operation.h" -#include "be_visitor_operation/operation_ch.h" -#include "be_visitor_operation/operation_cs.h" -#include "be_visitor_operation/operation_sh.h" -#include "be_visitor_operation/operation_ih.h" -#include "be_visitor_operation/operation_ss.h" -#include "be_visitor_operation/operation_is.h" -#include "be_visitor_operation/tie_sh.h" -#include "be_visitor_operation/tie_si.h" -#include "be_visitor_operation/thru_poa_collocated_sh.h" -#include "be_visitor_operation/thru_poa_collocated_ss.h" -#include "be_visitor_operation/direct_collocated_sh.h" -#include "be_visitor_operation/direct_collocated_ss.h" -#include "be_visitor_operation/arglist.h" -#include "be_visitor_operation/rettype.h" -#include "be_visitor_operation/rettype_is.h" -#include "be_visitor_operation/rettype_vardecl_cs.h" -#include "be_visitor_operation/rettype_pre_docall_cs.h" -#include "be_visitor_operation/rettype_docall_cs.h" -#include "be_visitor_operation/rettype_post_docall_cs.h" -#include "be_visitor_operation/rettype_return_cs.h" -#include "be_visitor_operation/exceptlist_cs.h" -#include "be_visitor_operation/argument.h" -#include "be_visitor_operation/argument_invoke.h" -#include "be_visitor_operation/argument_marshal.h" -#include "be_visitor_operation/rettype_vardecl_ss.h" -#include "be_visitor_operation/rettype_assign_ss.h" -#include "be_visitor_operation/rettype_post_upcall_ss.h" -#include "be_visitor_operation/rettype_marshal_ss.h" -#include "be_visitor_operation/compiled_marshal.h" -#include "be_visitor_operation/rettype_pre_invoke_cs.h" -#include "be_visitor_operation/ami_ch.h" -#include "be_visitor_operation/ami_cs.h" -#include "be_visitor_operation/ami_arglist.h" -#include "be_visitor_operation/ami_handler_operation_ch.h" -#include "be_visitor_operation/ami_handler_arglist.h" -#include "be_visitor_operation/ami_handler_operation_cs.h" -#include "be_visitor_operation/ami_handler_skeleton_cs.h" -#include "be_visitor_operation/ami_handler_argument_marshal.h" -#endif // TAO_BE_VISITOR_OPERATION_H diff --git a/TAO/TAO_IDL/be_include/be_visitor_operation/ami_arglist.h b/TAO/TAO_IDL/be_include/be_visitor_operation/ami_arglist.h deleted file mode 100644 index 26c09921b7e..00000000000 --- a/TAO/TAO_IDL/be_include/be_visitor_operation/ami_arglist.h +++ /dev/null @@ -1,54 +0,0 @@ -// -// $Id$ -// - -// ============================================================================ -// -// = LIBRARY -// TAO IDL -// -// = FILENAME -// ami_arglist.h -// -// = DESCRIPTION -// Visitor for generating IDL Stub code for IDL operations. This -// generates the operation signature for the IDL stub. -// -// = AUTHOR -// Alexander Babu Arulanthu <alex@cs.wustl.edu> -// -// ============================================================================ - -#ifndef _BE_VISITOR_OPERATION_AMI_ARGLIST_H_ -#define _BE_VISITOR_OPERATION_AMI_ARGLIST_H_ - -// ****************************************************************************** -// Operation visitor for argument list - generates parameters in the signature -// ****************************************************************************** - -class be_visitor_operation_ami_arglist : public be_visitor_scope -{ - // - // = TITLE - // be_visitor_operaion_ami_arglist - // - // = DESCRIPTION - // This is a visitor to generate operation argument list for an - // AMI stub. - // - // -public: - be_visitor_operation_ami_arglist (be_visitor_context *ctx); - // constructor - - ~be_visitor_operation_ami_arglist (void); - // destructor - - int visit_operation (be_operation *node); - // visit the operation - - int visit_argument (be_argument *node); - // visit each argument -}; - -#endif /* _BE_VISITOR_OPERATION_AMI_ARGLIST_H_ */ diff --git a/TAO/TAO_IDL/be_include/be_visitor_operation/ami_ch.h b/TAO/TAO_IDL/be_include/be_visitor_operation/ami_ch.h deleted file mode 100644 index 2377916168d..00000000000 --- a/TAO/TAO_IDL/be_include/be_visitor_operation/ami_ch.h +++ /dev/null @@ -1,51 +0,0 @@ -// -// $Id$ -// - -// ============================================================================ -// -// = LIBRARY -// TAO IDL -// -// = FILENAME -// ami_ch.h -// -// = DESCRIPTION -// Visitor for generating AMI stub code for IDL operations in -// client header. -// -// = AUTHOR -// Alexander Babu Arulanthu <alex@cs.wustl.edu> -// -// ============================================================================ - -#ifndef _BE_VISITOR_OPERATION_AMI_CH_H_ -#define _BE_VISITOR_OPERATION_AMI_CH_H_ - -// ************************************************************ -// Operation visitor to generate AMI stubs for client header -// ************************************************************ - -class be_visitor_operation_ami_ch : public be_visitor_operation -{ - // - // = TITLE - // be_visitor_operation_ami_ch. - // - // = DESCRIPTION - // This is a concrete visitor to generate the AMI stubs in the - // client header for operation. - // - // -public: - be_visitor_operation_ami_ch (be_visitor_context *ctx); - // constructor - - ~be_visitor_operation_ami_ch (void); - // destructor - - virtual int visit_operation (be_operation *node); - // visit operation. -}; - -#endif /* _BE_VISITOR_OPERATION_AMI_CH_H_ */ diff --git a/TAO/TAO_IDL/be_include/be_visitor_operation/ami_cs.h b/TAO/TAO_IDL/be_include/be_visitor_operation/ami_cs.h deleted file mode 100644 index 40208d792ea..00000000000 --- a/TAO/TAO_IDL/be_include/be_visitor_operation/ami_cs.h +++ /dev/null @@ -1,125 +0,0 @@ -// -// $Id$ -// - -// ============================================================================ -// -// = LIBRARY -// TAO IDL -// -// = FILENAME -// ami_cs.h -// -// = DESCRIPTION -// Visitor for generating code for IDL operations in client stubs -// -// = AUTHOR -// Aniruddha Gokhale -// -// ============================================================================ - -#ifndef _BE_VISITOR_OPERATION_AMI_CS_H_ -#define _BE_VISITOR_OPERATION_AMI_CS_H_ - -// ************************************************************ -// Operation visitor for client stubs -// ************************************************************ - -class be_visitor_operation_ami_cs : public be_visitor_operation -{ - // - // = TITLE - // be_visitor_operation_ami_cs - // - // = DESCRIPTION - // This is a concrete visitor to generate the client stubs for operation - // - // -public: - be_visitor_operation_ami_cs (be_visitor_context *ctx); - // constructor - - ~be_visitor_operation_ami_cs (void); - // destructor - - virtual int visit_operation (be_operation *node); - // visit operation. - - virtual int visit_argument (be_argument *node); - // visit argument to generate ParamData entries - - // = template methods - virtual int gen_pre_stub_info (be_operation *, be_type *) = 0; - // generate any info before the actual code for the stub is generated - - virtual int gen_marshal_and_invoke (be_operation *, be_type *) = 0; - // generate code that marshals the arguments and transmits them - - // =helper - virtual int post_process (be_decl *); - // stuff to output after every member of the scope is handled - - virtual int gen_raise_exception (be_type *, - const char * excep, - const char * status); - // helper that generates code for raising an exception - - virtual int gen_check_exception (be_type *); - // helper that generates code for checking for an exception - -}; - -// specialized visitors - -class be_interpretive_visitor_operation_ami_cs : public be_visitor_operation_ami_cs -{ - // - // = TITLE - // be_interpretive_visitor_operation_ami_cs - // - // = DESCRIPTION - // This is a concrete visitor to generate the client stubs for operation - // using interpretive marshaling. - // - // -public: - be_interpretive_visitor_operation_ami_cs (be_visitor_context *); - // ctor - - ~be_interpretive_visitor_operation_ami_cs (void); - // dtor - - virtual int gen_pre_stub_info (be_operation *, be_type *); - // generate any info before the actual code for the stub is generated - - virtual int gen_marshal_and_invoke (be_operation *, be_type *); - // generate code that marshals the arguments and transmits them - -}; - -class be_compiled_visitor_operation_ami_cs : public be_visitor_operation_ami_cs -{ - // - // = TITLE - // be_compiled_visitor_operation_ami_cs - // - // = DESCRIPTION - // This is a concrete visitor to generate the client stubs for operation - // using compiled marshaling. - // - // -public: - be_compiled_visitor_operation_ami_cs (be_visitor_context *); - // ctor - - ~be_compiled_visitor_operation_ami_cs (void); - // dtor - - virtual int gen_pre_stub_info (be_operation *, be_type *); - // generate any info before the actual code for the stub is generated - - virtual int gen_marshal_and_invoke (be_operation *, be_type *); - // generate code that marshals the arguments and transmits them -}; - -#endif /* _BE_VISITOR_OPERATION_AMI_CS_H_ */ diff --git a/TAO/TAO_IDL/be_include/be_visitor_operation/ami_handler_arglist.h b/TAO/TAO_IDL/be_include/be_visitor_operation/ami_handler_arglist.h deleted file mode 100644 index 9e0ceb2c62d..00000000000 --- a/TAO/TAO_IDL/be_include/be_visitor_operation/ami_handler_arglist.h +++ /dev/null @@ -1,65 +0,0 @@ -// -// $Id$ -// - -// ============================================================================ -// -// = LIBRARY -// TAO IDL -// -// = FILENAME -// ami_handler_arglist.h -// -// = DESCRIPTION -// Visitor for generating code for IDL operations. This generates the -// operation signature. -// -// = AUTHOR -// Aniruddha Gokhale -// -// ============================================================================ - -#ifndef _BE_VISITOR_OPERATION_AMI_HANDLER_ARGLIST_H_ -#define _BE_VISITOR_OPERATION_AMI_HANDLER_ARGLIST_H_ - -// ****************************************************************************** -// Operation visitor for argument list - generates parameters in the signature -// ****************************************************************************** - -class be_visitor_operation_ami_handler_arglist : public be_visitor_operation -{ - // - // = TITLE - // be_visitor_operaion_ami_handler_arglist - // - // = DESCRIPTION - // This is a visitor to generate operation argument list - // - // -public: - be_visitor_operation_ami_handler_arglist (be_visitor_context *ctx); - // constructor - - ~be_visitor_operation_ami_handler_arglist (void); - // destructor - - virtual int visit_scope (be_scope *node); - // Visit the scope and its elements. - // This implementation is the same as - // <be_visitor_scope::visit_scope>. The variation is that it calls the - // <post_process> only if the return value of the <accept> is 1. We - // need to do this since we have to differentiate between an argument - // that was printed and an argument that was skipped in the signature. - - virtual int visit_operation (be_operation *node); - // visit the operation - - virtual int visit_argument (be_argument *node); - // visit each argument - - virtual int post_process (be_decl *); - // stuff to o/p after each element of the scope is handled - -}; - -#endif /* _BE_VISITOR_OPERATION_AMI_HANDLER_ARGLIST_H_ */ diff --git a/TAO/TAO_IDL/be_include/be_visitor_operation/ami_handler_argument_marshal.h b/TAO/TAO_IDL/be_include/be_visitor_operation/ami_handler_argument_marshal.h deleted file mode 100644 index 1697ff6cdd0..00000000000 --- a/TAO/TAO_IDL/be_include/be_visitor_operation/ami_handler_argument_marshal.h +++ /dev/null @@ -1,67 +0,0 @@ -// -// $Id$ -// - -// ============================================================================ -// -// = LIBRARY -// TAO IDL -// -// = FILENAME -// ami_handler_argument_marshal.h -// -// = DESCRIPTION -// Visitor for generating code for IDL operations. This is a visitor for -// passing arguments to the CDR operators in a compiled marshaling -// stub/skeleton -// -// = AUTHOR -// Aniruddha Gokhale -// -// ============================================================================ - -#ifndef _BE_VISITOR_OPERATION_ami_handler_argument_marshal_H_ -#define _BE_VISITOR_OPERATION_ami_handler_argument_marshal_H_ - -// ************************************************************ -// generic operation visitor for docall, upcall, pre/post -// ************************************************************ - -class be_compiled_visitor_operation_ami_handler_argument_marshal - : public be_visitor_operation_argument -{ - // - // = TITLE - // be_compiled_visitor_operation_ami_handler_argument_marshal - // - // = DESCRIPTION - // This is a visitor to generate a variable declaration of an operation - // return type - // -public: - be_compiled_visitor_operation_ami_handler_argument_marshal (be_visitor_context *ctx); - // constructor - - ~be_compiled_visitor_operation_ami_handler_argument_marshal (void); - // destructor - - virtual int pre_process (be_decl *bd); - // stuff to o/p before each element of the scope is handled - - virtual int post_process (be_decl *bd); - // stuff to o/p after each element of the scope is handled - - enum LAST_ARG_PRINTED - { - TAO_ARG_NONE, - TAO_ARG_IN, - TAO_ARG_INOUT, - TAO_ARG_OUT - }; - -private: - LAST_ARG_PRINTED last_arg_printed_; -}; - - -#endif /* _BE_VISITOR_OPERATION_ami_handler_argument_marshal_H_ */ diff --git a/TAO/TAO_IDL/be_include/be_visitor_operation/ami_handler_operation.h b/TAO/TAO_IDL/be_include/be_visitor_operation/ami_handler_operation.h deleted file mode 100644 index cb7640b40b0..00000000000 --- a/TAO/TAO_IDL/be_include/be_visitor_operation/ami_handler_operation.h +++ /dev/null @@ -1,52 +0,0 @@ -// -// $Id$ -// - -// ============================================================================ -// -// = LIBRARY -// TAO IDL -// -// = FILENAME -// ami_handler_operation_ch.h -// -// = DESCRIPTION -// Visitor for generating code for AMI Handler call back operations -// in client header. -// -// = AUTHOR -// Aniruddha Gokhale and Alexander Babu Arulanthu -// <alex@cs.wustl.edu> -// -// ============================================================================ - -#ifndef _BE_VISITOR_OPERATION_AMI_HANDLER_OPERATION_CH_H_ -#define _BE_VISITOR_OPERATION_AMI_HANDLER_OPERATION_CH_H_ - -// ************************************************************ -// Operation visitor for server header -// ************************************************************ - -class be_visitor_operation_ami_handler_operation_ch : public be_visitor_operation -{ - // - // = TITLE - // be_visitor_ami_handler_operation_ch - // - // = DESCRIPTION - // This is a concrete visitor to generate the server header for operation - // - // -public: - be_visitor_operation_ami_handler_operation_ch (be_visitor_context *ctx); - // constructor - - ~be_visitor_operation_ami_handler_operation_ch (void); - // destructor - - virtual int visit_operation (be_operation *node); - // visit operation. - -}; - -#endif /* _BE_VISITOR_OPERATION_AMI_HANDLER_OPERATION_CH_H_ */ diff --git a/TAO/TAO_IDL/be_include/be_visitor_operation/ami_handler_operation_ch.h b/TAO/TAO_IDL/be_include/be_visitor_operation/ami_handler_operation_ch.h deleted file mode 100644 index cb7640b40b0..00000000000 --- a/TAO/TAO_IDL/be_include/be_visitor_operation/ami_handler_operation_ch.h +++ /dev/null @@ -1,52 +0,0 @@ -// -// $Id$ -// - -// ============================================================================ -// -// = LIBRARY -// TAO IDL -// -// = FILENAME -// ami_handler_operation_ch.h -// -// = DESCRIPTION -// Visitor for generating code for AMI Handler call back operations -// in client header. -// -// = AUTHOR -// Aniruddha Gokhale and Alexander Babu Arulanthu -// <alex@cs.wustl.edu> -// -// ============================================================================ - -#ifndef _BE_VISITOR_OPERATION_AMI_HANDLER_OPERATION_CH_H_ -#define _BE_VISITOR_OPERATION_AMI_HANDLER_OPERATION_CH_H_ - -// ************************************************************ -// Operation visitor for server header -// ************************************************************ - -class be_visitor_operation_ami_handler_operation_ch : public be_visitor_operation -{ - // - // = TITLE - // be_visitor_ami_handler_operation_ch - // - // = DESCRIPTION - // This is a concrete visitor to generate the server header for operation - // - // -public: - be_visitor_operation_ami_handler_operation_ch (be_visitor_context *ctx); - // constructor - - ~be_visitor_operation_ami_handler_operation_ch (void); - // destructor - - virtual int visit_operation (be_operation *node); - // visit operation. - -}; - -#endif /* _BE_VISITOR_OPERATION_AMI_HANDLER_OPERATION_CH_H_ */ diff --git a/TAO/TAO_IDL/be_include/be_visitor_operation/ami_handler_operation_cs.h b/TAO/TAO_IDL/be_include/be_visitor_operation/ami_handler_operation_cs.h deleted file mode 100644 index 139cc1ecd37..00000000000 --- a/TAO/TAO_IDL/be_include/be_visitor_operation/ami_handler_operation_cs.h +++ /dev/null @@ -1,126 +0,0 @@ -// -// $Id$ -// - -// ============================================================================ -// -// = LIBRARY -// TAO IDL -// -// = FILENAME -// operation_ami_handler_operation_cs.h -// -// = DESCRIPTION -// Visitor for generating code for IDL operations in client stubs -// -// = AUTHOR -// Aniruddha Gokhale -// -// ============================================================================ - -#ifndef _BE_VISITOR_OPERATION_OPERATION_AMI_HANDLER_OPERATION_CS_H_ -#define _BE_VISITOR_OPERATION_OPERATION_AMI_HANDLER_OPERATION_CS_H_ - -// ************************************************************ -// Operation visitor for client stubs -// ************************************************************ - -class be_visitor_operation_ami_handler_operation_cs : public be_visitor_operation -{ - // - // = TITLE - // be_visitor_operation_ami_handler_operation_cs - // - // = DESCRIPTION - // This is a concrete visitor to generate the client stubs for operation - // - // -public: - be_visitor_operation_ami_handler_operation_cs (be_visitor_context *ctx); - // constructor - - ~be_visitor_operation_ami_handler_operation_cs (void); - // destructor - - virtual int visit_operation (be_operation *node); - // visit operation. - - virtual int visit_argument (be_argument *node); - // visit argument to generate ParamData entries - - // = template methods - virtual int gen_pre_stub_info (be_operation *, be_type *) = 0; - // generate any info before the actual code for the stub is generated - - virtual int gen_marshal_and_invoke (be_operation *, be_type *) = 0; - // generate code that marshals the arguments and transmits them - - // =helper - virtual int post_process (be_decl *); - // stuff to output after every member of the scope is handled - - virtual int gen_raise_exception (be_type *, - const char * excep, - const char * status); - // helper that generates code for raising an exception - - virtual int gen_check_exception (be_type *); - // helper that generates code for checking for an exception - -}; - -// specialized visitors - -class be_interpretive_visitor_operation_ami_handler_operation_cs : public be_visitor_operation_ami_handler_operation_cs -{ - // - // = TITLE - // be_interpretive_visitor_operation_ami_handler_operation_cs - // - // = DESCRIPTION - // This is a concrete visitor to generate the client stubs for operation - // using interpretive marshaling. - // - // -public: - be_interpretive_visitor_operation_ami_handler_operation_cs (be_visitor_context *); - // ctor - - ~be_interpretive_visitor_operation_ami_handler_operation_cs (void); - // dtor - - virtual int gen_pre_stub_info (be_operation *, be_type *); - // generate any info before the actual code for the stub is generated - - virtual int gen_marshal_and_invoke (be_operation *, be_type *); - // generate code that marshals the arguments and transmits them - -}; - -class be_compiled_visitor_operation_ami_handler_operation_cs : public be_visitor_operation_ami_handler_operation_cs -{ - // - // = TITLE - // be_compiled_visitor_operation_ami_handler_operation_cs - // - // = DESCRIPTION - // This is a concrete visitor to generate the client stubs for operation - // using compiled marshaling. - // - // -public: - be_compiled_visitor_operation_ami_handler_operation_cs (be_visitor_context *); - // ctor - - ~be_compiled_visitor_operation_ami_handler_operation_cs (void); - // dtor - - virtual int gen_pre_stub_info (be_operation *, be_type *); - // generate any info before the actual code for the stub is generated - - virtual int gen_marshal_and_invoke (be_operation *, be_type *); - // generate code that marshals the arguments and transmits them - -}; - -#endif /* _BE_VISITOR_OPERATION_OPERATION_AMI_HANDLER_OPERATION_CS_H_ */ diff --git a/TAO/TAO_IDL/be_include/be_visitor_operation/ami_handler_result_arg.h b/TAO/TAO_IDL/be_include/be_visitor_operation/ami_handler_result_arg.h deleted file mode 100644 index 4405174311f..00000000000 --- a/TAO/TAO_IDL/be_include/be_visitor_operation/ami_handler_result_arg.h +++ /dev/null @@ -1,86 +0,0 @@ -// -// $Id$ -// - -// ============================================================================ -// -// = LIBRARY -// TAO IDL -// -// = FILENAME -// ami_handler_result_arg.h -// -// = DESCRIPTION -// Visitor for generating code for IDL operations. This generates the return -// type of the operation -// -// = AUTHOR -// Aniruddha Gokhale -// -// ============================================================================ - -#ifndef _BE_VISITOR_OPERATION_AMI_HANDLER_RESULT_ARG_H_ -#define _BE_VISITOR_OPERATION_AMI_HANDLER_RESULT_ARG_H_ - -// *********************************************************************** -// Operation visitor for return types in the signature of the operation -// *********************************************************************** - -class be_visitor_operation_ami_handler_result_arg : public be_visitor_decl -{ - // - // = TITLE - // be_visitor_operation_ch - // - // = DESCRIPTION - // This is a visitor to generate operation return types - // - // -public: - be_visitor_operation_ami_handler_result_arg (be_visitor_context *ctx); - // constructor - - ~be_visitor_operation_ami_handler_result_arg (void); - // destructor - - int visit_array (be_array *node); - // visit an array node - - int visit_enum (be_enum *node); - // visit an enum node - - int visit_interface (be_interface *node); - // visit an interface node - - int visit_interface_fwd (be_interface_fwd *node); - // visit an interface node - - int visit_native (be_native *node); - // visit native type - - int visit_predefined_type (be_predefined_type *node); - // visit a predefined type node - - int visit_sequence (be_sequence *node); - // visit a sequence node - - int visit_string (be_string *node); - // visit a sequence node - - int visit_structure (be_structure *node); - // visit a structure node - - int visit_typedef (be_typedef *node); - // visit a typedef node - - int visit_union (be_union *node); - // visit a union node - -# ifdef IDL_HAS_VALUETYPE - int visit_valuetype (be_valuetype *node); - int visit_valuetype_fwd (be_valuetype_fwd *node); -# endif /* IDL_HAS_VALUETYPE */ - -}; - -#endif /* _BE_VISITOR_OPERATION_AMI_HANDLER_RESULT_ARG_H_ */ diff --git a/TAO/TAO_IDL/be_include/be_visitor_operation/ami_handler_skeleton_cs.h b/TAO/TAO_IDL/be_include/be_visitor_operation/ami_handler_skeleton_cs.h deleted file mode 100644 index ee6fe758b53..00000000000 --- a/TAO/TAO_IDL/be_include/be_visitor_operation/ami_handler_skeleton_cs.h +++ /dev/null @@ -1,129 +0,0 @@ -// -// $Id$ -// - -// ============================================================================ -// -// = LIBRARY -// TAO IDL -// -// = FILENAME -// operation_ami_handler_skeleton_cs.h -// -// = DESCRIPTION -// Visitor for generating code skelton code for IDL operations -// of AMI Reply Handlers. -// -// = AUTHOR -// Michael Kircher -// -// ============================================================================ - -#ifndef _BE_VISITOR_OPERATION_OPERATION_AMI_HANDLER_SKELETON_CS_H_ -#define _BE_VISITOR_OPERATION_OPERATION_AMI_HANDLER_SKELETON_CS_H_ - -// ************************************************************ -// Operation visitor for client stubs -// ************************************************************ - -class be_visitor_operation_ami_handler_skeleton_cs : public be_visitor_operation -{ - // - // = TITLE - // be_visitor_operation_ami_handler_operation_cs - // - // = DESCRIPTION - // Visitor for generating code skelton code for IDL operations - // of AMI Reply Handlers. - // - // -public: - be_visitor_operation_ami_handler_skeleton_cs (be_visitor_context *ctx); - // constructor - - ~be_visitor_operation_ami_handler_skeleton_cs (void); - // destructor - - virtual int visit_operation (be_operation *node); - // visit operation. - - virtual int visit_argument (be_argument *node); - // visit argument to generate ParamData entries - - // = template methods - virtual int gen_pre_stub_info (be_operation *, be_type *) = 0; - // generate any info before the actual code for the stub is generated - - virtual int gen_marshal_and_invoke (be_operation *, be_type *) = 0; - // generate code that marshals the arguments and transmits them - - // =helper - virtual int post_process (be_decl *); - // stuff to output after every member of the scope is handled - - virtual int gen_raise_exception (be_type *, - const char * excep, - const char * status); - // helper that generates code for raising an exception - - virtual int gen_check_exception (be_type *); - // helper that generates code for checking for an exception - -}; - -// specialized visitors - -class be_interpretive_visitor_operation_ami_handler_skeleton_cs : public be_visitor_operation_ami_handler_skeleton_cs -{ - // - // = TITLE - // be_interpretive_visitor_operation_ami_skeleton_operation_cs - // - // = DESCRIPTION - // This is a concrete visitor to generate the client skeletons - // for AMI reply handlers of IDL operations using interpretive marshaling. - // - // -public: - be_interpretive_visitor_operation_ami_handler_skeleton_cs (be_visitor_context *); - // ctor - - ~be_interpretive_visitor_operation_ami_handler_skeleton_cs (void); - // dtor - - virtual int gen_pre_stub_info (be_operation *, be_type *); - // generate any info before the actual code for the stub is generated - - virtual int gen_marshal_and_invoke (be_operation *, be_type *); - // generate code that marshals the arguments and transmits them - -}; - -class be_compiled_visitor_operation_ami_handler_skeleton_cs : public be_visitor_operation_ami_handler_skeleton_cs -{ - // - // = TITLE - // be_compiled_visitor_operation_ami_handler_skeleton_cs - // - // = DESCRIPTION - // This is a concrete visitor to generate the client skeletons - // for AMI reply handlers of IDL operations using compiled marshaling. - // - // -public: - be_compiled_visitor_operation_ami_handler_skeleton_cs (be_visitor_context *); - // ctor - - ~be_compiled_visitor_operation_ami_handler_skeleton_cs (void); - // dtor - - virtual int gen_pre_stub_info (be_operation *, be_type *); - // generate any info before the actual code for the stub is generated - - virtual int gen_marshal_and_invoke (be_operation *, be_type *); - // generate code that marshals the arguments and transmits them - -}; - - -#endif /* _BE_VISITOR_OPERATION_OPERATION_AMI_HANDLER_SKELETON_CS_H_ */ diff --git a/TAO/TAO_IDL/be_include/be_visitor_operation/arglist.h b/TAO/TAO_IDL/be_include/be_visitor_operation/arglist.h deleted file mode 100644 index a42834b2868..00000000000 --- a/TAO/TAO_IDL/be_include/be_visitor_operation/arglist.h +++ /dev/null @@ -1,57 +0,0 @@ -// -// $Id$ -// - -// ============================================================================ -// -// = LIBRARY -// TAO IDL -// -// = FILENAME -// arglist.h -// -// = DESCRIPTION -// Visitor for generating code for IDL operations. This generates the -// operation signature. -// -// = AUTHOR -// Aniruddha Gokhale -// -// ============================================================================ - -#ifndef _BE_VISITOR_OPERATION_ARGLIST_H_ -#define _BE_VISITOR_OPERATION_ARGLIST_H_ - -// ****************************************************************************** -// Operation visitor for argument list - generates parameters in the signature -// ****************************************************************************** - -class be_visitor_operation_arglist : public be_visitor_operation -{ - // - // = TITLE - // be_visitor_operaion_arglist - // - // = DESCRIPTION - // This is a visitor to generate operation argument list - // - // -public: - be_visitor_operation_arglist (be_visitor_context *ctx); - // constructor - - ~be_visitor_operation_arglist (void); - // destructor - - virtual int visit_operation (be_operation *node); - // visit the operation - - virtual int visit_argument (be_argument *node); - // visit each argument - - virtual int post_process (be_decl *); - // stuff to o/p after each element of the scope is handled - -}; - -#endif /* _BE_VISITOR_OPERATION_ARGLIST_H_ */ diff --git a/TAO/TAO_IDL/be_include/be_visitor_operation/argument.h b/TAO/TAO_IDL/be_include/be_visitor_operation/argument.h deleted file mode 100644 index 320e7a9aff1..00000000000 --- a/TAO/TAO_IDL/be_include/be_visitor_operation/argument.h +++ /dev/null @@ -1,57 +0,0 @@ -// -// $Id$ -// - -// ============================================================================ -// -// = LIBRARY -// TAO IDL -// -// = FILENAME -// argument.h -// -// = DESCRIPTION -// Visitor for generating code for IDL operations. This is a generic visitor -// that calls visitors for the Argument class. -// -// = AUTHOR -// Aniruddha Gokhale -// -// ============================================================================ - -#ifndef _BE_VISITOR_OPERATION_ARGUMENT_H_ -#define _BE_VISITOR_OPERATION_ARGUMENT_H_ - -// ************************************************************ -// generic operation visitor for docall, upcall, pre/post -// ************************************************************ - -class be_visitor_operation_argument : public be_visitor_operation -{ - // - // = TITLE - // be_visitor_operation_argument - // - // = DESCRIPTION - // This is a visitor to generate a variable declaration ofr an operation - // return type - // -public: - be_visitor_operation_argument (be_visitor_context *ctx); - // constructor - - ~be_visitor_operation_argument (void); - // destructor - - virtual int post_process (be_decl *); - // stuff to o/p after each element of the scope is handled - - virtual int visit_operation (be_operation *node); - // visit the operation - - virtual int visit_argument (be_argument *node); - // visit argument - -}; - -#endif /* _BE_VISITOR_OPERATION_ARGUMENT_H_ */ diff --git a/TAO/TAO_IDL/be_include/be_visitor_operation/argument_invoke.h b/TAO/TAO_IDL/be_include/be_visitor_operation/argument_invoke.h deleted file mode 100644 index 06e47f6b16a..00000000000 --- a/TAO/TAO_IDL/be_include/be_visitor_operation/argument_invoke.h +++ /dev/null @@ -1,66 +0,0 @@ -// -// $Id$ -// - -// ============================================================================ -// -// = LIBRARY -// TAO IDL -// -// = FILENAME -// argument_invoke.h -// -// = DESCRIPTION -// Visitor for generating code for IDL operations. This is a visitor for -// passing arguments to the CDR operators in a compiled marshaling -// stub/skeleton -// -// = AUTHOR -// Aniruddha Gokhale -// -// ============================================================================ - -#ifndef _BE_VISITOR_OPERATION_ARGUMENT_INVOKE_H_ -#define _BE_VISITOR_OPERATION_ARGUMENT_INVOKE_H_ - -// ************************************************************ -// generic operation visitor for docall, upcall, pre/post -// ************************************************************ - -class be_compiled_visitor_operation_argument_invoke - : public be_visitor_operation_argument -{ - // - // = TITLE - // be_compiled_visitor_operation_argument_invoke - // - // = DESCRIPTION - // This is a visitor to generate a variable declaration of an operation - // return type - // -public: - be_compiled_visitor_operation_argument_invoke (be_visitor_context *ctx); - // constructor - - ~be_compiled_visitor_operation_argument_invoke (void); - // destructor - - virtual int pre_process (be_decl *bd); - // stuff to o/p before each element of the scope is handled - - virtual int post_process (be_decl *bd); - // stuff to o/p after each element of the scope is handled - - enum LAST_ARG_PRINTED - { - TAO_ARG_NONE, - TAO_ARG_IN, - TAO_ARG_INOUT, - TAO_ARG_OUT - }; - -private: - LAST_ARG_PRINTED last_arg_printed_; -}; - -#endif /* _BE_VISITOR_OPERATION_ARGUMENT_INVOKE_H_ */ diff --git a/TAO/TAO_IDL/be_include/be_visitor_operation/argument_marshal.h b/TAO/TAO_IDL/be_include/be_visitor_operation/argument_marshal.h deleted file mode 100644 index 2a4802db351..00000000000 --- a/TAO/TAO_IDL/be_include/be_visitor_operation/argument_marshal.h +++ /dev/null @@ -1,88 +0,0 @@ -// -// $Id$ -// - -// ============================================================================ -// -// = LIBRARY -// TAO IDL -// -// = FILENAME -// argument_marshal.h -// -// = DESCRIPTION -// Visitor for generating code for IDL operations. This is a visitor for -// passing arguments to the CDR operators in a compiled marshaling -// stub/skeleton -// -// = AUTHOR -// Aniruddha Gokhale -// -// ============================================================================ - -#ifndef _BE_VISITOR_OPERATION_ARGUMENT_MARSHAL_H_ -#define _BE_VISITOR_OPERATION_ARGUMENT_MARSHAL_H_ - -// ************************************************************ -// generic operation visitor for docall, upcall, pre/post -// ************************************************************ - -class be_compiled_visitor_operation_argument_marshal - : public be_visitor_operation_argument -{ - // - // = TITLE - // be_compiled_visitor_operation_argument_marshal - // - // = DESCRIPTION - // This is a visitor to generate a variable declaration of an operation - // return type - // -public: - be_compiled_visitor_operation_argument_marshal (be_visitor_context *ctx); - // constructor - - ~be_compiled_visitor_operation_argument_marshal (void); - // destructor - - virtual int pre_process (be_decl *bd); - // stuff to o/p before each element of the scope is handled - - virtual int post_process (be_decl *bd); - // stuff to o/p after each element of the scope is handled - - enum LAST_ARG_PRINTED - { - TAO_ARG_NONE, - TAO_ARG_IN, - TAO_ARG_INOUT, - TAO_ARG_OUT - }; - -private: - LAST_ARG_PRINTED last_arg_printed_; -}; - -// **************************************************************** - -class be_visitor_compiled_args_decl : public be_visitor_scope -{ - // - // = TITLE - // be_visitor_compiled_args_decl - // - // = DESCRIPTION - // This is a visitor to generate variables declarations in the - // compiled marshaling stubs. - // -public: - be_visitor_compiled_args_decl (be_visitor_context *ctx); - // constructor - - int visit_array (be_array *node); - int visit_typedef (be_typedef *node); - int visit_argument (be_argument *node); - int visit_operation (be_operation *node); -}; - -#endif /* _BE_VISITOR_OPERATION_ARGUMENT_MARSHAL_H_ */ diff --git a/TAO/TAO_IDL/be_include/be_visitor_operation/compiled_marshal.h b/TAO/TAO_IDL/be_include/be_visitor_operation/compiled_marshal.h deleted file mode 100644 index e27360f0b29..00000000000 --- a/TAO/TAO_IDL/be_include/be_visitor_operation/compiled_marshal.h +++ /dev/null @@ -1,90 +0,0 @@ -// -// $Id$ -// - -// ============================================================================ -// -// = LIBRARY -// TAO IDL -// -// = FILENAME -// compiled_marshal.h -// -// = DESCRIPTION -// Visitor for generating code for IDL operations. This generates the code -// for passing the return type variable to the CDR ops -// made. -// -// = AUTHOR -// Aniruddha Gokhale -// -// ============================================================================ - -#ifndef _BE_VISITOR_OPERATION_RETTYPE_COMPILED_MARSHAL_H_ -#define _BE_VISITOR_OPERATION_RETTYPE_COMPILED_MARSHAL_H_ - -// ************************************************************ -// Operation visitor for passing return variable to do_static_call -// ************************************************************ - -class be_visitor_operation_rettype_compiled_marshal :public be_visitor_decl -{ - // - // = TITLE - // be_visitor_operation_rettype_compiled_marshal - // - // = DESCRIPTION - // This is a visitor to generate a variable declaration ofr an operation - // return type - // -public: - be_visitor_operation_rettype_compiled_marshal (be_visitor_context *ctx); - // constructor - - ~be_visitor_operation_rettype_compiled_marshal (void); - // destructor - - int visit_operation (be_operation *node); - // visit operation - - int visit_array (be_array *node); - // visit an array node - - int visit_enum (be_enum *node); - // visit an enum node - - int visit_interface (be_interface *node); - // visit an interface node - - int visit_interface_fwd (be_interface_fwd *node); - // visit an interface node - -#ifdef IDL_HAS_VALUETYPE - virtual int visit_valuetype (be_valuetype *node); - // visit valuetype - - virtual int visit_valuetype_fwd (be_valuetype_fwd *node); - // visit valuetype forward -#endif /* IDL_HAS_VALUETYPE */ - - int visit_predefined_type (be_predefined_type *node); - // visit a predefined type node - - int visit_sequence (be_sequence *node); - // visit a sequence node - - int visit_string (be_string *node); - // visit a sequence node - - int visit_structure (be_structure *node); - // visit a structure node - - int visit_typedef (be_typedef *node); - // visit a typedef node - - int visit_union (be_union *node); - // visit a union node - -}; - -#endif /* _BE_VISITOR_OPERATION_RETTYPE_COMPILED_MARSHAL_H_ */ diff --git a/TAO/TAO_IDL/be_include/be_visitor_operation/direct_collocated_sh.h b/TAO/TAO_IDL/be_include/be_visitor_operation/direct_collocated_sh.h deleted file mode 100644 index 413d7ce3059..00000000000 --- a/TAO/TAO_IDL/be_include/be_visitor_operation/direct_collocated_sh.h +++ /dev/null @@ -1,51 +0,0 @@ -// -// $Id$ -// - -// ============================================================================ -// -// = LIBRARY -// TAO IDL -// -// = FILENAME -// direct_collocated_ch.h -// -// = DESCRIPTION Visitor for generating code for IDL operations for -// the direct collocated case inside of the servant header -// -// = AUTHOR -// Aniruddha Gokhale -// -// ============================================================================ - -#ifndef _BE_VISITOR_OPERATION_DIRECT_COLLOCATED_SH_H_ -#define _BE_VISITOR_OPERATION_DIRECT_COLLOCATED_SH_H_ - -// ************************************************************ -// Operation visitor for server header in the direct collocated class -// ************************************************************ - -class be_visitor_operation_direct_collocated_sh : public be_visitor_scope -{ - // - // = TITLE - // be_visitor_operation_direct_collocated_sh - // - // = DESCRIPTION - // This is a concrete visitor to generate the server header for operation - // in the direct collocated class - // - // -public: - be_visitor_operation_direct_collocated_sh (be_visitor_context *ctx); - // constructor - - ~be_visitor_operation_direct_collocated_sh (void); - // destructor - - virtual int visit_operation (be_operation *node); - // visit operation node. - -}; - -#endif /* _BE_VISITOR_OPERATION_DIRECT_COLLOCATED_SH_H_ */ diff --git a/TAO/TAO_IDL/be_include/be_visitor_operation/direct_collocated_ss.h b/TAO/TAO_IDL/be_include/be_visitor_operation/direct_collocated_ss.h deleted file mode 100644 index 015139b3047..00000000000 --- a/TAO/TAO_IDL/be_include/be_visitor_operation/direct_collocated_ss.h +++ /dev/null @@ -1,60 +0,0 @@ -// -// $Id$ -// - -// ============================================================================ -// -// = LIBRARY -// TAO IDL -// -// = FILENAME -// direct_collocated_ss.h -// -// = DESCRIPTION -// Visitor for generating code for IDL operations for the direct_collocated case -// inside of the servant skeleton -// -// = AUTHOR -// Aniruddha Gokhale -// -// ============================================================================ - -#ifndef _BE_VISITOR_OPERATION_DIRECT_COLLOCATED_SS_H_ -#define _BE_VISITOR_OPERATION_DIRECT_COLLOCATED_SS_H_ - -// ***************************************************************** -// Operation visitor for server skeletons for the direct collocated class -// ***************************************************************** - -class be_visitor_operation_direct_collocated_ss : public be_visitor_scope -{ - // - // = TITLE - // be_visitor_operation_ss - // - // = DESCRIPTION - // This is a concrete visitor to generate the server skeletons for - // operation in the direct collocated class - // - // -public: - be_visitor_operation_direct_collocated_ss (be_visitor_context *ctx); - // constructor - - ~be_visitor_operation_direct_collocated_ss (void); - // destructor - - virtual int visit_operation (be_operation *node); - // visit operation node. - - virtual int gen_invoke (be_visitor_context &ctx, be_operation *node); - // A helper method to generate operation invocation code. - - virtual int gen_check_exception (be_type *bt); - // ACE_CHECK macros generator. - - virtual int void_return_type (be_type *bt); - // is my return type void? -}; - -#endif /* _BE_VISITOR_OPERATION_DIRECT_COLLOCATED_SS_H_ */ diff --git a/TAO/TAO_IDL/be_include/be_visitor_operation/exceptlist_cs.h b/TAO/TAO_IDL/be_include/be_visitor_operation/exceptlist_cs.h deleted file mode 100644 index 9e6d44f8848..00000000000 --- a/TAO/TAO_IDL/be_include/be_visitor_operation/exceptlist_cs.h +++ /dev/null @@ -1,52 +0,0 @@ -// -// $Id$ -// - -// ============================================================================ -// -// = LIBRARY -// TAO IDL -// -// = FILENAME -// exceptlist_cs.h -// -// = DESCRIPTION -// Visitor for generating code for IDL operations. This generates the tables -// for the exceptions used by the stubs. -// -// = AUTHOR -// Aniruddha Gokhale -// -// ============================================================================ - -#ifndef _BE_VISITOR_OPERATION_EXCEPTIONLIST_CS_H_ -#define _BE_VISITOR_OPERATION_EXCEPTIONLIST_CS_H_ - -// ****************************************************************************** -// Visitor for generating the exception list -// ****************************************************************************** - -class be_visitor_operation_exceptlist_cs : public be_visitor_decl -{ - // - // = TITLE - // be_visitor_operaion_exceptlist_cs - // - // = DESCRIPTION - // This is a visitor to generate operation exception list to be provided to - // the do_static_call - // - // -public: - be_visitor_operation_exceptlist_cs (be_visitor_context *ctx); - // constructor - - ~be_visitor_operation_exceptlist_cs (void); - // destructor - - int visit_operation (be_operation *node); - // visit the operation - -}; - -#endif /* _BE_VISITOR_OPERATION_EXCEPTIONLIST_CS_H_ */ diff --git a/TAO/TAO_IDL/be_include/be_visitor_operation/operation.h b/TAO/TAO_IDL/be_include/be_visitor_operation/operation.h deleted file mode 100644 index 07e9e98e68b..00000000000 --- a/TAO/TAO_IDL/be_include/be_visitor_operation/operation.h +++ /dev/null @@ -1,60 +0,0 @@ -// -// $Id$ -// - -// ============================================================================ -// -// = LIBRARY -// TAO IDL -// -// = FILENAME -// operation.h -// -// = DESCRIPTION -// Visitor for generating code for IDL operations in client stubs -// -// = AUTHOR -// Aniruddha Gokhale -// -// ============================================================================ - -#ifndef _BE_VISITOR_OPERATION_OPERATION_H_ -#define _BE_VISITOR_OPERATION_OPERATION_H_ - -// ************************************************************ -// Generic Operation visitor with some helper methods -// ************************************************************ - -class be_visitor_operation : public be_visitor_scope -{ - // - // = TITLE - // be_visitor_operation - // - // = DESCRIPTION - // This is a base helper visitor for operation node - // - // -public: - be_visitor_operation (be_visitor_context *ctx); - // constructor - - ~be_visitor_operation (void); - // destructor - - // =helper - - virtual int void_return_type (be_type *); - // is my return type void? - - virtual int has_param_type (be_operation *, AST_Argument::Direction); - // does any of the argument node have the specified direction - - virtual int gen_throw_spec (be_operation *node); - // generate the throw specification - - virtual const char *gen_environment_var (void); - // generate the environment variable declaration -}; - -#endif /* _BE_VISITOR_OPERATION_OPERATION_H_ */ diff --git a/TAO/TAO_IDL/be_include/be_visitor_operation/operation_ami.h b/TAO/TAO_IDL/be_include/be_visitor_operation/operation_ami.h deleted file mode 100644 index f2003a6db22..00000000000 --- a/TAO/TAO_IDL/be_include/be_visitor_operation/operation_ami.h +++ /dev/null @@ -1,51 +0,0 @@ -// -// $Id$ -// - -// ============================================================================ -// -// = LIBRARY -// TAO IDL -// -// = FILENAME -// operation_ami.h -// -// = DESCRIPTION -// Visitor for generating AMI stub code for IDL operations in -// client header. -// -// = AUTHOR -// Alexander Babu Arulanthu <alex@cs.wustl.edu> -// -// ============================================================================ - -#ifndef _BE_VISITOR_OPERATION_OPERATION_AMI_H_ -#define _BE_VISITOR_OPERATION_OPERATION_AMI_H_ - -// ************************************************************ -// Operation visitor to generate AMI stubs for client header -// ************************************************************ - -class be_visitor_operation_ami : public be_visitor_operation -{ - // - // = TITLE - // be_visitor_operation_ami. - // - // = DESCRIPTION - // This is a concrete visitor to generate the AMI stubs in the - // client header for operation. - // - // -public: - be_visitor_operation_ami (be_visitor_context *ctx); - // constructor - - ~be_visitor_operation_ami (void); - // destructor - - virtual int visit_operation (be_operation *node); - // visit operation. -}; - -#endif /* _BE_VISITOR_OPERATION_OPERATION_AMI_H_ */ diff --git a/TAO/TAO_IDL/be_include/be_visitor_operation/operation_ami_ch.h b/TAO/TAO_IDL/be_include/be_visitor_operation/operation_ami_ch.h deleted file mode 100644 index 9db97cff0bb..00000000000 --- a/TAO/TAO_IDL/be_include/be_visitor_operation/operation_ami_ch.h +++ /dev/null @@ -1,51 +0,0 @@ -// -// $Id$ -// - -// ============================================================================ -// -// = LIBRARY -// TAO IDL -// -// = FILENAME -// operation_ami_ch.h -// -// = DESCRIPTION -// Visitor for generating AMI stub code for IDL operations in -// client header. -// -// = AUTHOR -// Alexander Babu Arulanthu <alex@cs.wustl.edu> -// -// ============================================================================ - -#ifndef _BE_VISITOR_OPERATION_OPERATION_AMI_CH_H_ -#define _BE_VISITOR_OPERATION_OPERATION_AMI_CH_H_ - -// ************************************************************ -// Operation visitor to generate AMI stubs for client header -// ************************************************************ - -class be_visitor_operation_ami_ch : public be_visitor_operation -{ - // - // = TITLE - // be_visitor_operation_ami_ch. - // - // = DESCRIPTION - // This is a concrete visitor to generate the AMI stubs in the - // client header for operation. - // - // -public: - be_visitor_operation_ami_ch (be_visitor_context *ctx); - // constructor - - ~be_visitor_operation_ami_ch (void); - // destructor - - virtual int visit_operation (be_operation *node); - // visit operation. -}; - -#endif /* _BE_VISITOR_OPERATION_OPERATION_AMI_CH_H_ */ diff --git a/TAO/TAO_IDL/be_include/be_visitor_operation/operation_ami_cs.h b/TAO/TAO_IDL/be_include/be_visitor_operation/operation_ami_cs.h deleted file mode 100644 index 6c324505aa0..00000000000 --- a/TAO/TAO_IDL/be_include/be_visitor_operation/operation_ami_cs.h +++ /dev/null @@ -1,125 +0,0 @@ -// -// $Id$ -// - -// ============================================================================ -// -// = LIBRARY -// TAO IDL -// -// = FILENAME -// operation_ami_cs.h -// -// = DESCRIPTION -// Visitor for generating code for IDL operations in client stubs -// -// = AUTHOR -// Aniruddha Gokhale -// -// ============================================================================ - -#ifndef _BE_VISITOR_OPERATION_OPERATION_AMI_CS_H_ -#define _BE_VISITOR_OPERATION_OPERATION_AMI_CS_H_ - -// ************************************************************ -// Operation visitor for client stubs -// ************************************************************ - -class be_visitor_operation_ami_cs : public be_visitor_operation -{ - // - // = TITLE - // be_visitor_operation_ami_cs - // - // = DESCRIPTION - // This is a concrete visitor to generate the client stubs for operation - // - // -public: - be_visitor_operation_ami_cs (be_visitor_context *ctx); - // constructor - - ~be_visitor_operation_ami_cs (void); - // destructor - - virtual int visit_operation (be_operation *node); - // visit operation. - - virtual int visit_argument (be_argument *node); - // visit argument to generate ParamData entries - - // = template methods - virtual int gen_pre_stub_info (be_operation *, be_type *) = 0; - // generate any info before the actual code for the stub is generated - - virtual int gen_marshal_and_invoke (be_operation *, be_type *) = 0; - // generate code that marshals the arguments and transmits them - - // =helper - virtual int post_process (be_decl *); - // stuff to output after every member of the scope is handled - - virtual int gen_raise_exception (be_type *, - const char * excep, - const char * status); - // helper that generates code for raising an exception - - virtual int gen_check_exception (be_type *); - // helper that generates code for checking for an exception - -}; - -// specialized visitors - -class be_interpretive_visitor_operation_ami_cs : public be_visitor_operation_ami_cs -{ - // - // = TITLE - // be_interpretive_visitor_operation_ami_cs - // - // = DESCRIPTION - // This is a concrete visitor to generate the client stubs for operation - // using interpretive marshaling. - // - // -public: - be_interpretive_visitor_operation_ami_cs (be_visitor_context *); - // ctor - - ~be_interpretive_visitor_operation_ami_cs (void); - // dtor - - virtual int gen_pre_stub_info (be_operation *, be_type *); - // generate any info before the actual code for the stub is generated - - virtual int gen_marshal_and_invoke (be_operation *, be_type *); - // generate code that marshals the arguments and transmits them - -}; - -class be_compiled_visitor_operation_ami_cs : public be_visitor_operation_ami_cs -{ - // - // = TITLE - // be_compiled_visitor_operation_ami_cs - // - // = DESCRIPTION - // This is a concrete visitor to generate the client stubs for operation - // using compiled marshaling. - // - // -public: - be_compiled_visitor_operation_ami_cs (be_visitor_context *); - // ctor - - ~be_compiled_visitor_operation_ami_cs (void); - // dtor - - virtual int gen_pre_stub_info (be_operation *, be_type *); - // generate any info before the actual code for the stub is generated - - virtual int gen_marshal_and_invoke (be_operation *, be_type *); - // generate code that marshals the arguments and transmits them -}; - -#endif /* _BE_VISITOR_OPERATION_OPERATION_AMI_CS_H_ */ diff --git a/TAO/TAO_IDL/be_include/be_visitor_operation/operation_ch.h b/TAO/TAO_IDL/be_include/be_visitor_operation/operation_ch.h deleted file mode 100644 index 2171d0ef62f..00000000000 --- a/TAO/TAO_IDL/be_include/be_visitor_operation/operation_ch.h +++ /dev/null @@ -1,50 +0,0 @@ -// -// $Id$ -// - -// ============================================================================ -// -// = LIBRARY -// TAO IDL -// -// = FILENAME -// operation_ch.h -// -// = DESCRIPTION -// Visitor for generating code for IDL operations in client header -// -// = AUTHOR -// Aniruddha Gokhale -// -// ============================================================================ - -#ifndef _BE_VISITOR_OPERATION_OPERATION_CH_H_ -#define _BE_VISITOR_OPERATION_OPERATION_CH_H_ - -// ************************************************************ -// Operation visitor for client header -// ************************************************************ - -class be_visitor_operation_ch : public be_visitor_operation -{ - // - // = TITLE - // be_visitor_operation_ch - // - // = DESCRIPTION - // This is a concrete visitor to generate the client header for operation - // - // -public: - be_visitor_operation_ch (be_visitor_context *ctx); - // constructor - - ~be_visitor_operation_ch (void); - // destructor - - virtual int visit_operation (be_operation *node); - // visit operation. - -}; - -#endif /* _BE_VISITOR_OPERATION_OPERATION_CH_H_ */ diff --git a/TAO/TAO_IDL/be_include/be_visitor_operation/operation_cs.h b/TAO/TAO_IDL/be_include/be_visitor_operation/operation_cs.h deleted file mode 100644 index e8d029f8a35..00000000000 --- a/TAO/TAO_IDL/be_include/be_visitor_operation/operation_cs.h +++ /dev/null @@ -1,126 +0,0 @@ -// -// $Id$ -// - -// ============================================================================ -// -// = LIBRARY -// TAO IDL -// -// = FILENAME -// operation_cs.h -// -// = DESCRIPTION -// Visitor for generating code for IDL operations in client stubs -// -// = AUTHOR -// Aniruddha Gokhale -// -// ============================================================================ - -#ifndef _BE_VISITOR_OPERATION_OPERATION_CS_H_ -#define _BE_VISITOR_OPERATION_OPERATION_CS_H_ - -// ************************************************************ -// Operation visitor for client stubs -// ************************************************************ - -class be_visitor_operation_cs : public be_visitor_operation -{ - // - // = TITLE - // be_visitor_operation_cs - // - // = DESCRIPTION - // This is a concrete visitor to generate the client stubs for operation - // - // -public: - be_visitor_operation_cs (be_visitor_context *ctx); - // constructor - - ~be_visitor_operation_cs (void); - // destructor - - virtual int visit_operation (be_operation *node); - // visit operation. - - virtual int visit_argument (be_argument *node); - // visit argument to generate ParamData entries - - // = template methods - virtual int gen_pre_stub_info (be_operation *, be_type *) = 0; - // generate any info before the actual code for the stub is generated - - virtual int gen_marshal_and_invoke (be_operation *, be_type *) = 0; - // generate code that marshals the arguments and transmits them - - // =helper - virtual int post_process (be_decl *); - // stuff to output after every member of the scope is handled - - virtual int gen_raise_exception (be_type *, - const char * excep, - const char * status); - // helper that generates code for raising an exception - - virtual int gen_check_exception (be_type *); - // helper that generates code for checking for an exception - -}; - -// specialized visitors - -class be_interpretive_visitor_operation_cs : public be_visitor_operation_cs -{ - // - // = TITLE - // be_interpretive_visitor_operation_cs - // - // = DESCRIPTION - // This is a concrete visitor to generate the client stubs for operation - // using interpretive marshaling. - // - // -public: - be_interpretive_visitor_operation_cs (be_visitor_context *); - // ctor - - ~be_interpretive_visitor_operation_cs (void); - // dtor - - virtual int gen_pre_stub_info (be_operation *, be_type *); - // generate any info before the actual code for the stub is generated - - virtual int gen_marshal_and_invoke (be_operation *, be_type *); - // generate code that marshals the arguments and transmits them - -}; - -class be_compiled_visitor_operation_cs : public be_visitor_operation_cs -{ - // - // = TITLE - // be_compiled_visitor_operation_cs - // - // = DESCRIPTION - // This is a concrete visitor to generate the client stubs for operation - // using compiled marshaling. - // - // -public: - be_compiled_visitor_operation_cs (be_visitor_context *); - // ctor - - ~be_compiled_visitor_operation_cs (void); - // dtor - - virtual int gen_pre_stub_info (be_operation *, be_type *); - // generate any info before the actual code for the stub is generated - - virtual int gen_marshal_and_invoke (be_operation *, be_type *); - // generate code that marshals the arguments and transmits them - -}; - -#endif /* _BE_VISITOR_OPERATION_OPERATION_CS_H_ */ diff --git a/TAO/TAO_IDL/be_include/be_visitor_operation/operation_ih.h b/TAO/TAO_IDL/be_include/be_visitor_operation/operation_ih.h deleted file mode 100644 index 01b80ead8d6..00000000000 --- a/TAO/TAO_IDL/be_include/be_visitor_operation/operation_ih.h +++ /dev/null @@ -1,48 +0,0 @@ -// $Id$ - -// ============================================================================ -// -// = LIBRARY -// TAO IDL -// -// = FILENAME -// operation_ih.h -// -// = DESCRIPTION -// Visitor for generating code for IDL operations in implementation header -// -// = AUTHOR -// Yamuna Krishnamurthy (yamuna@cs.wustl.edu) -// -// ============================================================================ - -#ifndef _BE_VISITOR_OPERATION_OPERATION_IH_H_ -#define _BE_VISITOR_OPERATION_OPERATION_IH_H_ - -// ************************************************************ -// Operation visitor for implementation header -// ************************************************************ - -class be_visitor_operation_ih : public be_visitor_operation -{ - // - // = TITLE - // be_visitor_operation_ih - // - // = DESCRIPTION - // This is a concrete visitor to generate the implementation header for operation - // - // -public: - be_visitor_operation_ih (be_visitor_context *ctx); - // constructor - - ~be_visitor_operation_ih (void); - // destructor - - virtual int visit_operation (be_operation *node); - // visit operation. We provide code for this method in the derived class - -}; - -#endif /* _BE_VISITOR_OPERATION_OPERATION_IH_H_ */ diff --git a/TAO/TAO_IDL/be_include/be_visitor_operation/operation_is.h b/TAO/TAO_IDL/be_include/be_visitor_operation/operation_is.h deleted file mode 100644 index 31743cdbba4..00000000000 --- a/TAO/TAO_IDL/be_include/be_visitor_operation/operation_is.h +++ /dev/null @@ -1,48 +0,0 @@ -// $Id$ - -// ============================================================================ -// -// = LIBRARY -// TAO IDL -// -// = FILENAME -// operation_is.cpp -// -// = DESCRIPTION -// Visitor for generating code for IDL operations in implementation skeleton -// -// = AUTHOR -// Yamuna Krishnamurthy (yamuna@cs.wustl.edu) -// -// ============================================================================ - -#ifndef _BE_VISITOR_OPERATION_OPERATION_IS_CPP_ -#define _BE_VISITOR_OPERATION_OPERATION_IS_CPP_ - -// ************************************************************ -// Operation visitor for implementation skeleton -// ************************************************************ - -class be_visitor_operation_is : public be_visitor_operation -{ - // - // = TITLE - // be_visitor_operation_is - // - // = DESCRIPTION - // This is a concrete visitor to generate the implementation skeleton for operation - // - // -public: - be_visitor_operation_is (be_visitor_context *ctx); - // constructor - - ~be_visitor_operation_is (void); - // destructor - - virtual int visit_operation (be_operation *node); - // visit operation. We provide code for this method in the derived class - -}; - -#endif /* _BE_VISITOR_OPERATION_OPERATION_IS_CPP_ */ diff --git a/TAO/TAO_IDL/be_include/be_visitor_operation/operation_sh.h b/TAO/TAO_IDL/be_include/be_visitor_operation/operation_sh.h deleted file mode 100644 index d33d61533d8..00000000000 --- a/TAO/TAO_IDL/be_include/be_visitor_operation/operation_sh.h +++ /dev/null @@ -1,50 +0,0 @@ -// -// $Id$ -// - -// ============================================================================ -// -// = LIBRARY -// TAO IDL -// -// = FILENAME -// operation_sh.h -// -// = DESCRIPTION -// Visitor for generating code for IDL operations in server header -// -// = AUTHOR -// Aniruddha Gokhale -// -// ============================================================================ - -#ifndef _BE_VISITOR_OPERATION_OPERATION_SH_H_ -#define _BE_VISITOR_OPERATION_OPERATION_SH_H_ - -// ************************************************************ -// Operation visitor for server header -// ************************************************************ - -class be_visitor_operation_sh : public be_visitor_operation -{ - // - // = TITLE - // be_visitor_operation_sh - // - // = DESCRIPTION - // This is a concrete visitor to generate the server header for operation - // - // -public: - be_visitor_operation_sh (be_visitor_context *ctx); - // constructor - - ~be_visitor_operation_sh (void); - // destructor - - virtual int visit_operation (be_operation *node); - // visit operation. - -}; - -#endif /* _BE_VISITOR_OPERATION_OPERATION_SH_H_ */ diff --git a/TAO/TAO_IDL/be_include/be_visitor_operation/operation_ss.h b/TAO/TAO_IDL/be_include/be_visitor_operation/operation_ss.h deleted file mode 100644 index aac5af2ed74..00000000000 --- a/TAO/TAO_IDL/be_include/be_visitor_operation/operation_ss.h +++ /dev/null @@ -1,141 +0,0 @@ -// -// $Id$ -// - -// ============================================================================ -// -// = LIBRARY -// TAO IDL -// -// = FILENAME -// operation_ss.h -// -// = DESCRIPTION -// Visitor for generating code for IDL operations in server skeletons -// -// = AUTHOR -// Aniruddha Gokhale -// -// ============================================================================ - -#ifndef _BE_VISITOR_OPERATION_OPERATION_SS_H_ -#define _BE_VISITOR_OPERATION_OPERATION_SS_H_ - -// ************************************************************ -// Operation visitor for server skeletons -// ************************************************************ - -class be_visitor_operation_ss : public be_visitor_operation -{ - // - // = TITLE - // be_visitor_operation_ss - // - // = DESCRIPTION - // This is a concrete visitor to generate the server skeletons for operation - // - // -public: - be_visitor_operation_ss (be_visitor_context *ctx); - // constructor - - ~be_visitor_operation_ss (void); - // destructor - - virtual int visit_operation (be_operation *node); - // visit operation. We provide code for this method in the derived class - - virtual int visit_argument (be_argument *node); - // visit argument to generate ParamData entries - - // template methods - - virtual int gen_pre_skel_info (be_operation *, be_type *) = 0; - // generate any pre skeleton code info - - virtual int gen_demarshal_params (be_operation *, be_type *) = 0; - // generate code for demarshaling incoming parameters - - virtual int gen_marshal_params (be_operation *, be_type *) = 0; - // generate code for marshaling outgoing parameters - - // = helper - virtual int post_process (be_decl *); - // stuff to output after every member of the scope is handled - - virtual int gen_raise_exception (be_type *, - const char * excep, - const char * status, - const char * env); - // helper that generates code for raising an exception - - virtual int gen_check_exception (be_type *, const char *env); - // helper that generates code for checking for an exception - -}; - -// concrete visitors - -class be_interpretive_visitor_operation_ss : public be_visitor_operation_ss -{ - // - // = TITLE - // be_interpretive_visitor_operation_ss - // - // = DESCRIPTION - // This is a concrete visitor to generate the server skeletons for - // operation using interpretive marshaling - // - // -public: - be_interpretive_visitor_operation_ss (be_visitor_context *ctx); - // constructor - - ~be_interpretive_visitor_operation_ss (void); - // destructor - - // template methods - - virtual int gen_pre_skel_info (be_operation *, be_type *); - // generate any pre skeleton code info - - virtual int gen_demarshal_params (be_operation *, be_type *); - // generate code for demarshaling incoming parameters - - virtual int gen_marshal_params (be_operation *, be_type *); - // generate code for marshaling outgoing parameters - -}; - -class be_compiled_visitor_operation_ss : public be_visitor_operation_ss -{ - // - // = TITLE - // be_compiled_visitor_operation_ss - // - // = DESCRIPTION - // This is a concrete visitor to generate the server skeletons for - // operation using compiled marshaling - // - // -public: - be_compiled_visitor_operation_ss (be_visitor_context *ctx); - // constructor - - ~be_compiled_visitor_operation_ss (void); - // destructor - - // template methods - - virtual int gen_pre_skel_info (be_operation *, be_type *); - // generate any pre skeleton code info - - virtual int gen_demarshal_params (be_operation *, be_type *); - // generate code for demarshaling incoming parameters - - virtual int gen_marshal_params (be_operation *, be_type *); - // generate code for marshaling outgoing parameters - -}; - -#endif /* _BE_VISITOR_OPERATION_OPERATION_SS_H_ */ diff --git a/TAO/TAO_IDL/be_include/be_visitor_operation/rettype.h b/TAO/TAO_IDL/be_include/be_visitor_operation/rettype.h deleted file mode 100644 index a5ed3483393..00000000000 --- a/TAO/TAO_IDL/be_include/be_visitor_operation/rettype.h +++ /dev/null @@ -1,86 +0,0 @@ -// -// $Id$ -// - -// ============================================================================ -// -// = LIBRARY -// TAO IDL -// -// = FILENAME -// rettype.h -// -// = DESCRIPTION -// Visitor for generating code for IDL operations. This generates the return -// type of the operation -// -// = AUTHOR -// Aniruddha Gokhale -// -// ============================================================================ - -#ifndef _BE_VISITOR_OPERATION_RETTYPE_H_ -#define _BE_VISITOR_OPERATION_RETTYPE_H_ - -// *********************************************************************** -// Operation visitor for return types in the signature of the operation -// *********************************************************************** - -class be_visitor_operation_rettype : public be_visitor_decl -{ - // - // = TITLE - // be_visitor_operation_ch - // - // = DESCRIPTION - // This is a visitor to generate operation return types - // - // -public: - be_visitor_operation_rettype (be_visitor_context *ctx); - // constructor - - ~be_visitor_operation_rettype (void); - // destructor - - int visit_array (be_array *node); - // visit an array node - - int visit_enum (be_enum *node); - // visit an enum node - - int visit_interface (be_interface *node); - // visit an interface node - - int visit_interface_fwd (be_interface_fwd *node); - // visit an interface node - - int visit_native (be_native *node); - // visit native type - - int visit_predefined_type (be_predefined_type *node); - // visit a predefined type node - - int visit_sequence (be_sequence *node); - // visit a sequence node - - int visit_string (be_string *node); - // visit a sequence node - - int visit_structure (be_structure *node); - // visit a structure node - - int visit_typedef (be_typedef *node); - // visit a typedef node - - int visit_union (be_union *node); - // visit a union node - -# ifdef IDL_HAS_VALUETYPE - int visit_valuetype (be_valuetype *node); - int visit_valuetype_fwd (be_valuetype_fwd *node); -# endif /* IDL_HAS_VALUETYPE */ - -}; - -#endif /* _BE_VISITOR_OPERATION_RETTYPE_H_ */ diff --git a/TAO/TAO_IDL/be_include/be_visitor_operation/rettype_assign_ss.h b/TAO/TAO_IDL/be_include/be_visitor_operation/rettype_assign_ss.h deleted file mode 100644 index 26d943d55d5..00000000000 --- a/TAO/TAO_IDL/be_include/be_visitor_operation/rettype_assign_ss.h +++ /dev/null @@ -1,88 +0,0 @@ -// -// $Id$ -// - -// ============================================================================ -// -// = LIBRARY -// TAO IDL -// -// = FILENAME -// rettype_assign_ss.h -// -// = DESCRIPTION -// Visitor for generating code for IDL operations. This generates the -// assignment of the return value of the upcall to the return type variabel -// inside the server-skeleton. -// -// = AUTHOR -// Aniruddha Gokhale -// -// ============================================================================ - -#ifndef _BE_VISITOR_OPERATION_RETTYPE_ASSIGN_SS_H_ -#define _BE_VISITOR_OPERATION_RETTYPE_ASSIGN_SS_H_ - -// *********************************************************************** -// Operation visitor for assignment to return types in an upcall -// *********************************************************************** - -class be_visitor_operation_rettype_assign_ss : public be_visitor_decl -{ - // - // = TITLE - // be_visitor_operation_ch - // - // = DESCRIPTION - // This is a visitor to generate code that assigns to the return type - // variable in the upcall - // - // -public: - be_visitor_operation_rettype_assign_ss (be_visitor_context *ctx); - // constructor - - ~be_visitor_operation_rettype_assign_ss (void); - // destructor - - int visit_array (be_array *node); - // visit an array node - - int visit_enum (be_enum *node); - // visit an enum node - - int visit_interface (be_interface *node); - // visit an interface node - - int visit_interface_fwd (be_interface_fwd *node); - // visit an interface node - -#ifdef IDL_HAS_VALUETYPE - virtual int visit_valuetype (be_valuetype *node); - // visit valuetype - - virtual int visit_valuetype_fwd (be_valuetype_fwd *node); - // visit valuetype forward -#endif /* IDL_HAS_VALUETYPE */ - - int visit_predefined_type (be_predefined_type *node); - // visit a predefined type node - - int visit_sequence (be_sequence *node); - // visit a sequence node - - int visit_string (be_string *node); - // visit a sequence node - - int visit_structure (be_structure *node); - // visit a structure node - - int visit_typedef (be_typedef *node); - // visit a typedef node - - int visit_union (be_union *node); - // visit a union node - -}; - -#endif /* _BE_VISITOR_OPERATION_RETTYPE_ASSIGN_SS_H_ */ diff --git a/TAO/TAO_IDL/be_include/be_visitor_operation/rettype_docall_cs.h b/TAO/TAO_IDL/be_include/be_visitor_operation/rettype_docall_cs.h deleted file mode 100644 index bb7de8fe3ad..00000000000 --- a/TAO/TAO_IDL/be_include/be_visitor_operation/rettype_docall_cs.h +++ /dev/null @@ -1,79 +0,0 @@ -// -// $Id$ -// - -// ============================================================================ -// -// = LIBRARY -// TAO IDL -// -// = FILENAME -// rettype_docall_cs.h -// -// = DESCRIPTION -// Visitor for generating code for IDL operations. This generates the code -// for passing the return type variable to the docall -// made. -// -// = AUTHOR -// Aniruddha Gokhale -// -// ============================================================================ - -#ifndef _BE_VISITOR_OPERATION_RETTYPE_DOCALL_CS_H_ -#define _BE_VISITOR_OPERATION_RETTYPE_DOCALL_CS_H_ - -// ************************************************************ -// Operation visitor for passing return variable to do_static_call -// ************************************************************ - -class be_visitor_operation_rettype_docall_cs :public be_visitor_decl -{ - // - // = TITLE - // be_visitor_operation_rettype_docall_cs - // - // = DESCRIPTION - // This is a visitor to generate a variable declaration ofr an operation - // return type - // -public: - be_visitor_operation_rettype_docall_cs (be_visitor_context *ctx); - // constructor - - ~be_visitor_operation_rettype_docall_cs (void); - // destructor - - int visit_array (be_array *node); - // visit an array node - - int visit_enum (be_enum *node); - // visit an enum node - - int visit_interface (be_interface *node); - // visit an interface node - - int visit_interface_fwd (be_interface_fwd *node); - // visit an interface node - - int visit_predefined_type (be_predefined_type *node); - // visit a predefined type node - - int visit_sequence (be_sequence *node); - // visit a sequence node - - int visit_string (be_string *node); - // visit a sequence node - - int visit_structure (be_structure *node); - // visit a structure node - - int visit_typedef (be_typedef *node); - // visit a typedef node - - int visit_union (be_union *node); - // visit a union node - -}; - -#endif /* _BE_VISITOR_OPERATION_RETTYPE_DOCALL_CS_H_ */ diff --git a/TAO/TAO_IDL/be_include/be_visitor_operation/rettype_is.h b/TAO/TAO_IDL/be_include/be_visitor_operation/rettype_is.h deleted file mode 100644 index 1c2030b794a..00000000000 --- a/TAO/TAO_IDL/be_include/be_visitor_operation/rettype_is.h +++ /dev/null @@ -1,81 +0,0 @@ - -// $Id$ -// - -// ============================================================================ -// -// = LIBRARY -// TAO IDL -// -// = FILENAME -// rettype.h -// -// = DESCRIPTION -// Visitor for generating code for IDL operations. This generates the return -// type of the operation -// -// = AUTHOR -// Yamuna Krishnamurthy (yamuna@cs.wustl.edu) -// -// ============================================================================ - -#ifndef _BE_VISITOR_OPERATION_RETTYPE_IS_H_ -#define _BE_VISITOR_OPERATION_RETTYPE_IS_H_ - -// *********************************************************************** -// Operation visitor for return types in the signature of the operation -// *********************************************************************** - -class be_visitor_operation_rettype_is : public be_visitor_decl -{ - // - // = TITLE - // be_visitor_operation_ch - // - // = DESCRIPTION - // This is a visitor to generate operation return types - // - // -public: - be_visitor_operation_rettype_is (be_visitor_context *ctx); - // constructor - - ~be_visitor_operation_rettype_is (void); - // destructor - - int visit_array (be_array *node); - // visit an array node - - int visit_enum (be_enum *node); - // visit an enum node - - int visit_interface (be_interface *node); - // visit an interface node - - int visit_interface_fwd (be_interface_fwd *node); - // visit an interface node - - int visit_native (be_native *node); - // visit native type - - int visit_predefined_type (be_predefined_type *node); - // visit a predefined type node - - int visit_sequence (be_sequence *node); - // visit a sequence node - - int visit_string (be_string *node); - // visit a sequence node - - int visit_structure (be_structure *node); - // visit a structure node - - int visit_typedef (be_typedef *node); - // visit a typedef node - - int visit_union (be_union *node); - // visit a union node - -}; - -#endif /* _BE_VISITOR_OPERATION_RETTYPE_IS_H_ */ diff --git a/TAO/TAO_IDL/be_include/be_visitor_operation/rettype_marshal_ss.h b/TAO/TAO_IDL/be_include/be_visitor_operation/rettype_marshal_ss.h deleted file mode 100644 index 845ddb5f6c1..00000000000 --- a/TAO/TAO_IDL/be_include/be_visitor_operation/rettype_marshal_ss.h +++ /dev/null @@ -1,87 +0,0 @@ -// -// $Id$ -// - -// ============================================================================ -// -// = LIBRARY -// TAO IDL -// -// = FILENAME -// rettype_marshal_ss.h -// -// = DESCRIPTION -// Visitor for generating code for IDL operations. This generates the code -// for passing the return type variable to the marshaler. -// -// = AUTHOR -// Aniruddha Gokhale -// -// ============================================================================ - -#ifndef _BE_VISITOR_OPERATION_RETTYPE_MARSHAL_SS_H_ -#define _BE_VISITOR_OPERATION_RETTYPE_MARSHAL_SSH_ - -// *********************************************************************** -// Operation visitor for passing return type to the marshal/demarshal routine -// inside the server skeleton -// *********************************************************************** - -class be_visitor_operation_rettype_marshal_ss : public be_visitor_decl -{ - // - // = TITLE - // be_visitor_operation_rettype_marshal_ss - // - // = DESCRIPTION - // This is a visitor to pass return type to the marshal/demarshal routines - // - // -public: - be_visitor_operation_rettype_marshal_ss (be_visitor_context *ctx); - // constructor - - ~be_visitor_operation_rettype_marshal_ss (void); - // destructor - - int visit_array (be_array *node); - // visit an array node - - int visit_enum (be_enum *node); - // visit an enum node - - int visit_interface (be_interface *node); - // visit an interface node - - int visit_interface_fwd (be_interface_fwd *node); - // visit an interface node - -#ifdef IDL_HAS_VALUETYPE - virtual int visit_valuetype (be_valuetype *node); - // visit valuetype - - virtual int visit_valuetype_fwd (be_valuetype_fwd *node); - // visit valuetype forward -#endif /* IDL_HAS_VALUETYPE */ - - int visit_predefined_type (be_predefined_type *node); - // visit a predefined type node - - int visit_sequence (be_sequence *node); - // visit a sequence node - - int visit_string (be_string *node); - // visit a sequence node - - int visit_structure (be_structure *node); - // visit a structure node - - int visit_typedef (be_typedef *node); - // visit a typedef node - - int visit_union (be_union *node); - // visit a union node - -}; - -#endif /* _BE_VISITOR_OPERATION_RETTYPE_MARSHAL_SSH_ */ diff --git a/TAO/TAO_IDL/be_include/be_visitor_operation/rettype_post_docall_cs.h b/TAO/TAO_IDL/be_include/be_visitor_operation/rettype_post_docall_cs.h deleted file mode 100644 index 9129e0b86aa..00000000000 --- a/TAO/TAO_IDL/be_include/be_visitor_operation/rettype_post_docall_cs.h +++ /dev/null @@ -1,75 +0,0 @@ -// -// $Id$ -// - -// ============================================================================ -// -// = LIBRARY -// TAO IDL -// -// = FILENAME -// rettype_post_docall_cs.h -// -// = DESCRIPTION -// Visitor for generating code for IDL operations. This generates the code -// for post processing of the return type variable after the docall is -// made. -// -// = AUTHOR -// Aniruddha Gokhale -// -// ============================================================================ - -#ifndef _BE_VISITOR_OPERATION_RETTYPE_POST_DOCALL_CS_H_ -#define _BE_VISITOR_OPERATION_RETTYPE_POST_DOCALL_CS_H_ - -// ************************************************************ -// Operation visitor for postprocessing after do_static_call is invoked -// ************************************************************ - -class be_visitor_operation_rettype_post_docall_cs :public be_visitor_decl -{ - // - // = TITLE - // be_visitor_operation_rettype_psot_docall_cs - // - // = DESCRIPTION - // This is a visitor to generate any post processing after the do_static_call is - // made - // -public: - be_visitor_operation_rettype_post_docall_cs (be_visitor_context *ctx); - // constructor - - ~be_visitor_operation_rettype_post_docall_cs (void); - // destructor - - int visit_interface (be_interface *node); - // visit an interface node - - int visit_interface_fwd (be_interface_fwd *node); - // visit an interface node -}; - -// **************************************************************** - -class be_visitor_operation_compiled_rettype_post_docall : public be_visitor_decl -{ - // - // = TITLE - // be_visitor_operation_rettype_post_docall - // - // = DESCRIPTION - // This is a visitor for post processing after the invocation in - // compiled marshaling - // - // -public: - be_visitor_operation_compiled_rettype_post_docall (be_visitor_context *ctx); - // constructor - - int visit_array (be_array *node); - int visit_typedef (be_typedef *node); -}; - -#endif /* _BE_VISITOR_OPERATION_RETTYPE_POST_DOCALL_CS_H_ */ diff --git a/TAO/TAO_IDL/be_include/be_visitor_operation/rettype_post_upcall_ss.h b/TAO/TAO_IDL/be_include/be_visitor_operation/rettype_post_upcall_ss.h deleted file mode 100644 index 3ba7eedbef3..00000000000 --- a/TAO/TAO_IDL/be_include/be_visitor_operation/rettype_post_upcall_ss.h +++ /dev/null @@ -1,100 +0,0 @@ -// -// $Id$ -// - -// ============================================================================ -// -// = LIBRARY -// TAO IDL -// -// = FILENAME -// rettype_post_upcall_ss.h -// -// = DESCRIPTION -// Visitor for generating code for IDL operations. This generates the code -// for post processing of the return type variable after the upcall is -// made. -// -// = AUTHOR -// Aniruddha Gokhale -// -// ============================================================================ - -#ifndef _BE_VISITOR_OPERATION_RETTYPE_POST_UPCALL_SS_H_ -#define _BE_VISITOR_OPERATION_RETTYPE_POST_UPCALL_SS_H_ - -// *********************************************************************** -// Operation visitor for post upcall processing of return types -// *********************************************************************** - -class be_visitor_operation_rettype_post_upcall_ss : public be_visitor_decl -{ - // - // = TITLE - // be_visitor_operation_rettype_post_upcall_ss - // - // = DESCRIPTION - // This is a visitor for post processing after an upcall - // - // -public: - be_visitor_operation_rettype_post_upcall_ss (be_visitor_context *ctx); - // constructor - - ~be_visitor_operation_rettype_post_upcall_ss (void); - // destructor - - int visit_array (be_array *node); - // visit an array node - - int visit_enum (be_enum *node); - // visit an enum node - - int visit_interface (be_interface *node); - // visit an interface node - - int visit_interface_fwd (be_interface_fwd *node); - // visit an interface node - - int visit_predefined_type (be_predefined_type *node); - // visit a predefined type node - - int visit_sequence (be_sequence *node); - // visit a sequence node - - int visit_string (be_string *node); - // visit a sequence node - - int visit_structure (be_structure *node); - // visit a structure node - - int visit_typedef (be_typedef *node); - // visit a typedef node - - int visit_union (be_union *node); - // visit a union node - -}; - -// **************************************************************** - -class be_visitor_operation_compiled_rettype_post_upcall : public be_visitor_decl -{ - // - // = TITLE - // be_visitor_operation_rettype_post_upcall - // - // = DESCRIPTION - // This is a visitor for post processing after an upcall in - // compiled marshaling - // - // -public: - be_visitor_operation_compiled_rettype_post_upcall (be_visitor_context *ctx); - // constructor - - int visit_array (be_array *node); - int visit_typedef (be_typedef *node); -}; - -#endif /* _BE_VISITOR_OPERATION_RETTYPE_POST_UPCALL_SS_H_ */ diff --git a/TAO/TAO_IDL/be_include/be_visitor_operation/rettype_pre_docall_cs.h b/TAO/TAO_IDL/be_include/be_visitor_operation/rettype_pre_docall_cs.h deleted file mode 100644 index 2a11b2cd605..00000000000 --- a/TAO/TAO_IDL/be_include/be_visitor_operation/rettype_pre_docall_cs.h +++ /dev/null @@ -1,73 +0,0 @@ -// -// $Id$ -// - -// ============================================================================ -// -// = LIBRARY -// TAO IDL -// -// = FILENAME -// rettype_pre_docall_cs.h -// -// = DESCRIPTION -// Visitor for generating code for IDL operations. This generates the code -// for pre processing of the return type variable before the docall is -// made. -// -// = AUTHOR -// Aniruddha Gokhale -// -// ============================================================================ - -#ifndef _BE_VISITOR_OPERATION_RETTYPE_PRE_DOCALL_CS_H_ -#define _BE_VISITOR_OPERATION_RETTYPE_PRE_DOCALL_CS_H_ - -// ************************************************************ -// Operation visitor for preprocessing before do_static_call is invoked -// ************************************************************ - -class be_visitor_operation_rettype_pre_docall_cs :public be_visitor_decl -{ - // - // = TITLE - // be_visitor_operation_rettype_pre_docall_cs - // - // = DESCRIPTION - // This is a visitor to generate any pre processing before the do_static_call is - // made - // -public: - be_visitor_operation_rettype_pre_docall_cs (be_visitor_context *ctx); - // constructor - - ~be_visitor_operation_rettype_pre_docall_cs (void); - // destructor - - virtual int visit_array (be_array *node); - // visit an array node - - virtual int visit_interface (be_interface *node); - // visit an interface node - - virtual int visit_interface_fwd (be_interface_fwd *node); - // visit an interface node - - virtual int visit_predefined_type (be_predefined_type *node); - // visit a predefined type node - - virtual int visit_sequence (be_sequence *node); - // visit a sequence node - - virtual int visit_structure (be_structure *node); - // visit a structure node - - virtual int visit_typedef (be_typedef *node); - // visit a typedef node - - virtual int visit_union (be_union *node); - // visit a union node - -}; - -#endif /* _BE_VISITOR_OPERATION_RETTYPE_PRE_DOCALL_CS_H_ */ diff --git a/TAO/TAO_IDL/be_include/be_visitor_operation/rettype_pre_invoke_cs.h b/TAO/TAO_IDL/be_include/be_visitor_operation/rettype_pre_invoke_cs.h deleted file mode 100644 index 2abe28ed76f..00000000000 --- a/TAO/TAO_IDL/be_include/be_visitor_operation/rettype_pre_invoke_cs.h +++ /dev/null @@ -1,56 +0,0 @@ -// -// $Id$ -// - -// ============================================================================ -// -// = LIBRARY -// TAO IDL -// -// = FILENAME -// rettype_pre_invoke_cs.h -// -// = DESCRIPTION -// Visitor for generating code for IDL operations. This generates the code -// for pre processing of the return type variable before the invoke is -// made. This one is for compiled marshaling stub. -// -// = AUTHOR -// Aniruddha Gokhale -// -// ============================================================================ - -#ifndef _BE_VISITOR_OPERATION_RETTYPE_PRE_INVOKE_CS_H_ -#define _BE_VISITOR_OPERATION_RETTYPE_PRE_INVOKE_CS_H_ - -// ************************************************************ -// Operation visitor for preprocessing before invoke is invoked -// ************************************************************ - -class be_visitor_operation_rettype_pre_invoke_cs : - public be_visitor_operation_rettype_pre_docall_cs -{ - // - // = TITLE - // be_visitor_operation_rettype_pre_invoke_cs - // - // = DESCRIPTION - // This is a visitor to generate any pre processing before the do_static_call is - // made - // -public: - be_visitor_operation_rettype_pre_invoke_cs (be_visitor_context *ctx); - // constructor - - ~be_visitor_operation_rettype_pre_invoke_cs (void); - // destructor - - virtual int visit_interface (be_interface *node); - // visit an interface node - - virtual int visit_interface_fwd (be_interface_fwd *node); - // visit an interface node - -}; - -#endif /* _BE_VISITOR_OPERATION_RETTYPE_PRE_INVOKE_CS_H_ */ diff --git a/TAO/TAO_IDL/be_include/be_visitor_operation/rettype_return_cs.h b/TAO/TAO_IDL/be_include/be_visitor_operation/rettype_return_cs.h deleted file mode 100644 index cd173c0cedb..00000000000 --- a/TAO/TAO_IDL/be_include/be_visitor_operation/rettype_return_cs.h +++ /dev/null @@ -1,86 +0,0 @@ -// -// $Id$ -// - -// ============================================================================ -// -// = LIBRARY -// TAO IDL -// -// = FILENAME -// rettype_return_cs.h -// -// = DESCRIPTION -// Visitor for generating code for IDL operations. This generates the return -// statement for returning the return type variable in the client stub. -// -// = AUTHOR -// Aniruddha Gokhale -// -// ============================================================================ - -#ifndef _BE_VISITOR_OPERATION_RETTYPE_RETURN_CS_H_ -#define _BE_VISITOR_OPERATION_RETTYPE_CS_H_ - -// ************************************************************ -// Operation visitor for returning the return val -// ************************************************************ - -class be_visitor_operation_rettype_return_cs :public be_visitor_decl -{ - // - // = TITLE - // be_visitor_operation_rettype_return_cs - // - // = DESCRIPTION - // This is a visitor to generate a variable declaration ofr an operation - // return type - // -public: - be_visitor_operation_rettype_return_cs (be_visitor_context *ctx); - // constructor - - ~be_visitor_operation_rettype_return_cs (void); - // destructor - - int visit_array (be_array *node); - // visit an array node - - int visit_enum (be_enum *node); - // visit an enum node - - int visit_interface (be_interface *node); - // visit an interface node - - int visit_interface_fwd (be_interface_fwd *node); - // visit an interface node - -#ifdef IDL_HAS_VALUETYPE - virtual int visit_valuetype (be_valuetype *node); - // visit valuetype - - virtual int visit_valuetype_fwd (be_valuetype_fwd *node); - // visit valuetype forward -#endif /* IDL_HAS_VALUETYPE */ - - int visit_predefined_type (be_predefined_type *node); - // visit a predefined type node - - int visit_sequence (be_sequence *node); - // visit a sequence node - - int visit_string (be_string *node); - // visit a sequence node - - int visit_structure (be_structure *node); - // visit a structure node - - int visit_typedef (be_typedef *node); - // visit a typedef node - - int visit_union (be_union *node); - // visit a union node - -}; - -#endif /* _BE_VISITOR_OPERATION_RETTYPE_RETURN_CS_H_ */ diff --git a/TAO/TAO_IDL/be_include/be_visitor_operation/rettype_vardecl_cs.h b/TAO/TAO_IDL/be_include/be_visitor_operation/rettype_vardecl_cs.h deleted file mode 100644 index 3b0d6613299..00000000000 --- a/TAO/TAO_IDL/be_include/be_visitor_operation/rettype_vardecl_cs.h +++ /dev/null @@ -1,86 +0,0 @@ -// -// $Id$ -// - -// ============================================================================ -// -// = LIBRARY -// TAO IDL -// -// = FILENAME -// rettype_vardecl_cs.h -// -// = DESCRIPTION -// Visitor for generating code for IDL operations. This generates the return -// type variable declaration in the client side stub. -// -// = AUTHOR -// Aniruddha Gokhale -// -// ============================================================================ - -#ifndef _BE_VISITOR_OPERATION_RETTYPE_VARDECL_CS_H_ -#define _BE_VISITOR_OPERATION_RETTYPE_VARDECL_CS_H_ - -// ************************************************************ -// Operation visitor for return type variable declaration -// ************************************************************ - -class be_visitor_operation_rettype_vardecl_cs :public be_visitor_decl -{ - // - // = TITLE - // be_visitor_operation_rettype_vardecl_cs - // - // = DESCRIPTION - // This is a visitor to generate a variable declaration ofr an operation - // return type - // -public: - be_visitor_operation_rettype_vardecl_cs (be_visitor_context *ctx); - // constructor - - ~be_visitor_operation_rettype_vardecl_cs (void); - // destructor - - int visit_array (be_array *node); - // visit an array node - - int visit_enum (be_enum *node); - // visit an enum node - - int visit_interface (be_interface *node); - // visit an interface node - - int visit_interface_fwd (be_interface_fwd *node); - // visit an interface node - -#ifdef IDL_HAS_VALUETYPE - virtual int visit_valuetype (be_valuetype *node); - // visit valuetype - - virtual int visit_valuetype_fwd (be_valuetype_fwd *node); - // visit valuetype forward -#endif /* IDL_HAS_VALUETYPE */ - - int visit_predefined_type (be_predefined_type *node); - // visit a predefined type node - - int visit_sequence (be_sequence *node); - // visit a sequence node - - int visit_string (be_string *node); - // visit a sequence node - - int visit_structure (be_structure *node); - // visit a structure node - - int visit_typedef (be_typedef *node); - // visit a typedef node - - int visit_union (be_union *node); - // visit a union node - -}; - -#endif /* _BE_VISITOR_OPERATION_RETTYPE_VARDECL_CS_H_ */ diff --git a/TAO/TAO_IDL/be_include/be_visitor_operation/rettype_vardecl_ss.h b/TAO/TAO_IDL/be_include/be_visitor_operation/rettype_vardecl_ss.h deleted file mode 100644 index 5adf69c8c89..00000000000 --- a/TAO/TAO_IDL/be_include/be_visitor_operation/rettype_vardecl_ss.h +++ /dev/null @@ -1,118 +0,0 @@ -// -// $Id$ -// - -// ============================================================================ -// -// = LIBRARY -// TAO IDL -// -// = FILENAME -// rettype_vardecl_ss.h -// -// = DESCRIPTION -// Visitor for generating code for IDL operations. This generates the return -// type variable declaration in the server side skeleton. -// -// = AUTHOR -// Aniruddha Gokhale -// -// ============================================================================ - -#ifndef _BE_VISITOR_OPERATION_RETTYPE_VARDECL_SS_H_ -#define _BE_VISITOR_OPERATION_RETTYPE_VARDECL_SS_H_ - -// ************************************************************ -// Operation visitor for return type variable declaration in the server -// skeleton -// ************************************************************ - -class be_visitor_operation_rettype_vardecl_ss :public be_visitor_decl -{ - // - // = TITLE - // be_visitor_operation_rettype_vardecl_ss - // - // = DESCRIPTION - // This is a visitor to generate a variable declaration ofr an operation - // return type in the server skeleton - // -public: - be_visitor_operation_rettype_vardecl_ss (be_visitor_context *ctx); - // constructor - - ~be_visitor_operation_rettype_vardecl_ss (void); - // destructor - - int visit_array (be_array *node); - // visit an array node - - int visit_enum (be_enum *node); - // visit an enum node - - int visit_interface (be_interface *node); - // visit an interface node - - int visit_interface_fwd (be_interface_fwd *node); - // visit an interface node - -#ifdef IDL_HAS_VALUETYPE - virtual int visit_valuetype (be_valuetype *node); - // visit valuetype - - virtual int visit_valuetype_fwd (be_valuetype_fwd *node); - // visit valuetype forward -#endif /* IDL_HAS_VALUETYPE */ - - int visit_predefined_type (be_predefined_type *node); - // visit a predefined type node - - int visit_sequence (be_sequence *node); - // visit a sequence node - - int visit_string (be_string *node); - // visit a sequence node - - int visit_structure (be_structure *node); - // visit a structure node - - int visit_typedef (be_typedef *node); - // visit a typedef node - - int visit_union (be_union *node); - // visit a union node - -}; - -// ************************************************************ -// Operation visitor for return type variable declaration in the server -// skeleton using compiled marshaling. This one overrides 2 methods of the base -// class -// ************************************************************ - -class be_compiled_visitor_operation_rettype_vardecl_ss : - public be_visitor_operation_rettype_vardecl_ss -{ - // - // = TITLE - // be_compiled_visitor_operation_rettype_vardecl_ss - // - // = DESCRIPTION - // This is a visitor to generate a variable declaration ofr an operation - // return type in the server skeleton using compiled marshaling - // -public: - be_compiled_visitor_operation_rettype_vardecl_ss (be_visitor_context *ctx); - // constructor - - ~be_compiled_visitor_operation_rettype_vardecl_ss (void); - // destructor - - virtual int visit_interface (be_interface *node); - // visit an interface node - - virtual int visit_interface_fwd (be_interface_fwd *node); - // visit an interface fwd node -}; - -#endif /* _BE_VISITOR_OPERATION_RETTYPE_VARDECL_SS_H_ */ diff --git a/TAO/TAO_IDL/be_include/be_visitor_operation/thru_poa_collocated_sh.h b/TAO/TAO_IDL/be_include/be_visitor_operation/thru_poa_collocated_sh.h deleted file mode 100644 index 26aa40394c6..00000000000 --- a/TAO/TAO_IDL/be_include/be_visitor_operation/thru_poa_collocated_sh.h +++ /dev/null @@ -1,52 +0,0 @@ -// -// $Id$ -// - -// ============================================================================ -// -// = LIBRARY -// TAO IDL -// -// = FILENAME -// thru_poa_collocated_ch.h -// -// = DESCRIPTION -// Visitor for generating code for IDL operations for the thru_poa collocated case -// inside of the servant header -// -// = AUTHOR -// Aniruddha Gokhale -// -// ============================================================================ - -#ifndef _BE_VISITOR_OPERATION_THRU_POA_COLLOCATED_SH_H_ -#define _BE_VISITOR_OPERATION_THRU_POA_COLLOCATED_SH_H_ - -// ************************************************************ -// Operation visitor for server header in the thru_poa collocated class -// ************************************************************ - -class be_visitor_operation_thru_poa_collocated_sh : public be_visitor_scope -{ - // - // = TITLE - // be_visitor_operation_thru_poa_collocated_sh - // - // = DESCRIPTION - // This is a concrete visitor to generate the server header for operation - // in the thru_poa collocated class - // - // -public: - be_visitor_operation_thru_poa_collocated_sh (be_visitor_context *ctx); - // constructor - - ~be_visitor_operation_thru_poa_collocated_sh (void); - // destructor - - virtual int visit_operation (be_operation *node); - // visit operation node. - -}; - -#endif /* _BE_VISITOR_OPERATION_THRU_POA_COLLOCATED_SH_H_ */ diff --git a/TAO/TAO_IDL/be_include/be_visitor_operation/thru_poa_collocated_ss.h b/TAO/TAO_IDL/be_include/be_visitor_operation/thru_poa_collocated_ss.h deleted file mode 100644 index b6566b5a15c..00000000000 --- a/TAO/TAO_IDL/be_include/be_visitor_operation/thru_poa_collocated_ss.h +++ /dev/null @@ -1,60 +0,0 @@ -// -// $Id$ -// - -// ============================================================================ -// -// = LIBRARY -// TAO IDL -// -// = FILENAME -// thru_poa_collocated_ss.h -// -// = DESCRIPTION -// Visitor for generating code for IDL operations for the thru_poa collocated case -// inside of the servant skeleton -// -// = AUTHOR -// Aniruddha Gokhale -// -// ============================================================================ - -#ifndef _BE_VISITOR_OPERATION_THRU_POA_COLLOCATED_SS_H_ -#define _BE_VISITOR_OPERATION_THRU_POA_COLLOCATED_SS_H_ - -// ***************************************************************** -// Operation visitor for server skeletons for the thru_poa collocated class -// ***************************************************************** - -class be_visitor_operation_thru_poa_collocated_ss : public be_visitor_scope -{ - // - // = TITLE - // be_visitor_operation_ss - // - // = DESCRIPTION - // This is a concrete visitor to generate the server skeletons for - // operation in the thru_poa collocated class - // - // -public: - be_visitor_operation_thru_poa_collocated_ss (be_visitor_context *ctx); - // constructor - - ~be_visitor_operation_thru_poa_collocated_ss (void); - // destructor - - virtual int visit_operation (be_operation *node); - // visit operation node. - - virtual int gen_invoke (be_visitor_context &ctx, be_operation *node); - // A helper method to generate operation invocation code. - - virtual int gen_check_exception (be_type *bt); - // ACE_CHECK macros generator. - - virtual int void_return_type (be_type *bt); - // is my return type void? -}; - -#endif /* _BE_VISITOR_OPERATION_THRU_POA_COLLOCATED_SS_H_ */ diff --git a/TAO/TAO_IDL/be_include/be_visitor_operation/tie_sh.h b/TAO/TAO_IDL/be_include/be_visitor_operation/tie_sh.h deleted file mode 100644 index 14d0f2a4243..00000000000 --- a/TAO/TAO_IDL/be_include/be_visitor_operation/tie_sh.h +++ /dev/null @@ -1,50 +0,0 @@ -// -// $Id$ -// - -// ============================================================================ -// -// = LIBRARY -// TAO IDL -// -// = FILENAME -// tie_sh.h -// -// = DESCRIPTION -// Visitor for generating code for IDL operations for the TIE class inside -// the server header -// -// = AUTHOR -// Aniruddha Gokhale -// -// ============================================================================ - -#ifndef _BE_VISITOR_OPERATION_TIE_SH_H_ -#define _BE_VISITOR_OPERATION_TIE_SH_H_ - -// *********************************************************************** -// Operation visitor for operation declaration inside the TIE class -// *********************************************************************** - -class be_visitor_operation_tie_sh : public be_visitor_scope -{ - // - // = TITLE - // be_visitor_operation_tie_sh - // - // = DESCRIPTION - // This is a concrete visitor to generate the operaton inside a TIE class - // - // -public: - be_visitor_operation_tie_sh (be_visitor_context *ctx); - // constructor - - ~be_visitor_operation_tie_sh (void); - // destructor - - virtual int visit_operation (be_operation *node); - // set the right context and make a visitor -}; - -#endif /* _BE_VISITOR_OPERATION_TIE_SH_H_ */ diff --git a/TAO/TAO_IDL/be_include/be_visitor_operation/tie_si.h b/TAO/TAO_IDL/be_include/be_visitor_operation/tie_si.h deleted file mode 100644 index e38012009a7..00000000000 --- a/TAO/TAO_IDL/be_include/be_visitor_operation/tie_si.h +++ /dev/null @@ -1,50 +0,0 @@ -// -// $Id$ -// - -// ============================================================================ -// -// = LIBRARY -// TAO IDL -// -// = FILENAME -// tie_si.h -// -// = DESCRIPTION -// Visitor for generating code for IDL operations for the TIE class inside -// the server inline -// -// = AUTHOR -// Aniruddha Gokhale -// -// ============================================================================ - -#ifndef _BE_VISITOR_OPERATION_TIE_SI_H_ -#define _BE_VISITOR_OPERATION_TIE_SI_H_ - -// *********************************************************************** -// Operation visitor for operation declaration inside the TIE class -// *********************************************************************** - -class be_visitor_operation_tie_si : public be_visitor_scope -{ - // - // = TITLE - // be_visitor_operation_tie_ss - // - // = DESCRIPTION - // This is a concrete visitor to generate the operaton inside a TIE class - // - // -public: - be_visitor_operation_tie_si (be_visitor_context *ctx); - // constructor - - ~be_visitor_operation_tie_si (void); - // destructor - - virtual int visit_operation (be_operation *node); - // set the right context and make a visitor -}; - -#endif /* _BE_VISITOR_OPERATION_TIE_SI_H_ */ diff --git a/TAO/TAO_IDL/be_include/be_visitor_root.h b/TAO/TAO_IDL/be_include/be_visitor_root.h deleted file mode 100644 index 6729b160008..00000000000 --- a/TAO/TAO_IDL/be_include/be_visitor_root.h +++ /dev/null @@ -1,40 +0,0 @@ -/* -*- c++ -*- */ -// -// $Id$ -// - -// ============================================================================ -// -// = LIBRARY -// TAO IDL -// -// = FILENAME -// be_visitor_root.h -// -// = DESCRIPTION -// Concrete visitor for the Root class -// -// = AUTHOR -// Aniruddha Gokhale and Carlos O'Ryan -// -// ============================================================================ - -#ifndef TAO_BE_VISITOR_ROOT_H -#define TAO_BE_VISITOR_ROOT_H - -#include "be_visitor.h" -#include "be_visitor_scope.h" - -#include "be_visitor_root/root.h" -#include "be_visitor_root/root_ch.h" -#include "be_visitor_root/root_ci.h" -#include "be_visitor_root/root_cs.h" -#include "be_visitor_root/root_sh.h" -#include "be_visitor_root/root_si.h" -#include "be_visitor_root/root_ss.h" -#include "be_visitor_root/root_is.h" -#include "be_visitor_root/root_ih.h" -#include "be_visitor_root/any_op.h" -#include "be_visitor_root/cdr_op.h" - -#endif // TAO_BE_VISITOR_ROOT_H diff --git a/TAO/TAO_IDL/be_include/be_visitor_root/any_op.h b/TAO/TAO_IDL/be_include/be_visitor_root/any_op.h deleted file mode 100644 index e7c0ea72c0c..00000000000 --- a/TAO/TAO_IDL/be_include/be_visitor_root/any_op.h +++ /dev/null @@ -1,49 +0,0 @@ -/* -*- c++ -*- */ -// -// $Id$ -// - -// ============================================================================ -// -// = LIBRARY -// TAO IDL -// -// = FILENAME -// any_op.h -// -// = DESCRIPTION -// Concrete visitor for the Root class -// This one provides code generation for the Any operators for elements of -// the Root scope. -// -// = AUTHOR -// Aniruddha Gokhale -// -// ============================================================================ - -#ifndef _BE_VISITOR_ROOT_ANY_OP_H_ -#define _BE_VISITOR_ROOT_ANY_OP_H_ - -class be_visitor_root_any_op : public be_visitor_root -{ - // - // = TITLE - // be_visitor_root_any_op - // - // = DESCRIPTION - // This is a concrete visitor for root that generates the Any operator - // declarations and implementations - // - -public: - be_visitor_root_any_op (be_visitor_context *ctx); - // constructor - - ~be_visitor_root_any_op (void); - // destructor - - virtual int visit_root (be_root *node); - // visit root -}; - -#endif /* _BE_VISITOR_ROOT_ANY_OP_H_ */ diff --git a/TAO/TAO_IDL/be_include/be_visitor_root/cdr_op.h b/TAO/TAO_IDL/be_include/be_visitor_root/cdr_op.h deleted file mode 100644 index 2df86ebcdfe..00000000000 --- a/TAO/TAO_IDL/be_include/be_visitor_root/cdr_op.h +++ /dev/null @@ -1,49 +0,0 @@ -/* -*- c++ -*- */ -// -// $Id$ -// - -// ============================================================================ -// -// = LIBRARY -// TAO IDL -// -// = FILENAME -// cdr_op.h -// -// = DESCRIPTION -// Concrete visitor for the Root class -// This one provides code generation for the CDR operators for elements of -// the Root scope. -// -// = AUTHOR -// Aniruddha Gokhale -// -// ============================================================================ - -#ifndef _BE_VISITOR_ROOT_CDR_OP_H_ -#define _BE_VISITOR_ROOT_CDR_OP_H_ - -class be_visitor_root_cdr_op : public be_visitor_root -{ - // - // = TITLE - // be_visitor_root_cdr_op - // - // = DESCRIPTION - // This is a concrete visitor for root that generates the CDR operator - // declarations and implementations - // - -public: - be_visitor_root_cdr_op (be_visitor_context *ctx); - // constructor - - ~be_visitor_root_cdr_op (void); - // destructor - - virtual int visit_root (be_root *node); - // visit root -}; - -#endif /* _BE_VISITOR_ROOT_CDR_OP_H_ */ diff --git a/TAO/TAO_IDL/be_include/be_visitor_root/root.h b/TAO/TAO_IDL/be_include/be_visitor_root/root.h deleted file mode 100644 index ded8bb0c11c..00000000000 --- a/TAO/TAO_IDL/be_include/be_visitor_root/root.h +++ /dev/null @@ -1,89 +0,0 @@ -/* -*- c++ -*- */ -// -// $Id$ -// - -// ============================================================================ -// -// = LIBRARY -// TAO IDL -// -// = FILENAME -// root.h -// -// = DESCRIPTION -// Concrete visitor for the Root class -// This one provides the generic visitor for the Root node. -// -// = AUTHOR -// Aniruddha Gokhale -// -// ============================================================================ - -#ifndef _BE_VISITOR_ROOT_ROOT_H_ -#define _BE_VISITOR_ROOT_ROOT_H_ - -class be_visitor_root : public be_visitor_scope -{ - // - // = TITLE - // be_visitor_root - // - // = DESCRIPTION - // This is a concrete visitor for root that abstracts all common tasks - // - -public: - be_visitor_root (be_visitor_context *ctx); - // constructor - - ~be_visitor_root (void); - // destructor - - virtual int visit_root (be_root *node); - // visit root - - // =visit methods on all elements syntactically valid in a Root scope - - virtual int visit_constant (be_constant *node); - // visit a constant - - virtual int visit_enum (be_enum *node); - // visit an enum - - virtual int visit_exception (be_exception *node); - // visit an exception - - virtual int visit_interface (be_interface *node); - // visit an interface - - virtual int visit_interface_fwd (be_interface_fwd *node); - // visit an interface - -#ifdef IDL_HAS_VALUETYPE - virtual int visit_valuetype (be_valuetype *node); - // visit valuetype - - virtual int visit_valuetype_fwd (be_valuetype_fwd *node); - // visit valuetype_fwd -#endif /* IDL_HAS_VALUETYPE */ - - virtual int visit_module (be_module *node); - // visit a module - - virtual int visit_structure (be_structure *node); - // visit a structure - - virtual int visit_union (be_union *node); - // visit a union - - virtual int visit_typedef (be_typedef *node); - // visit the typedef node - - // =helper. This is used by derived clases to set the right context - - virtual int init (void); - // will be overridden by derived classes that set the appropriate context -}; - -#endif /* _BE_VISITOR_ROOT_ROOT_H_ */ diff --git a/TAO/TAO_IDL/be_include/be_visitor_root/root_ch.h b/TAO/TAO_IDL/be_include/be_visitor_root/root_ch.h deleted file mode 100644 index c36cf7f5192..00000000000 --- a/TAO/TAO_IDL/be_include/be_visitor_root/root_ch.h +++ /dev/null @@ -1,48 +0,0 @@ -/* -*- c++ -*- */ -// -// $Id$ -// - -// ============================================================================ -// -// = LIBRARY -// TAO IDL -// -// = FILENAME -// root_ch.h -// -// = DESCRIPTION -// Concrete visitor for the Root class -// This one provides code generation for elements of the Root node in the -// client header. -// -// = AUTHOR -// Aniruddha Gokhale -// -// ============================================================================ - -#ifndef _BE_VISITOR_ROOT_ROOT_CH_H_ -#define _BE_VISITOR_ROOT_ROOT_CH_H_ - -class be_visitor_root_ch : public be_visitor_root -{ - // - // = TITLE - // be_visitor_root_ch - // - // = DESCRIPTION - // This is a concrete visitor to generate the client header for root - // - // -public: - be_visitor_root_ch (be_visitor_context *ctx); - // constructor - - ~be_visitor_root_ch (void); - // destructor - - virtual int init (void); - // set the right context and make a visitor -}; - -#endif /* _BE_VISITOR_ROOT_ROOT_CH_H_ */ diff --git a/TAO/TAO_IDL/be_include/be_visitor_root/root_ci.h b/TAO/TAO_IDL/be_include/be_visitor_root/root_ci.h deleted file mode 100644 index e39eab1ac4f..00000000000 --- a/TAO/TAO_IDL/be_include/be_visitor_root/root_ci.h +++ /dev/null @@ -1,48 +0,0 @@ -/* -*- c++ -*- */ -// -// $Id$ -// - -// ============================================================================ -// -// = LIBRARY -// TAO IDL -// -// = FILENAME -// root_ci.h -// -// = DESCRIPTION -// Concrete visitor for the Root class -// This one provides code generation for elements of the Root node in the -// client inline. -// -// = AUTHOR -// Aniruddha Gokhale -// -// ============================================================================ - -#ifndef _BE_VISITOR_ROOT_ROOT_CI_H_ -#define _BE_VISITOR_ROOT_ROOT_CI_H_ - -class be_visitor_root_ci : public be_visitor_root -{ - // - // = TITLE - // be_visitor_root_ci - // - // = DESCRIPTION - // This is a concrete visitor to generate the client inline for root - // - // -public: - be_visitor_root_ci (be_visitor_context *ctx); - // constructor - - ~be_visitor_root_ci (void); - // destructor - - virtual int init (void); - // set the right context and make a visitor -}; - -#endif /* _BE_VISITOR_ROOT_ROOT_CI_H_ */ diff --git a/TAO/TAO_IDL/be_include/be_visitor_root/root_cs.h b/TAO/TAO_IDL/be_include/be_visitor_root/root_cs.h deleted file mode 100644 index 64b5df10792..00000000000 --- a/TAO/TAO_IDL/be_include/be_visitor_root/root_cs.h +++ /dev/null @@ -1,48 +0,0 @@ -/* -*- c++ -*- */ -// -// $Id$ -// - -// ============================================================================ -// -// = LIBRARY -// TAO IDL -// -// = FILENAME -// root_cs.h -// -// = DESCRIPTION -// Concrete visitor for the Root class -// This one provides code generation for elements of the Root node in the -// client stubs. -// -// = AUTHOR -// Aniruddha Gokhale -// -// ============================================================================ - -#ifndef _BE_VISITOR_ROOT_ROOT_CS_H_ -#define _BE_VISITOR_ROOT_ROOT_CS_H_ - -class be_visitor_root_cs : public be_visitor_root -{ - // - // = TITLE - // be_visitor_root_cs - // - // = DESCRIPTION - // This is a concrete visitor to generate the client stubs for root - // - // -public: - be_visitor_root_cs (be_visitor_context *ctx); - // constructor - - ~be_visitor_root_cs (void); - // destructor - - virtual int init (void); - // set the right context and make a visitor -}; - -#endif /* _BE_VISITOR_ROOT_ROOT_CS_H_ */ diff --git a/TAO/TAO_IDL/be_include/be_visitor_root/root_ih.h b/TAO/TAO_IDL/be_include/be_visitor_root/root_ih.h deleted file mode 100644 index fca8a7f32ab..00000000000 --- a/TAO/TAO_IDL/be_include/be_visitor_root/root_ih.h +++ /dev/null @@ -1,47 +0,0 @@ -// $Id$ - -// ============================================================================ -// -// = LIBRARY -// TAO IDL -// -// = FILENAME -// root_ih.h -// -// = DESCRIPTION -// Concrete visitor for the Root class -// This one provides code generation for elements of the Root node in the -// implementation header. -// -// = AUTHOR -// Yamuna Krishnamurthy -// -// ============================================================================ - -#ifndef _BE_VISITOR_ROOT_ROOT_IH_H_ -#define _BE_VISITOR_ROOT_ROOT_IH_H_ - - - -class be_visitor_root_ih : public be_visitor_root -{ - // - // = TITLE - // be_visitor_root_ih - // - // = DESCRIPTION - // This is a concrete visitor to generate the implementation header for root - // - // -public: - be_visitor_root_ih (be_visitor_context *ctx); - // constructor - - ~be_visitor_root_ih (void); - // destructor - - virtual int init (void); - // set the right context and make a visitor -}; - -#endif /* _BE_VISITOR_ROOT_ROOT_IH_H_ */ diff --git a/TAO/TAO_IDL/be_include/be_visitor_root/root_is.h b/TAO/TAO_IDL/be_include/be_visitor_root/root_is.h deleted file mode 100644 index d39b16aeb8b..00000000000 --- a/TAO/TAO_IDL/be_include/be_visitor_root/root_is.h +++ /dev/null @@ -1,45 +0,0 @@ -// $Id$ - -// ============================================================================ -// -// = LIBRARY -// TAO IDL -// -// = FILENAME -// root_is.h -// -// = DESCRIPTION -// Concrete visitor for the Root class -// This one provides code generation for elements of the Root node in the -// implementation skeletons. -// -// = AUTHOR -// Yamuna Krishnamurthy (yamuna@cs.wustl.edu) -// -// ============================================================================ - -#ifndef _BE_VISITOR_ROOT_ROOT_IS_H_ -#define _BE_VISITOR_ROOT_ROOT_IS_H_ - -class be_visitor_root_is : public be_visitor_root -{ - // - // = TITLE - // be_visitor_root_is - // - // = DESCRIPTION - // This is a concrete visitor to generate the implementation skeletons for root - // - // -public: - be_visitor_root_is (be_visitor_context *ctx); - // constructor - - ~be_visitor_root_is (void); - // destructor - - virtual int init (void); - // set the right context and make a visitor -}; - -#endif /* _BE_VISITOR_ROOT_ROOT_IS_H_ */ diff --git a/TAO/TAO_IDL/be_include/be_visitor_root/root_sh.h b/TAO/TAO_IDL/be_include/be_visitor_root/root_sh.h deleted file mode 100644 index d1c42ca580e..00000000000 --- a/TAO/TAO_IDL/be_include/be_visitor_root/root_sh.h +++ /dev/null @@ -1,48 +0,0 @@ -/* -*- c++ -*- */ -// -// $Id$ -// - -// ============================================================================ -// -// = LIBRARY -// TAO IDL -// -// = FILENAME -// root_sh.h -// -// = DESCRIPTION -// Concrete visitor for the Root class -// This one provides code generation for elements of the Root node in the -// server header. -// -// = AUTHOR -// Aniruddha Gokhale -// -// ============================================================================ - -#ifndef _BE_VISITOR_ROOT_ROOT_SH_H_ -#define _BE_VISITOR_ROOT_ROOT_SH_H_ - -class be_visitor_root_sh : public be_visitor_root -{ - // - // = TITLE - // be_visitor_root_sh - // - // = DESCRIPTION - // This is a concrete visitor to generate the server header for root - // - // -public: - be_visitor_root_sh (be_visitor_context *ctx); - // constructor - - ~be_visitor_root_sh (void); - // destructor - - virtual int init (void); - // set the right context and make a visitor -}; - -#endif /* _BE_VISITOR_ROOT_ROOT_SH_H_ */ diff --git a/TAO/TAO_IDL/be_include/be_visitor_root/root_si.h b/TAO/TAO_IDL/be_include/be_visitor_root/root_si.h deleted file mode 100644 index b615a08d69d..00000000000 --- a/TAO/TAO_IDL/be_include/be_visitor_root/root_si.h +++ /dev/null @@ -1,48 +0,0 @@ -/* -*- c++ -*- */ -// -// $Id$ -// - -// ============================================================================ -// -// = LIBRARY -// TAO IDL -// -// = FILENAME -// root_si.h -// -// = DESCRIPTION -// Concrete visitor for the Root class -// This one provides code generation for elements of the Root node in the -// server inline. -// -// = AUTHOR -// Aniruddha Gokhale -// -// ============================================================================ - -#ifndef _BE_VISITOR_ROOT_ROOT_SI_H_ -#define _BE_VISITOR_ROOT_ROOT_SI_H_ - -class be_visitor_root_si : public be_visitor_root -{ - // - // = TITLE - // be_visitor_root_si - // - // = DESCRIPTION - // This is a concrete visitor to generate the server inline for root - // - // -public: - be_visitor_root_si (be_visitor_context *ctx); - // constructor - - ~be_visitor_root_si (void); - // destructor - - virtual int init (void); - // set the right context and make a visitor -}; - -#endif /* _BE_VISITOR_ROOT_ROOT_SI_H_ */ diff --git a/TAO/TAO_IDL/be_include/be_visitor_root/root_ss.h b/TAO/TAO_IDL/be_include/be_visitor_root/root_ss.h deleted file mode 100644 index 0c75d137122..00000000000 --- a/TAO/TAO_IDL/be_include/be_visitor_root/root_ss.h +++ /dev/null @@ -1,48 +0,0 @@ -/* -*- c++ -*- */ -// -// $Id$ -// - -// ============================================================================ -// -// = LIBRARY -// TAO IDL -// -// = FILENAME -// root_ss.h -// -// = DESCRIPTION -// Concrete visitor for the Root class -// This one provides code generation for elements of the Root node in the -// server skeletons. -// -// = AUTHOR -// Aniruddha Gokhale -// -// ============================================================================ - -#ifndef _BE_VISITOR_ROOT_ROOT_SS_H_ -#define _BE_VISITOR_ROOT_ROOT_SS_H_ - -class be_visitor_root_ss : public be_visitor_root -{ - // - // = TITLE - // be_visitor_root_ss - // - // = DESCRIPTION - // This is a concrete visitor to generate the server skeletons for root - // - // -public: - be_visitor_root_ss (be_visitor_context *ctx); - // constructor - - ~be_visitor_root_ss (void); - // destructor - - virtual int init (void); - // set the right context and make a visitor -}; - -#endif /* _BE_VISITOR_ROOT_ROOT_SS_H_ */ diff --git a/TAO/TAO_IDL/be_include/be_visitor_scope.h b/TAO/TAO_IDL/be_include/be_visitor_scope.h deleted file mode 100644 index 095dee0ae32..00000000000 --- a/TAO/TAO_IDL/be_include/be_visitor_scope.h +++ /dev/null @@ -1,68 +0,0 @@ -// -// $Id$ -// -/* -*- c++ -*- */ -// ============================================================================ -// -// = LIBRARY -// TAO IDL -// -// = FILENAME -// be_visitor_scope.h -// -// = DESCRIPTION -// Concrete visitor for the base "BE_Scope" node -// -// = AUTHOR -// Aniruddha Gokhale and Carlos O'Ryan -// -// ============================================================================ - -#ifndef TAO_BE_VISITOR_SCOPE_H -#define TAO_BE_VISITOR_SCOPE_H - -#include "be_visitor.h" -#include "be_visitor_decl.h" - -class be_visitor_scope : public be_visitor_decl -{ - // - // = TITLE - // be_visitor_scope - // - // = DESCRIPTION - // This is a concrete visitor for the be_scope node. Its only purpose is to - // iterate over the elements of the scope - // -public: - be_visitor_scope (be_visitor_context *ctx); - // constructor - - ~be_visitor_scope (void); - // destructor - - int visit_scope (be_scope *node); - // visit scope - - virtual int post_process (be_decl *); - // do any processing after every element except the last one of the scope is - // processed - - virtual int pre_process (be_decl *); - // do any processing prior to processing the element in the scope - - virtual int elem_number (void); - // return the element number that is being processed - - virtual int next_elem (be_decl *elem, be_decl *&); - // get the successor to elem - - virtual idl_bool last_node (be_decl *bd); - // Is bd the last node in the scope - -protected: - int elem_number_; -}; - - -#endif // TAO_BE_VISITOR_SCOPE_H diff --git a/TAO/TAO_IDL/be_include/be_visitor_sequence.h b/TAO/TAO_IDL/be_include/be_visitor_sequence.h deleted file mode 100644 index 07588e9428a..00000000000 --- a/TAO/TAO_IDL/be_include/be_visitor_sequence.h +++ /dev/null @@ -1,25 +0,0 @@ -/* -*- c++ -*- */ -// -// $Id$ -// - -#ifndef TAO_BE_VISITOR_SEQUENCE_H -#define TAO_BE_VISITOR_SEQUENCE_H - -#include "be_visitor_decl.h" - -#include "be_visitor_sequence/sequence_ch.h" -#include "be_visitor_sequence/sequence_ci.h" -#include "be_visitor_sequence/sequence_cs.h" -// =helper visitors to generate the base type and element type -#include "be_visitor_sequence/sequence_base.h" -#include "be_visitor_sequence/buffer_type.h" -#include "be_visitor_sequence/elemtype.h" -// = any operators -#include "be_visitor_sequence/any_op_ch.h" -#include "be_visitor_sequence/any_op_cs.h" -#include "be_visitor_sequence/cdr_op_ch.h" -#include "be_visitor_sequence/cdr_op_ci.h" -#include "be_visitor_sequence/cdr_op_cs.h" - -#endif /* TAO_BE_VISITOR_SEQUENCE_H */ diff --git a/TAO/TAO_IDL/be_include/be_visitor_sequence/any_op_ch.h b/TAO/TAO_IDL/be_include/be_visitor_sequence/any_op_ch.h deleted file mode 100644 index 71cc3bf65c5..00000000000 --- a/TAO/TAO_IDL/be_include/be_visitor_sequence/any_op_ch.h +++ /dev/null @@ -1,49 +0,0 @@ -/* -*- c++ -*- */ -// -// $Id$ -// - -// ============================================================================ -// -// = LIBRARY -// TAO IDL -// -// = FILENAME -// any_op_ch.h -// -// = DESCRIPTION -// Concrete visitor for the Sequence class -// This one provides code generation for the Any operators for the Sequence -// node in the client header. -// -// = AUTHOR -// Aniruddha Gokhale -// -// ============================================================================ - -#ifndef _BE_VISITOR_SEQUENCE_ANY_OP_CH_H_ -#define _BE_VISITOR_SEQUENCE_ANY_OP_CH_H_ - -class be_visitor_sequence_any_op_ch : public be_visitor_decl -{ - // - // = TITLE - // be_visitor_sequence_any_op_ch - // - // = DESCRIPTION - // This is a concrete visitor for sequence that generates the Any operator - // declarations - // - -public: - be_visitor_sequence_any_op_ch (be_visitor_context *ctx); - // constructor - - ~be_visitor_sequence_any_op_ch (void); - // destructor - - virtual int visit_sequence (be_sequence *node); - // visit sequence -}; - -#endif /* _BE_VISITOR_SEQUENCE_ANY_OP_CH_H_ */ diff --git a/TAO/TAO_IDL/be_include/be_visitor_sequence/any_op_cs.h b/TAO/TAO_IDL/be_include/be_visitor_sequence/any_op_cs.h deleted file mode 100644 index fdb3e422d14..00000000000 --- a/TAO/TAO_IDL/be_include/be_visitor_sequence/any_op_cs.h +++ /dev/null @@ -1,49 +0,0 @@ -/* -*- c++ -*- */ -// -// $Id$ -// - -// ============================================================================ -// -// = LIBRARY -// TAO IDL -// -// = FILENAME -// any_op_cs.h -// -// = DESCRIPTION -// Concrete visitor for the Sequence class -// This one provides code generation for the Sequence node in the client -// header. -// -// = AUTHOR -// Aniruddha Gokhale -// -// ============================================================================ - -#ifndef _BE_VISITOR_SEQUENCE_ANY_OP_CS_H_ -#define _BE_VISITOR_SEQUENCE_ANY_OP_CS_H_ - -class be_visitor_sequence_any_op_cs : public be_visitor_decl -{ - // - // = TITLE - // be_visitor_sequence_any_op_cs - // - // = DESCRIPTION - // This is a concrete visitor for sequence that generates the Any operator - // implementations - // - -public: - be_visitor_sequence_any_op_cs (be_visitor_context *ctx); - // constructor - - ~be_visitor_sequence_any_op_cs (void); - // destructor - - virtual int visit_sequence (be_sequence *node); - // visit sequence -}; - -#endif /* _BE_VISITOR_SEQUENCE_ANY_OP_CS_H_ */ diff --git a/TAO/TAO_IDL/be_include/be_visitor_sequence/buffer_type.h b/TAO/TAO_IDL/be_include/be_visitor_sequence/buffer_type.h deleted file mode 100644 index 1fe1880f3dd..00000000000 --- a/TAO/TAO_IDL/be_include/be_visitor_sequence/buffer_type.h +++ /dev/null @@ -1,63 +0,0 @@ -/* -*- c++ -*- */ -// -// $Id$ -// - -// ============================================================================ -// -// = LIBRARY -// TAO IDL -// -// = FILENAME -// buffer_type.h -// -// = DESCRIPTION -// Concrete visitor for the Sequence class -// This one provides code generation for the buffer type of the Sequence -// node. -// -// = AUTHOR -// Aniruddha Gokhale -// -// ============================================================================ - -#ifndef _BE_VISITOR_SEQUENCE_BUFFER_TYPE_H_ -#define _BE_VISITOR_SEQUENCE_BUFFER_TYPE_H_ - -class be_visitor_sequence_buffer_type : public be_visitor_decl -{ - // - // = TITLE - // be_visitor_sequence_buffer_type - // - // = DESCRIPTION - // This is a concrete visitor to generate the buffer type - // for a TAO_*_Sequence instantiation. - // -public: - be_visitor_sequence_buffer_type (be_visitor_context *ctx); - // Constructor - - ~be_visitor_sequence_buffer_type (void); - // destructor - - // = Visitor methods. - virtual int visit_predefined_type (be_predefined_type *node); - virtual int visit_interface (be_interface *node); - virtual int visit_interface_fwd (be_interface_fwd *node); - virtual int visit_structure (be_structure *node); - virtual int visit_enum (be_enum *node); - virtual int visit_exception (be_exception *node); - virtual int visit_union (be_union *node); - virtual int visit_array (be_array *node); - virtual int visit_string (be_string *node); - virtual int visit_sequence (be_sequence *node); - virtual int visit_typedef (be_typedef *node); - -protected: - int visit_node (be_type *); - // helper that does the common job - -}; - -#endif /* _BE_VISITOR_SEQUENCE_BUFFER_TYPE_H_ */ diff --git a/TAO/TAO_IDL/be_include/be_visitor_sequence/cdr_op_ch.h b/TAO/TAO_IDL/be_include/be_visitor_sequence/cdr_op_ch.h deleted file mode 100644 index ca3f1b85856..00000000000 --- a/TAO/TAO_IDL/be_include/be_visitor_sequence/cdr_op_ch.h +++ /dev/null @@ -1,50 +0,0 @@ -/* -*- c++ -*- */ -// -// $Id$ -// - -// ============================================================================ -// -// = LIBRARY -// TAO IDL -// -// = FILENAME -// cdr_op_ch.h -// -// = DESCRIPTION -// Concrete visitor for the Sequence class -// This one provides code generation for the CDR operators for the sequence -// in the client header. -// -// = AUTHOR -// Aniruddha Gokhale -// -// ============================================================================ - -#ifndef _BE_VISITOR_SEQUENCE_CDR_OP_CH_H_ -#define _BE_VISITOR_SEQUENCE_CDR_OP_CH_H_ - -class be_visitor_sequence_cdr_op_ch : public be_visitor_decl -{ - // - // = TITLE - // be_visitor_sequence_cdr_op_ch - // - // = DESCRIPTION - // This is a concrete visitor for sequence that generates the CDR operator - // declarations - // - -public: - be_visitor_sequence_cdr_op_ch (be_visitor_context *ctx); - // constructor - - ~be_visitor_sequence_cdr_op_ch (void); - // destructor - - virtual int visit_sequence (be_sequence *node); - // visit sequence - -}; - -#endif /* _BE_VISITOR_SEQUENCE_CDR_OP_CH_H_ */ diff --git a/TAO/TAO_IDL/be_include/be_visitor_sequence/cdr_op_ci.h b/TAO/TAO_IDL/be_include/be_visitor_sequence/cdr_op_ci.h deleted file mode 100644 index a2c4b394a6d..00000000000 --- a/TAO/TAO_IDL/be_include/be_visitor_sequence/cdr_op_ci.h +++ /dev/null @@ -1,51 +0,0 @@ -// -// $Id$ -// - -// ============================================================================ -// -// = LIBRARY -// TAO IDL -// -// = FILENAME -// cdr_op_ci.h -// -// = DESCRIPTION -// Visitors for generation of code for Sequences in client stubs. This one -// generates the CDR operators. -// -// = AUTHOR -// Aniruddha Gokhale -// -// ============================================================================ - -#ifndef _BE_VISITOR_SEQUENCE_CDR_OP_CI_H_ -#define _BE_VISITOR_SEQUENCE_CDR_OP_CI_H_ - -// ************************************************************ -// class be_visitor_sequence_cs -// ************************************************************ - -class be_visitor_sequence_cdr_op_ci : public be_visitor_decl -{ - // - // = TITLE - // be_visitor_sequence_cdr_op_ci - // - // = DESCRIPTION - // This is a concrete visitor for sequence that generates the CDR operator - // implementations - // - -public: - be_visitor_sequence_cdr_op_ci (be_visitor_context *ctx); - // constructor - - ~be_visitor_sequence_cdr_op_ci (void); - // destructor - - virtual int visit_sequence (be_sequence *node); - // visit sequence -}; - -#endif /* _BE_VISITOR_SEQUENCE_CDR_OP_CI_H_ */ diff --git a/TAO/TAO_IDL/be_include/be_visitor_sequence/cdr_op_cs.h b/TAO/TAO_IDL/be_include/be_visitor_sequence/cdr_op_cs.h deleted file mode 100644 index 1a36b175013..00000000000 --- a/TAO/TAO_IDL/be_include/be_visitor_sequence/cdr_op_cs.h +++ /dev/null @@ -1,86 +0,0 @@ -// -// $Id$ -// - -// ============================================================================ -// -// = LIBRARY -// TAO IDL -// -// = FILENAME -// cdr_op_cs.h -// -// = DESCRIPTION -// Visitors for generation of code for Sequences in client stubs. This one -// generates the CDR operators. -// -// = AUTHOR -// Aniruddha Gokhale -// -// ============================================================================ - -#ifndef _BE_VISITOR_SEQUENCE_CDR_OP_CS_H_ -#define _BE_VISITOR_SEQUENCE_CDR_OP_CS_H_ - -// ************************************************************ -// class be_visitor_sequence_cs -// ************************************************************ - -class be_visitor_sequence_cdr_op_cs : public be_visitor_decl -{ - // - // = TITLE - // be_visitor_sequence_cdr_op_cs - // - // = DESCRIPTION - // This is a concrete visitor for sequence that generates the CDR operator - // implementations - // - -public: - be_visitor_sequence_cdr_op_cs (be_visitor_context *ctx); - // constructor - - ~be_visitor_sequence_cdr_op_cs (void); - // destructor - - virtual int visit_sequence (be_sequence *node); - // visit sequence - - // = Visitor methods on sequence types - - virtual int visit_array (be_array *node); - // visit sequence - - virtual int visit_enum (be_enum *node); - // visit an enum - - virtual int visit_interface (be_interface *node); - // visit an interface - - virtual int visit_interface_fwd (be_interface_fwd *node); - // visit an interface forward node - - virtual int visit_predefined_type (be_predefined_type *node); - // visit a predefined type node - - virtual int visit_string (be_string *node); - // visit string - - virtual int visit_structure (be_structure *node); - // visit structure - - virtual int visit_typedef (be_typedef *node); - // visit typedef - - virtual int visit_union (be_union *node); - // visit union - -protected: - - int visit_node (be_type *); - // helper that does the common job - -}; - -#endif /* _BE_VISITOR_SEQUENCE_CDR_OP_CS_H_ */ diff --git a/TAO/TAO_IDL/be_include/be_visitor_sequence/elemtype.h b/TAO/TAO_IDL/be_include/be_visitor_sequence/elemtype.h deleted file mode 100644 index c307db5fa6e..00000000000 --- a/TAO/TAO_IDL/be_include/be_visitor_sequence/elemtype.h +++ /dev/null @@ -1,66 +0,0 @@ -/* -*- c++ -*- */ -// -// $Id$ -// - -// ============================================================================ -// -// = LIBRARY -// TAO IDL -// -// = FILENAME -// elemtype.h -// -// = DESCRIPTION -// Concrete visitor for the Sequence class -// This one provides code generation for the element type returned by the [] -// operators for the Sequence node. -// -// = AUTHOR -// Aniruddha Gokhale -// -// ============================================================================ - -#ifndef _BE_VISITOR_SEQUENCE_ELEMTYPE_H_ -#define _BE_VISITOR_SEQUENCE_ELEMTYPE_H_ - -class be_visitor_sequence_elemtype : public be_visitor_decl -{ - // - // = TITLE - // be_visitor_sequence_elemtype - // - // = DESCRIPTION - // This is a concrete visitor to generate the return type for the - // [] operators - // - // = NOTES - // This class may eventually go away when the _var and _out classes are - // generated using templates -public: - be_visitor_sequence_elemtype (be_visitor_context *ctx); - // Constructor - - ~be_visitor_sequence_elemtype (void); - // destructor - - // = Visitors - virtual int visit_predefined_type (be_predefined_type *node); - virtual int visit_interface (be_interface *node); - virtual int visit_interface_fwd (be_interface_fwd *node); - virtual int visit_structure (be_structure *node); - virtual int visit_enum (be_enum *node); - virtual int visit_exception (be_exception *node); - virtual int visit_union (be_union *node); - virtual int visit_array (be_array *node); - virtual int visit_sequence (be_sequence *node); - virtual int visit_typedef (be_typedef *node); - virtual int visit_string (be_string *node); - -protected: - int visit_node (be_type *); - // helper that does the common job - -}; - -#endif /* _BE_VISITOR_SEQUENCE_ELEMTYPE_H_ */ diff --git a/TAO/TAO_IDL/be_include/be_visitor_sequence/sequence_base.h b/TAO/TAO_IDL/be_include/be_visitor_sequence/sequence_base.h deleted file mode 100644 index ecccc19f8a7..00000000000 --- a/TAO/TAO_IDL/be_include/be_visitor_sequence/sequence_base.h +++ /dev/null @@ -1,95 +0,0 @@ -/* -*- c++ -*- */ -// -// $Id$ -// - -// ============================================================================ -// -// = LIBRARY -// TAO IDL -// -// = FILENAME -// sequence_base.h -// -// = DESCRIPTION -// Concrete visitor for the Sequence class -// This one provides code generation for the base typ of the Sequence node. -// -// = AUTHOR -// Aniruddha Gokhale -// -// ============================================================================ - -#ifndef _BE_VISITOR_SEQUENCE_SEQUENCE_BASE_H_ -#define _BE_VISITOR_SEQUENCE_SEQUENCE_BASE_H_ - -class be_visitor_sequence_base : public be_visitor_decl -{ - // - // = TITLE - // be_visitor_sequence_base - // - // = DESCRIPTION - // This is a concrete visitor to generate the template parameters - // for a TAO_*_Sequence instantiation. - // - // = BUGS - // The class name is misleading, eventually this class could be - // used to generate code in other files, not only the client - // header. - // The visitor factory should provide a factory method that builds - // this class on the fly. - // -public: - be_visitor_sequence_base (be_visitor_context *ctx); - // Constructor - - ~be_visitor_sequence_base (void); - // destructor - - // = Visitor methods. - virtual int visit_predefined_type (be_predefined_type *node); - virtual int visit_interface (be_interface *node); - virtual int visit_interface_fwd (be_interface_fwd *node); - virtual int visit_structure (be_structure *node); - virtual int visit_enum (be_enum *node); - virtual int visit_exception (be_exception *node); - virtual int visit_union (be_union *node); - virtual int visit_array (be_array *node); - virtual int visit_string (be_string *node); - virtual int visit_sequence (be_sequence *node); - virtual int visit_typedef (be_typedef *node); - -protected: - int visit_node (be_type *); - // helper that does the common job - -}; - -class be_visitor_sequence_base_template_args: public be_visitor_sequence_base -{ - // - // =TITLE - // be_visitor_sequnce_base_template_args - // - // =Description - // This is a derived class just used to override the method - // visit_interface that generates the arguments for the - // templates. This is necessary as the same visitor was being used - // by the idl compiler to generate the template arguments and the - // return arguments for some of the methods. -public: - be_visitor_sequence_base_template_args (be_visitor_context *ctx, - be_sequence *node ); - - ~be_visitor_sequence_base_template_args (void); - //Dtor - - //= Visit methods - virtual int visit_interface (be_interface *node); - - virtual int visit_predefined_type (be_predefined_type *node); -private: - be_sequence *beseq_; -}; -#endif /* _BE_VISITOR_SEQUENCE_SEQUENCE_BASE_H_ */ diff --git a/TAO/TAO_IDL/be_include/be_visitor_sequence/sequence_ch.h b/TAO/TAO_IDL/be_include/be_visitor_sequence/sequence_ch.h deleted file mode 100644 index 5dd18112fd8..00000000000 --- a/TAO/TAO_IDL/be_include/be_visitor_sequence/sequence_ch.h +++ /dev/null @@ -1,75 +0,0 @@ -/* -*- c++ -*- */ -// -// $Id$ -// - -// ============================================================================ -// -// = LIBRARY -// TAO IDL -// -// = FILENAME -// sequence_ch.h -// -// = DESCRIPTION -// Concrete visitor for the Sequence class -// This one provides code generation for the Sequence node in the client -// header. -// -// = AUTHOR -// Aniruddha Gokhale -// -// ============================================================================ - -#ifndef _BE_VISITOR_SEQUENCE_SEQUENCE_CH_H_ -#define _BE_VISITOR_SEQUENCE_SEQUENCE_CH_H_ - -class be_visitor_sequence_ch : public be_visitor_decl -{ - // - // = TITLE - // be_visitor_sequence_ch - // - // = DESCRIPTION - // This is a concrete visitor to generate the client header for - // sequences - // -public: - be_visitor_sequence_ch (be_visitor_context *ctx); - // constructor - - ~be_visitor_sequence_ch (void); - // destructor - - virtual int visit_sequence (be_sequence *node); - // visit sequence node - - virtual int gen_unbounded_sequence (be_sequence *node); - // generate a instance of the unbounded sequence - - virtual int gen_bounded_sequence (be_sequence *node); - // generate a instance of the bounded sequence - - virtual int gen_unbounded_obj_sequence (be_sequence *node); - // generate a instance of the unbounded object sequence - - virtual int gen_bounded_obj_sequence (be_sequence *node); - // generate a instance of the bounded object sequence - - virtual int gen_bounded_str_sequence (be_sequence *node); - // generate a instance of the bounded string sequence - - virtual int instantiate_sequence (be_sequence *node); - // determine which sequence to instantiate - - virtual int gen_base_sequence_class (be_sequence *node); - // generate the base sequence class - - virtual int gen_var_defn (be_sequence *node); - // generate the var defn - - virtual int gen_out_defn (be_sequence *node); - // generate the out defn -}; - -#endif /* _BE_VISITOR_SEQUENCE_SEQUENCE_CH_H_ */ diff --git a/TAO/TAO_IDL/be_include/be_visitor_sequence/sequence_ci.h b/TAO/TAO_IDL/be_include/be_visitor_sequence/sequence_ci.h deleted file mode 100644 index 076f5120ed5..00000000000 --- a/TAO/TAO_IDL/be_include/be_visitor_sequence/sequence_ci.h +++ /dev/null @@ -1,73 +0,0 @@ -/* -*- c++ -*- */ -// -// $Id$ -// - -// ============================================================================ -// -// = LIBRARY -// TAO IDL -// -// = FILENAME -// sequence_ci.h -// -// = DESCRIPTION -// Concrete visitor for the Sequence class -// This one provides code generation for the Sequence node in the client -// inline. -// -// = AUTHOR -// Aniruddha Gokhale -// -// ============================================================================ - -#ifndef _BE_VISITOR_SEQUENCE_SEQUENCE_CI_H_ -#define _BE_VISITOR_SEQUENCE_SEQUENCE_CI_H_ - -class be_visitor_sequence_ci : public be_visitor_decl -{ - // - // = TITLE - // be_visitor_sequence_ci - // - // = DESCRIPTION - // This is a concrete visitor to generate the client inline for - // sequences. The only purpose is to generate the implementation for the - // _var and _out classes - // -public: - be_visitor_sequence_ci (be_visitor_context *ctx); - // constructor - - ~be_visitor_sequence_ci (void); - // destructor - - virtual int visit_sequence (be_sequence *node); - // visit sequence node - - virtual int gen_unbounded_sequence (be_sequence *node); - // generate a instance of the unbounded sequence - - virtual int gen_bounded_sequence (be_sequence *node); - // generate a instance of the bounded sequence - - virtual int gen_unbounded_obj_sequence (be_sequence *node); - // generate a instance of the unbounded object sequence - - virtual int gen_bounded_obj_sequence (be_sequence *node); - // generate a instance of the bounded object sequence - - virtual int gen_bounded_str_sequence (be_sequence *node); - // generate a instance of the bounded string sequence - - virtual int instantiate_sequence (be_sequence *node); - // determine which sequence to instantiate - - virtual int gen_var_impl (be_sequence *node); - // generate the var impl - - virtual int gen_out_impl (be_sequence *node); - // generate the out impl -}; - -#endif /* _BE_VISITOR_SEQUENCE_SEQUENCE_CI_H_ */ diff --git a/TAO/TAO_IDL/be_include/be_visitor_sequence/sequence_cs.h b/TAO/TAO_IDL/be_include/be_visitor_sequence/sequence_cs.h deleted file mode 100644 index 883ee478a61..00000000000 --- a/TAO/TAO_IDL/be_include/be_visitor_sequence/sequence_cs.h +++ /dev/null @@ -1,69 +0,0 @@ -/* -*- c++ -*- */ -// -// $Id$ -// - -// ============================================================================ -// -// = LIBRARY -// TAO IDL -// -// = FILENAME -// sequence_cs.h -// -// = DESCRIPTION -// Concrete visitor for the Sequence class -// This one provides code generation for the Sequence node in the client -// stubs. -// -// = AUTHOR -// Aniruddha Gokhale -// -// ============================================================================ - -#ifndef _BE_VISITOR_SEQUENCE_SEQUENCE_CS_H_ -#define _BE_VISITOR_SEQUENCE_SEQUENCE_CS_H_ - -class be_visitor_sequence_cs : public be_visitor_decl -{ - // - // = TITLE - // be_visitor_sequence_cs - // - // = DESCRIPTION - // This is a concrete visitor to generate the client stubs for - // sequences - // -public: - be_visitor_sequence_cs (be_visitor_context *ctx); - // constructor - - ~be_visitor_sequence_cs (void); - // destructor - - virtual int visit_sequence (be_sequence *node); - // visit sequence node - - virtual int gen_unbounded_sequence (be_sequence *node); - // generate a instance of the unbounded sequence - - virtual int gen_bounded_sequence (be_sequence *node); - // generate a instance of the bounded sequence - - virtual int gen_unbounded_obj_sequence (be_sequence *node); - // generate a instance of the unbounded object sequence - - virtual int gen_bounded_obj_sequence (be_sequence *node); - // generate a instance of the bounded object sequence - - virtual int gen_bounded_str_sequence (be_sequence *node); - // generate a instance of the bounded string sequence - - virtual int instantiate_sequence (be_sequence *node); - // determine which sequence to instantiate - - virtual int gen_base_sequence_class (be_sequence *node); - // generate the base sequence class -}; - -#endif /* _BE_VISITOR_SEQUENCE_SEQUENCE_CS_H_ */ diff --git a/TAO/TAO_IDL/be_include/be_visitor_structure.h b/TAO/TAO_IDL/be_include/be_visitor_structure.h deleted file mode 100644 index b3decadc89e..00000000000 --- a/TAO/TAO_IDL/be_include/be_visitor_structure.h +++ /dev/null @@ -1,40 +0,0 @@ -/* -*- c++ -*- */ -// -// $Id$ -// - -// ============================================================================ -// -// = LIBRARY -// TAO IDL -// -// = FILENAME -// be_visitor_structure.h -// -// = DESCRIPTION -// Concrete visitor for the Structure class -// -// = AUTHOR -// Aniruddha Gokhale -// -// ============================================================================ - -#ifndef TAO_BE_VISITOR_STRUCTURE_H -#define TAO_BE_VISITOR_STRUCTURE_H - -#include "be_visitor.h" -#include "be_visitor_scope.h" - -// generic visitor -#include "be_visitor_structure/structure.h" -// concrete visitors -#include "be_visitor_structure/structure_ch.h" -#include "be_visitor_structure/structure_ci.h" -#include "be_visitor_structure/structure_cs.h" -#include "be_visitor_structure/any_op_ch.h" -#include "be_visitor_structure/any_op_cs.h" -#include "be_visitor_structure/cdr_op_ch.h" -#include "be_visitor_structure/cdr_op_ci.h" -#include "be_visitor_structure/cdr_op_cs.h" - -#endif // TAO_BE_VISITOR_STRUCTURE_H diff --git a/TAO/TAO_IDL/be_include/be_visitor_structure/any_op_ch.h b/TAO/TAO_IDL/be_include/be_visitor_structure/any_op_ch.h deleted file mode 100644 index 935a74aedc8..00000000000 --- a/TAO/TAO_IDL/be_include/be_visitor_structure/any_op_ch.h +++ /dev/null @@ -1,52 +0,0 @@ -/* -*- c++ -*- */ -// -// $Id$ -// - -// ============================================================================ -// -// = LIBRARY -// TAO IDL -// -// = FILENAME -// any_op_ch.h -// -// = DESCRIPTION -// Concrete visitor for the Structure class -// This one provides code generation for the Any operators for the structure -// in the client header. -// -// = AUTHOR -// Aniruddha Gokhale -// -// ============================================================================ - -#ifndef _BE_VISITOR_STRUCTURE_ANY_OP_CH_H_ -#define _BE_VISITOR_STRUCTURE_ANY_OP_CH_H_ - -class be_visitor_structure_any_op_ch : public be_visitor_structure -{ - // - // = TITLE - // be_visitor_structure_any_op_ch - // - // = DESCRIPTION - // This is a concrete visitor for structure that generates the Any operator - // declarations - // - -public: - be_visitor_structure_any_op_ch (be_visitor_context *ctx); - // constructor - - ~be_visitor_structure_any_op_ch (void); - // destructor - - virtual int visit_structure (be_structure *node); - // visit structure - - virtual int visit_field (be_field *node); - // visit field -}; - -#endif /* _BE_VISITOR_STRUCTURE_ANY_OP_CH_H_ */ diff --git a/TAO/TAO_IDL/be_include/be_visitor_structure/any_op_cs.h b/TAO/TAO_IDL/be_include/be_visitor_structure/any_op_cs.h deleted file mode 100644 index 65829b3ff15..00000000000 --- a/TAO/TAO_IDL/be_include/be_visitor_structure/any_op_cs.h +++ /dev/null @@ -1,52 +0,0 @@ -/* -*- c++ -*- */ -// -// $Id$ -// - -// ============================================================================ -// -// = LIBRARY -// TAO IDL -// -// = FILENAME -// any_op_ch.h -// -// = DESCRIPTION -// Concrete visitor for the Structure class -// This one provides code generation for the Any operators for the structure -// in the client header. -// -// = AUTHOR -// Aniruddha Gokhale -// -// ============================================================================ - -#ifndef _BE_VISITOR_STRUCTURE_ANY_OP_CS_H_ -#define _BE_VISITOR_STRUCTURE_ANY_OP_CS_H_ - -class be_visitor_structure_any_op_cs : public be_visitor_structure -{ - // - // = TITLE - // be_visitor_structure_any_op_cs - // - // = DESCRIPTION - // This is a concrete visitor for structure that generates the Any operator - // implementations - // - -public: - be_visitor_structure_any_op_cs (be_visitor_context *ctx); - // constructor - - ~be_visitor_structure_any_op_cs (void); - // destructor - - virtual int visit_structure (be_structure *node); - // visit structure - - virtual int visit_field (be_field *node); - // visit field -}; - -#endif /* _BE_VISITOR_STRUCTURE_ANY_OP_CS_H_ */ diff --git a/TAO/TAO_IDL/be_include/be_visitor_structure/cdr_op_ch.h b/TAO/TAO_IDL/be_include/be_visitor_structure/cdr_op_ch.h deleted file mode 100644 index 4c082357b19..00000000000 --- a/TAO/TAO_IDL/be_include/be_visitor_structure/cdr_op_ch.h +++ /dev/null @@ -1,50 +0,0 @@ -/* -*- c++ -*- */ -// -// $Id$ -// - -// ============================================================================ -// -// = LIBRARY -// TAO IDL -// -// = FILENAME -// cdr_op_ch.h -// -// = DESCRIPTION -// Concrete visitor for the Structure class -// This one provides code generation for the CDR operators for the structure -// in the client header. -// -// = AUTHOR -// Aniruddha Gokhale -// -// ============================================================================ - -#ifndef _BE_VISITOR_STRUCTURE_CDR_OP_CH_H_ -#define _BE_VISITOR_STRUCTURE_CDR_OP_CH_H_ - -class be_visitor_structure_cdr_op_ch : public be_visitor_structure -{ - // - // = TITLE - // be_visitor_structure_cdr_op_ch - // - // = DESCRIPTION - // This is a concrete visitor for structure that generates the CDR operator - // declarations - // - -public: - be_visitor_structure_cdr_op_ch (be_visitor_context *ctx); - // constructor - - ~be_visitor_structure_cdr_op_ch (void); - // destructor - - virtual int visit_structure (be_structure *node); - // visit structure - -}; - -#endif /* _BE_VISITOR_STRUCTURE_CDR_OP_CH_H_ */ diff --git a/TAO/TAO_IDL/be_include/be_visitor_structure/cdr_op_ci.h b/TAO/TAO_IDL/be_include/be_visitor_structure/cdr_op_ci.h deleted file mode 100644 index c321ed901e3..00000000000 --- a/TAO/TAO_IDL/be_include/be_visitor_structure/cdr_op_ci.h +++ /dev/null @@ -1,53 +0,0 @@ -/* -*- c++ -*- */ -// -// $Id$ -// - -// ============================================================================ -// -// = LIBRARY -// TAO IDL -// -// = FILENAME -// cdr_op_ch.h -// -// = DESCRIPTION -// Concrete visitor for the Structure class -// This one provides code generation for the CDR operators for the structure -// in the client stub. -// -// = AUTHOR -// Aniruddha Gokhale -// -// ============================================================================ - -#ifndef _BE_VISITOR_STRUCTURE_CDR_OP_CI_H_ -#define _BE_VISITOR_STRUCTURE_CDR_OP_CI_H_ - -class be_visitor_structure_cdr_op_ci : public be_visitor_structure -{ - // - // = TITLE - // be_visitor_structure_cdr_op_ci - // - // = DESCRIPTION - // This is a concrete visitor for structure that generates the CDR operator - // implementations - // - -public: - be_visitor_structure_cdr_op_ci (be_visitor_context *ctx); - // constructor - - ~be_visitor_structure_cdr_op_ci (void); - // destructor - - virtual int visit_structure (be_structure *node); - // visit structure - - virtual int post_process (be_decl *); - // any post processing that needs to be done after a scope element is handled - -}; - -#endif /* _BE_VISITOR_STRUCTURE_CDR_OP_CI_H_ */ diff --git a/TAO/TAO_IDL/be_include/be_visitor_structure/cdr_op_cs.h b/TAO/TAO_IDL/be_include/be_visitor_structure/cdr_op_cs.h deleted file mode 100644 index 1eb8f78d32a..00000000000 --- a/TAO/TAO_IDL/be_include/be_visitor_structure/cdr_op_cs.h +++ /dev/null @@ -1,49 +0,0 @@ -/* -*- c++ -*- */ -// -// $Id$ -// - -// ============================================================================ -// -// = LIBRARY -// TAO IDL -// -// = FILENAME -// cdr_op_ch.h -// -// = DESCRIPTION -// Concrete visitor for the Structure class -// This one provides code generation for the CDR operators for the structure -// in the client stub. -// -// = AUTHOR -// Aniruddha Gokhale -// -// ============================================================================ - -#ifndef _BE_VISITOR_STRUCTURE_CDR_OP_CS_H_ -#define _BE_VISITOR_STRUCTURE_CDR_OP_CS_H_ - -class be_visitor_structure_cdr_op_cs : public be_visitor_structure -{ - // - // = TITLE - // be_visitor_structure_cdr_op_cs - // - // = DESCRIPTION - // This is a concrete visitor for structure that generates the CDR operator - // implementations - // - -public: - be_visitor_structure_cdr_op_cs (be_visitor_context *ctx); - // constructor - - ~be_visitor_structure_cdr_op_cs (void); - // destructor - - virtual int visit_structure (be_structure *node); - // visit structure -}; - -#endif /* _BE_VISITOR_STRUCTURE_CDR_OP_CS_H_ */ diff --git a/TAO/TAO_IDL/be_include/be_visitor_structure/structure.h b/TAO/TAO_IDL/be_include/be_visitor_structure/structure.h deleted file mode 100644 index 01a64e3f342..00000000000 --- a/TAO/TAO_IDL/be_include/be_visitor_structure/structure.h +++ /dev/null @@ -1,52 +0,0 @@ -/* -*- c++ -*- */ -// -// $Id$ -// - -// ============================================================================ -// -// = LIBRARY -// TAO IDL -// -// = FILENAME -// structure.h -// -// = DESCRIPTION -// Concrete visitor for the STRUCTURE class -// This one provides the generic visitor for the Structure node. -// -// = AUTHOR -// Aniruddha Gokhale -// -// ============================================================================ - -#ifndef _BE_VISITOR_STRUCTURE_STRUCTURE_H_ -#define _BE_VISITOR_STRUCTURE_STRUCTURE_H_ - -class be_visitor_structure : public be_visitor_scope -{ - // - // = TITLE - // be_visitor_structure - // - // = DESCRIPTION - // This is the base visitor for structure - // - // -public: - be_visitor_structure (be_visitor_context *ctx); - // constructureor - - ~be_visitor_structure (void); - // destructureor - - virtual int visit_structure (be_structure *node); - // visit structure. We provide code for this method in the derived class - - // =visit operations on syntactically valid elements in our scope - - virtual int visit_field (be_field *node); - // visit field -}; - -#endif /* _BE_VISITOR_STRUCTURE_STRUCTURE_H_ */ diff --git a/TAO/TAO_IDL/be_include/be_visitor_structure/structure_ch.h b/TAO/TAO_IDL/be_include/be_visitor_structure/structure_ch.h deleted file mode 100644 index 1ec6f9d6ccb..00000000000 --- a/TAO/TAO_IDL/be_include/be_visitor_structure/structure_ch.h +++ /dev/null @@ -1,48 +0,0 @@ -/* -*- c++ -*- */ -// -// $Id$ -// - -// ============================================================================ -// -// = LIBRARY -// TAO IDL -// -// = FILENAME -// structure_ch.h -// -// = DESCRIPTION -// Concrete visitor for the Structure class -// This one provides code generation for the structure in the client header. -// -// = AUTHOR -// Aniruddha Gokhale -// -// ============================================================================ - -#ifndef _BE_VISITOR_STRUCTURE_STRUCTURE_CH_H_ -#define _BE_VISITOR_STRUCTURE_STRUCTURE_CH_H_ - -class be_visitor_structure_ch : public be_visitor_structure -{ - // - // = TITLE - // be_visitor_structure_ch - // - // = DESCRIPTION - // This is a concrete visitor to generate the client header for structure - // - // -public: - be_visitor_structure_ch (be_visitor_context *ctx); - // constructureor - - ~be_visitor_structure_ch (void); - // destructureor - - virtual int visit_structure (be_structure *node); - // visit structure. We provide code for this method in the derived class - -}; - -#endif /* _BE_VISITOR_STRUCTURE_STRUCTURE_CH_H_ */ diff --git a/TAO/TAO_IDL/be_include/be_visitor_structure/structure_ci.h b/TAO/TAO_IDL/be_include/be_visitor_structure/structure_ci.h deleted file mode 100644 index 8665832e078..00000000000 --- a/TAO/TAO_IDL/be_include/be_visitor_structure/structure_ci.h +++ /dev/null @@ -1,48 +0,0 @@ -/* -*- c++ -*- */ -// -// $Id$ -// - -// ============================================================================ -// -// = LIBRARY -// TAO IDL -// -// = FILENAME -// structure_ci.h -// -// = DESCRIPTION -// Concrete visitor for the Structure class -// This one provides code generation for the structure in the client inline. -// -// = AUTHOR -// Aniruddha Gokhale -// -// ============================================================================ - -#ifndef _BE_VISITOR_STRUCTURE_STRUCTURE_CI_H_ -#define _BE_VISITOR_STRUCTURE_STRUCTURE_CI_H_ - -class be_visitor_structure_ci : public be_visitor_structure -{ - // - // = TITLE - // be_visitor_structure_ci - // - // = DESCRIPTION - // This is a concrete visitor to generate the client inline for structure - // - // -public: - be_visitor_structure_ci (be_visitor_context *ctx); - // constructureor - - ~be_visitor_structure_ci (void); - // destructureor - - virtual int visit_structure (be_structure *node); - // visit structure. We provide code for this method in the derived class - -}; - -#endif /* _BE_VISITOR_STRUCTURE_STRUCTURE_CI_H_ */ diff --git a/TAO/TAO_IDL/be_include/be_visitor_structure/structure_cs.h b/TAO/TAO_IDL/be_include/be_visitor_structure/structure_cs.h deleted file mode 100644 index bf4adfa0000..00000000000 --- a/TAO/TAO_IDL/be_include/be_visitor_structure/structure_cs.h +++ /dev/null @@ -1,48 +0,0 @@ -/* -*- c++ -*- */ -// -// $Id$ -// - -// ============================================================================ -// -// = LIBRARY -// TAO IDL -// -// = FILENAME -// structure_cs.h -// -// = DESCRIPTION -// Concrete visitor for the Structure class -// This one provides code generation for the structure in the client stubs. -// -// = AUTHOR -// Aniruddha Gokhale -// -// ============================================================================ - -#ifndef _BE_VISITOR_STRUCTURE_STRUCTURE_CS_H_ -#define _BE_VISITOR_STRUCTURE_STRUCTURE_CS_H_ - -class be_visitor_structure_cs : public be_visitor_structure -{ - // - // = TITLE - // be_visitor_structure_cs - // - // = DESCRIPTION - // This is a concrete visitor to generate the client stubs for structure - // - // -public: - be_visitor_structure_cs (be_visitor_context *ctx); - // constructor - - ~be_visitor_structure_cs (void); - // destructor - - virtual int visit_structure (be_structure *node); - // visit structure. - -}; - -#endif /* _BE_VISITOR_STRUCTURE_STRUCTURE_CS_H_ */ diff --git a/TAO/TAO_IDL/be_include/be_visitor_typecode.h b/TAO/TAO_IDL/be_include/be_visitor_typecode.h deleted file mode 100644 index c6d623cf5a0..00000000000 --- a/TAO/TAO_IDL/be_include/be_visitor_typecode.h +++ /dev/null @@ -1,32 +0,0 @@ -/* -*- c++ -*- */ -// -// $Id$ -// - -// ============================================================================ -// -// = LIBRARY -// TAO IDL -// -// = FILENAME -// be_visitor_typecode.h -// -// = DESCRIPTION -// Concrete visitor to generate code for TypeCodes -// -// = AUTHOR -// Aniruddha Gokhale -// -// ============================================================================ - -#ifndef TAO_BE_VISITOR_TYPECODE_H -#define TAO_BE_VISITOR_TYPECODE_H - -#include "be_visitor_decl.h" -#include "be_visitor_scope.h" - -#include "be_visitor_typecode/typecode_decl.h" -#include "be_visitor_typecode/typecode_defn.h" - - -#endif /* TAO_BE_VISITOR_TYPECODE_H */ diff --git a/TAO/TAO_IDL/be_include/be_visitor_typecode/typecode_decl.h b/TAO/TAO_IDL/be_include/be_visitor_typecode/typecode_decl.h deleted file mode 100644 index 85e3f6bcea4..00000000000 --- a/TAO/TAO_IDL/be_include/be_visitor_typecode/typecode_decl.h +++ /dev/null @@ -1,74 +0,0 @@ -/* -*- c++ -*- */ -// -// $Id$ -// - -// ============================================================================ -// -// = LIBRARY -// TAO IDL -// -// = FILENAME -// typecode_decl.h -// -// = DESCRIPTION -// Concrete visitor for the generation of TypeCodes. -// This one generates the declaration. -// -// = AUTHOR -// Aniruddha Gokhale -// -// ============================================================================ - -#ifndef _BE_VISITOR_TYPECODE_TYPECODE_DECL_H_ -#define _BE_VISITOR_TYPECODE_TYPECODE_DECL_H_ - -class be_visitor_typecode_decl : public be_visitor_decl -{ - // - // = TITLE - // be_visitor_typecode_decl - // - // = DESCRIPTION - // This is a concrete visitor for generating TypeCode declarations - // - -public: - be_visitor_typecode_decl (be_visitor_context *ctx); - // constructor - - ~be_visitor_typecode_decl (void); - // destructor - - virtual int visit_type (be_type *node); - // visit a generic be_type node - - // =visit methods on all types. They call the generic visit_type - - virtual int visit_array (be_array *node); - // visit a array - - virtual int visit_enum (be_enum *node); - // visit an enum - - virtual int visit_exception (be_exception *node); - // visit an enum - - virtual int visit_interface (be_interface *node); - // visit interface - - virtual int visit_sequence (be_sequence *node); - // visit a sequence - - virtual int visit_structure (be_structure *node); - // visit a structure - - virtual int visit_typedef (be_typedef *node); - // visit a typedef - - virtual int visit_union (be_union *node); - // visit a union - -}; - -#endif /* _BE_VISITOR_TYPECODE_TYPECODE_DECL_H_ */ diff --git a/TAO/TAO_IDL/be_include/be_visitor_typecode/typecode_defn.h b/TAO/TAO_IDL/be_include/be_visitor_typecode/typecode_defn.h deleted file mode 100644 index 601300e9703..00000000000 --- a/TAO/TAO_IDL/be_include/be_visitor_typecode/typecode_defn.h +++ /dev/null @@ -1,288 +0,0 @@ -/* -*- c++ -*- */ -// -// $Id$ -// - -// ============================================================================ -// -// = LIBRARY -// TAO IDL -// -// = FILENAME -// typecode_defn.h -// -// = DESCRIPTION -// Concrete visitor for the generation of TypeCodes. -// This one generates the definitions. -// -// = AUTHOR -// Aniruddha Gokhale -// -// ============================================================================ - -#ifndef _BE_VISITOR_TYPECODE_TYPECODE_DEFN_H_ -#define _BE_VISITOR_TYPECODE_TYPECODE_DEFN_H_ - -#include "be_visitor_scope.h" - -const int TAO_BE_VISITOR_TYPECODE_DEFN_MAX_STACK_SIZE = 1024; - -class be_visitor_typecode_defn : public be_visitor_scope -{ - // - // = TITLE - // be_visitor_typecode_defn - // - // = DESCRIPTION - // This is a concrete visitor for generating TypeCode definitions - // - -public: - be_visitor_typecode_defn (be_visitor_context *ctx); - // constructor - - ~be_visitor_typecode_defn (void); - // destructor - - virtual int visit_type (be_type *node); - // visit a generic be_type node - - // =visit methods on all types. They call the generic visit_type - - virtual int visit_array (be_array *node); - // visit a array - - virtual int visit_enum (be_enum *node); - // visit an enum - - virtual int visit_exception (be_exception *node); - // visit an enum - - virtual int visit_interface (be_interface *node); - // visit interface - - virtual int visit_interface_fwd (be_interface_fwd *node); - // visit interface - - virtual int visit_predefined_type (be_predefined_type *node); - // visit predefined types - - virtual int visit_sequence (be_sequence *node); - // visit a sequence - - virtual int visit_string (be_string *node); - // visit a structure - - virtual int visit_structure (be_structure *node); - // visit a structure - - virtual int visit_typedef (be_typedef *node); - // visit a typedef - - virtual int visit_union (be_union *node); - // visit a union - - // = visit methods for the scope elements - - virtual int visit_enum_val (be_enum_val *node); - // visit the enumeration values - - virtual int visit_field (be_field *node); - // visit the field (struct and exception member) - - virtual int visit_union_branch (be_union_branch *node); - // visit the union member - - // = special methods - - virtual int gen_nested_namespace_begin (be_module *node); - // generate the nested namespace begins - - virtual int gen_nested_namespace_end (be_module *node); - // generate the nested namespace ends - - // = methods for generating typecodes - - int gen_typecode (be_array *node); - - int gen_typecode (be_enum *node); - - int gen_typecode (be_exception *node); - - int gen_typecode (be_interface *node); - - int gen_typecode (be_interface_fwd *node); - - int gen_typecode (be_predefined_type *node); - - int gen_typecode (be_sequence *node); - - int gen_typecode (be_string *node); - - int gen_typecode (be_structure *node); - - int gen_typecode (be_typedef *node); - - int gen_typecode (be_union *node); - - // = methods to generate encapsulations for typecodes - - int gen_encapsulation (be_array *node); - - int gen_encapsulation (be_enum *node); - - int gen_encapsulation (be_enum_val *node); - - int gen_encapsulation (be_exception *node); - - int gen_encapsulation (be_field *node); - - int gen_encapsulation (be_interface *node); - - int gen_encapsulation (be_interface_fwd *node); - - int gen_encapsulation (be_predefined_type *node); - - int gen_encapsulation (be_sequence *node); - - int gen_encapsulation (be_string *node); - - int gen_encapsulation (be_structure *node); - - int gen_encapsulation (be_typedef *node); - - int gen_encapsulation (be_union *node); - - int gen_encapsulation (be_union_branch *node); - - // = methods for computing typecode sizes - - ACE_CDR::Long compute_tc_size (be_array *node); - - ACE_CDR::Long compute_tc_size (be_enum *node); - - ACE_CDR::Long compute_tc_size (be_exception *node); - - ACE_CDR::Long compute_tc_size (be_interface *node); - - ACE_CDR::Long compute_tc_size (be_interface_fwd *node); - - ACE_CDR::Long compute_tc_size (be_predefined_type *node); - - ACE_CDR::Long compute_tc_size (be_sequence *node); - - ACE_CDR::Long compute_tc_size (be_string *node); - - ACE_CDR::Long compute_tc_size (be_structure *node); - - ACE_CDR::Long compute_tc_size (be_typedef *node); - - ACE_CDR::Long compute_tc_size (be_union *node); - - // methods for computing the encapsulation length - - ACE_CDR::Long compute_encap_length (be_array *node); - - ACE_CDR::Long compute_encap_length (be_enum *node); - - ACE_CDR::Long compute_encap_length (be_enum_val *node); - - ACE_CDR::Long compute_encap_length (be_exception *node); - - ACE_CDR::Long compute_encap_length (be_field *node); - - ACE_CDR::Long compute_encap_length (be_interface *node); - - ACE_CDR::Long compute_encap_length (be_interface_fwd *node); - - ACE_CDR::Long compute_encap_length (be_predefined_type *node); - - ACE_CDR::Long compute_encap_length (be_sequence *node); - - ACE_CDR::Long compute_encap_length (be_string *node); - - ACE_CDR::Long compute_encap_length (be_structure *node); - - ACE_CDR::Long compute_encap_length (be_typedef *node); - - ACE_CDR::Long compute_encap_length (be_union *node); - - ACE_CDR::Long compute_encap_length (be_union_branch *node); - - // helpers to generate the repoID and name - - void gen_repoID (be_decl *node); - - void gen_name (be_decl *node); - - // helpers to generate encap len of the repoID and name - - ACE_CDR::ULong repoID_encap_len (be_decl *node); - - ACE_CDR::ULong name_encap_len (be_decl *node); - - // helper to get an array of long from a name - - int tc_name2long (const char *name, - ACE_CDR::ULong *&larr, - ACE_CDR::ULong &arrlen); - - // processing for scopes - - virtual int post_process (be_decl *); - // do any processing after every element except the last one of the scope is - // processed - - // data structure for handling recursive and repeated typecodes - - struct QNode - { - be_type *node; - ACE_CDR::Long offset; - }; - -private: - - ACE_CDR::Long computed_tc_size_; - // the tc size of the node under consideration - - ACE_CDR::Long computed_encap_len_; - // the encap length of the node under consideration - - ACE_CDR::Long computed_scope_encap_len_; - // the encap length of the scope of the node under consideration - - // the following are used for recursive and repeated typecodes - - ACE_CDR::Long tc_offset_; - // current computed length of the typecode - - ACE_Unbounded_Queue <QNode*> tc_queue_; - // queue to keep nodes - - ACE_Unbounded_Queue <QNode*> compute_queue_; - // queue to keep nodes - - ACE_CDR::Long scope_stack_ [TAO_BE_VISITOR_TYPECODE_DEFN_MAX_STACK_SIZE]; - // stores scope lens during computation - - // scope related routines - - int index_; - - int push (ACE_CDR::Long); - - int pop (ACE_CDR::Long &); - - // queue related routines - - const QNode *queue_insert (ACE_Unbounded_Queue <QNode*> &, - be_type *node, ACE_CDR::Long offset); - - const QNode *queue_lookup (ACE_Unbounded_Queue <QNode*> &, be_type *node); - - void queue_reset (ACE_Unbounded_Queue <QNode*> &); - -}; - -#endif /* _BE_VISITOR_TYPECODE_TYPECODE_DEFN_H_ */ diff --git a/TAO/TAO_IDL/be_include/be_visitor_typedef.h b/TAO/TAO_IDL/be_include/be_visitor_typedef.h deleted file mode 100644 index 05524ceecbe..00000000000 --- a/TAO/TAO_IDL/be_include/be_visitor_typedef.h +++ /dev/null @@ -1,40 +0,0 @@ -/* -*- c++ -*- */ -// -// $Id$ -// - -// ============================================================================ -// -// = LIBRARY -// TAO IDL -// -// = FILENAME -// be_visitor_typedef.h -// -// = DESCRIPTION -// Concrete visitor for the Typedef class -// -// = AUTHOR -// Aniruddha Gokhale -// -// ============================================================================ - -#ifndef TAO_BE_VISITOR_TYPEDEF_H -#define TAO_BE_VISITOR_TYPEDEF_H - -#include "be_visitor.h" -#include "be_visitor_scope.h" - -// generic visitor -#include "be_visitor_typedef/typedef.h" -// concrete visitors -#include "be_visitor_typedef/typedef_ch.h" -#include "be_visitor_typedef/typedef_ci.h" -#include "be_visitor_typedef/typedef_cs.h" -#include "be_visitor_typedef/any_op_ch.h" -#include "be_visitor_typedef/any_op_cs.h" -#include "be_visitor_typedef/cdr_op_ch.h" -#include "be_visitor_typedef/cdr_op_ci.h" -#include "be_visitor_typedef/cdr_op_cs.h" - -#endif // TAO_BE_VISITOR_TYPEDEF_H diff --git a/TAO/TAO_IDL/be_include/be_visitor_typedef/any_op_ch.h b/TAO/TAO_IDL/be_include/be_visitor_typedef/any_op_ch.h deleted file mode 100644 index a614a30f71a..00000000000 --- a/TAO/TAO_IDL/be_include/be_visitor_typedef/any_op_ch.h +++ /dev/null @@ -1,69 +0,0 @@ - -/* -*- c++ -*- */ -// -// $Id$ -// - -// ============================================================================ -// -// = LIBRARY -// TAO IDL -// -// = FILENAME -// any_op_ch.h -// -// = DESCRIPTION -// Concrete visitor for the Typedef class -// This provides the code generation for the Any operators of the Typedef -// class in the client header. -// -// = AUTHOR -// Aniruddha Gokhale -// -// ============================================================================ - -#ifndef _BE_VISITOR_TYPEDEF_ANY_OP_CH_H_ -#define _BE_VISITOR_TYPEDEF_ANY_OP_CH_H_ - -class be_visitor_typedef_any_op_ch : public be_visitor_typedef -{ - // - // = TITLE - // be_visitor_typedef_any_op_ch - // - // = DESCRIPTION - // This is a concrete visitor for typedef that generates the Any operator - // declarations and implementations - // - -public: - be_visitor_typedef_any_op_ch (be_visitor_context *ctx); - // constructor - - ~be_visitor_typedef_any_op_ch (void); - // destructor - - virtual int visit_typedef (be_typedef *node); - // visit typedef - - // =visit methods on all elements syntactically valid as types that can be - // typedefed. - - virtual int visit_array (be_array *node); - // visit a array - - virtual int visit_enum (be_enum *node); - // visit an enum - - virtual int visit_sequence (be_sequence *node); - // visit a sequence - - virtual int visit_structure (be_structure *node); - // visit a structure - - virtual int visit_union (be_union *node); - // visit a union - -}; - -#endif /* _BE_VISITOR_TYPEDEF_ANY_OP_CH_H_*/ diff --git a/TAO/TAO_IDL/be_include/be_visitor_typedef/any_op_cs.h b/TAO/TAO_IDL/be_include/be_visitor_typedef/any_op_cs.h deleted file mode 100644 index f99033d4f43..00000000000 --- a/TAO/TAO_IDL/be_include/be_visitor_typedef/any_op_cs.h +++ /dev/null @@ -1,69 +0,0 @@ - -/* -*- c++ -*- */ -// -// $Id$ -// - -// ============================================================================ -// -// = LIBRARY -// TAO IDL -// -// = FILENAME -// any_op_cs.h -// -// = DESCRIPTION -// Concrete visitor for the Typedef class -// This provides the code generation for the Any operators of the Typedef -// class in the client stubs. -// -// = AUTHOR -// Aniruddha Gokhale -// -// ============================================================================ - -#ifndef _BE_VISITOR_TYPEDEF_ANY_OP_CS_H_ -#define _BE_VISITOR_TYPEDEF_ANY_OP_CS_H_ - -class be_visitor_typedef_any_op_cs : public be_visitor_typedef -{ - // - // = TITLE - // be_visitor_typedef_any_op_cs - // - // = DESCRIPTION - // This is a concrete visitor for typedef that generates the Any operator - // declarations and implementations - // - -public: - be_visitor_typedef_any_op_cs (be_visitor_context *ctx); - // constructor - - ~be_visitor_typedef_any_op_cs (void); - // destructor - - virtual int visit_typedef (be_typedef *node); - // visit typedef - - // =visit methods on all elements syntactically valid as types that can be - // typedefed. - - virtual int visit_array (be_array *node); - // visit a array - - virtual int visit_enum (be_enum *node); - // visit an enum - - virtual int visit_sequence (be_sequence *node); - // visit a sequence - - virtual int visit_structure (be_structure *node); - // visit a structure - - virtual int visit_union (be_union *node); - // visit a union - -}; - -#endif /* _BE_VISITOR_TYPEDEF_ANY_OP_CS_H_*/ diff --git a/TAO/TAO_IDL/be_include/be_visitor_typedef/cdr_op_ch.h b/TAO/TAO_IDL/be_include/be_visitor_typedef/cdr_op_ch.h deleted file mode 100644 index 0cb82ce2ff0..00000000000 --- a/TAO/TAO_IDL/be_include/be_visitor_typedef/cdr_op_ch.h +++ /dev/null @@ -1,68 +0,0 @@ -/* -*- c++ -*- */ -// -// $Id$ -// - -// ============================================================================ -// -// = LIBRARY -// TAO IDL -// -// = FILENAME -// cdr_op_ch.h -// -// = DESCRIPTION -// Concrete visitor for the Typedef class -// This provides the code generation for the CDR operators of the Typedef -// class in the client header. -// -// = AUTHOR -// Aniruddha Gokhale -// -// ============================================================================ - -#ifndef _BE_VISITOR_TYPEDEF_CDR_OP_CH_H_ -#define _BE_VISITOR_TYPEDEF_CDR_OP_CH_H_ - -class be_visitor_typedef_cdr_op_ch : public be_visitor_typedef -{ - // - // = TITLE - // be_visitor_typedef_cdr_op_ch - // - // = DESCRIPTION - // This is a concrete visitor for typedef that generates the CDR operator - // declarations and implementations - // - -public: - be_visitor_typedef_cdr_op_ch (be_visitor_context *ctx); - // constructor - - ~be_visitor_typedef_cdr_op_ch (void); - // destructor - - virtual int visit_typedef (be_typedef *node); - // visit typedef - - // =visit methods on all elements syntactically valid as types that can be - // typedefed. - - virtual int visit_array (be_array *node); - // visit a array - - virtual int visit_enum (be_enum *node); - // visit an enum - - virtual int visit_sequence (be_sequence *node); - // visit a sequence - - virtual int visit_structure (be_structure *node); - // visit a structure - - virtual int visit_union (be_union *node); - // visit a union - -}; - -#endif /* _BE_VISITOR_TYPEDEF_CDR_OP_CH_H_*/ diff --git a/TAO/TAO_IDL/be_include/be_visitor_typedef/cdr_op_ci.h b/TAO/TAO_IDL/be_include/be_visitor_typedef/cdr_op_ci.h deleted file mode 100644 index 26d8f6ee546..00000000000 --- a/TAO/TAO_IDL/be_include/be_visitor_typedef/cdr_op_ci.h +++ /dev/null @@ -1,68 +0,0 @@ -/* -*- c++ -*- */ -// -// $Id$ -// - -// ============================================================================ -// -// = LIBRARY -// TAO IDL -// -// = FILENAME -// cdr_op_ci.h -// -// = DESCRIPTION -// Concrete visitor for the Typedef class -// This provides the code generation for the CDR operators of the Typedef -// class in the client stubs. -// -// = AUTHOR -// Aniruddha Gokhale -// -// ============================================================================ - -#ifndef _BE_VISITOR_TYPEDEF_CDR_OP_CI_H_ -#define _BE_VISITOR_TYPEDEF_CDR_OP_CI_H_ - -class be_visitor_typedef_cdr_op_ci : public be_visitor_typedef -{ - // - // = TITLE - // be_visitor_typedef_cdr_op_ci - // - // = DESCRIPTION - // This is a concrete visitor for typedef that generates the CDR operator - // declarations and implementations - // - -public: - be_visitor_typedef_cdr_op_ci (be_visitor_context *ctx); - // constructor - - ~be_visitor_typedef_cdr_op_ci (void); - // destructor - - virtual int visit_typedef (be_typedef *node); - // visit typedef - - // =visit methods on all elements syntactically valid as types that can be - // typedefed. - - virtual int visit_array (be_array *node); - // visit a array - - virtual int visit_enum (be_enum *node); - // visit an enum - - virtual int visit_sequence (be_sequence *node); - // visit a sequence - - virtual int visit_structure (be_structure *node); - // visit a structure - - virtual int visit_union (be_union *node); - // visit a union - -}; - -#endif /* _BE_VISITOR_TYPEDEF_CDR_OP_CI_H_*/ diff --git a/TAO/TAO_IDL/be_include/be_visitor_typedef/cdr_op_cs.h b/TAO/TAO_IDL/be_include/be_visitor_typedef/cdr_op_cs.h deleted file mode 100644 index 742ce34fd08..00000000000 --- a/TAO/TAO_IDL/be_include/be_visitor_typedef/cdr_op_cs.h +++ /dev/null @@ -1,68 +0,0 @@ -/* -*- c++ -*- */ -// -// $Id$ -// - -// ============================================================================ -// -// = LIBRARY -// TAO IDL -// -// = FILENAME -// cdr_op_cs.h -// -// = DESCRIPTION -// Concrete visitor for the Typedef class -// This provides the code generation for the CDR operators of the Typedef -// class in the client stubs. -// -// = AUTHOR -// Aniruddha Gokhale -// -// ============================================================================ - -#ifndef _BE_VISITOR_TYPEDEF_CDR_OP_CS_H_ -#define _BE_VISITOR_TYPEDEF_CDR_OP_CS_H_ - -class be_visitor_typedef_cdr_op_cs : public be_visitor_typedef -{ - // - // = TITLE - // be_visitor_typedef_cdr_op_cs - // - // = DESCRIPTION - // This is a concrete visitor for typedef that generates the CDR operator - // declarations and implementations - // - -public: - be_visitor_typedef_cdr_op_cs (be_visitor_context *ctx); - // constructor - - ~be_visitor_typedef_cdr_op_cs (void); - // destructor - - virtual int visit_typedef (be_typedef *node); - // visit typedef - - // =visit methods on all elements syntactically valid as types that can be - // typedefed. - - virtual int visit_array (be_array *node); - // visit a array - - virtual int visit_enum (be_enum *node); - // visit an enum - - virtual int visit_sequence (be_sequence *node); - // visit a sequence - - virtual int visit_structure (be_structure *node); - // visit a structure - - virtual int visit_union (be_union *node); - // visit a union - -}; - -#endif /* _BE_VISITOR_TYPEDEF_CDR_OP_CS_H_*/ diff --git a/TAO/TAO_IDL/be_include/be_visitor_typedef/typedef.h b/TAO/TAO_IDL/be_include/be_visitor_typedef/typedef.h deleted file mode 100644 index d0d1b297ae2..00000000000 --- a/TAO/TAO_IDL/be_include/be_visitor_typedef/typedef.h +++ /dev/null @@ -1,72 +0,0 @@ -/* -*- c++ -*- */ -// -// $Id$ -// - -// ============================================================================ -// -// = LIBRARY -// TAO IDL -// -// = FILENAME -// typedef.h -// -// = DESCRIPTION -// Concrete visitor for the Typedef class -// This provides the generic visitors for the Typedef class. -// -// = AUTHOR -// Aniruddha Gokhale -// -// ============================================================================ - -#ifndef _BE_VISITOR_TYPEDEF_TYPEDEF_H_ -#define _BE_VISITOR_TYPEDEF_TYPEDEF_H_ - -class be_visitor_typedef : public be_visitor_decl -{ - // - // = TITLE - // be_visitor_typedef - // - // = DESCRIPTION - // This is a concrete visitor for typedef that abstracts all common tasks - // - -public: - be_visitor_typedef (be_visitor_context *ctx); - // constructor - - ~be_visitor_typedef (void); - // destructor - - virtual int visit_typedef (be_typedef *node); - // must be overridden - - // =visit methods on all elements syntactically valid as types that can be - // typedefed. - - virtual int visit_array (be_array *node); - // visit a array - - virtual int visit_enum (be_enum *node); - // visit an enum - - virtual int visit_predefined_type (be_predefined_type *node); - // visit predefined type node - - virtual int visit_string (be_string *node); - // visit a typedef - - virtual int visit_sequence (be_sequence *node); - // visit a sequence - - virtual int visit_structure (be_structure *node); - // visit a structure - - virtual int visit_union (be_union *node); - // visit a union - -}; - -#endif /* _BE_VISITOR_TYPEDEF_TYPEDEF_H_ */ diff --git a/TAO/TAO_IDL/be_include/be_visitor_typedef/typedef_ch.h b/TAO/TAO_IDL/be_include/be_visitor_typedef/typedef_ch.h deleted file mode 100644 index eda0adf5441..00000000000 --- a/TAO/TAO_IDL/be_include/be_visitor_typedef/typedef_ch.h +++ /dev/null @@ -1,76 +0,0 @@ -/* -*- c++ -*- */ -// -// $Id$ -// - -// ============================================================================ -// -// = LIBRARY -// TAO IDL -// -// = FILENAME -// typedef_ch.h -// -// = DESCRIPTION -// Concrete visitor for the Typedef class -// This provides the code generation for the Typedef class in the client -// header. -// -// = AUTHOR -// Aniruddha Gokhale -// -// ============================================================================ - -#ifndef _BE_VISITOR_TYPEDEF_TYPEDEF_CH_H_ -#define _BE_VISITOR_TYPEDEF_TYPEDEF_CH_H_ - -class be_visitor_typedef_ch : public be_visitor_typedef -{ - // - // = TITLE - // be_visitor_typedef_ch - // - // = DESCRIPTION - // This is a concrete visitor to generate the client header for typedef - // - // -public: - be_visitor_typedef_ch (be_visitor_context *ctx); - // constructor - - ~be_visitor_typedef_ch (void); - // destructor - - virtual int visit_typedef (be_typedef *node); - // visit typedef. We provide code for this method in the derived class - - // =visit methods on all elements syntactically valid as types that can be - // typedefed. - - virtual int visit_array (be_array *node); - // visit a array - - virtual int visit_enum (be_enum *node); - // visit an enum - - virtual int visit_interface (be_interface *node); - // visit an interface; - - virtual int visit_predefined_type (be_predefined_type *node); - // visit predefined type node - - virtual int visit_string (be_string *node); - // visit a typedef - - virtual int visit_sequence (be_sequence *node); - // visit a sequence - - virtual int visit_structure (be_structure *node); - // visit a structure - - virtual int visit_union (be_union *node); - // visit a union - -}; - -#endif /* _BE_VISITOR_TYPEDEF_TYPEDEF_CH_H_ */ diff --git a/TAO/TAO_IDL/be_include/be_visitor_typedef/typedef_ci.h b/TAO/TAO_IDL/be_include/be_visitor_typedef/typedef_ci.h deleted file mode 100644 index 9f308d33d52..00000000000 --- a/TAO/TAO_IDL/be_include/be_visitor_typedef/typedef_ci.h +++ /dev/null @@ -1,65 +0,0 @@ - -/* -*- c++ -*- */ -// -// $Id$ -// - -// ============================================================================ -// -// = LIBRARY -// TAO IDL -// -// = FILENAME -// typedef_ci.h -// -// = DESCRIPTION -// Concrete visitor for the Typedef class -// This provides the code generation for the Typedef class in the client -// inline. -// -// = AUTHOR -// Aniruddha Gokhale -// -// ============================================================================ - -#ifndef _BE_VISITOR_TYPEDEF_TYPEDEF_CI_H_ -#define _BE_VISITOR_TYPEDEF_TYPEDEF_CI_H_ - -class be_visitor_typedef_ci : public be_visitor_typedef -{ - // - // = TITLE - // be_visitor_typedef_sh - // - // = DESCRIPTION - // This is a concrete visitor to generate the server header for typedef - // - // -public: - be_visitor_typedef_ci (be_visitor_context *ctx); - // constructor - - ~be_visitor_typedef_ci (void); - // destructor - - virtual int visit_typedef (be_typedef *node); - // visit typedef. We provide code for this method in the derived class - - // =visit methods on all elements syntactically valid as types that can be - // typedefed. - - virtual int visit_array (be_array *node); - // visit a array - - virtual int visit_sequence (be_sequence *node); - // visit a sequence - - virtual int visit_structure (be_structure *node); - // visit a structure - - virtual int visit_union (be_union *node); - // visit a union - -}; - -#endif /* _BE_VISITOR_TYPEDEF_TYPEDEF_CI_H_*/ diff --git a/TAO/TAO_IDL/be_include/be_visitor_typedef/typedef_cs.h b/TAO/TAO_IDL/be_include/be_visitor_typedef/typedef_cs.h deleted file mode 100644 index a546de4c38d..00000000000 --- a/TAO/TAO_IDL/be_include/be_visitor_typedef/typedef_cs.h +++ /dev/null @@ -1,50 +0,0 @@ - -/* -*- c++ -*- */ -// -// $Id$ -// - -// ============================================================================ -// -// = LIBRARY -// TAO IDL -// -// = FILENAME -// typedef_cs.h -// -// = DESCRIPTION -// Concrete visitor for the Typedef class -// This provides the code generation for the Typedef class in the client -// stubs. -// -// = AUTHOR -// Aniruddha Gokhale -// -// ============================================================================ - -#ifndef _BE_VISITOR_TYPEDEF_TYPEDEF_CS_H_ -#define _BE_VISITOR_TYPEDEF_TYPEDEF_CS_H_ - -class be_visitor_typedef_cs : public be_visitor_typedef -{ - // - // = TITLE - // be_visitor_typedef_cs - // - // = DESCRIPTION - // This is a concrete visitor to generate the server header for typedef - // - // -public: - be_visitor_typedef_cs (be_visitor_context *ctx); - // constructor - - ~be_visitor_typedef_cs (void); - // destructor - - virtual int visit_typedef (be_typedef *node); - // visit typedef. We provide code for this method in the derived class - -}; - -#endif /* _BE_VISITOR_TYPEDEF_TYPEDEF_CS_H_*/ diff --git a/TAO/TAO_IDL/be_include/be_visitor_union.h b/TAO/TAO_IDL/be_include/be_visitor_union.h deleted file mode 100644 index 2d3489a5798..00000000000 --- a/TAO/TAO_IDL/be_include/be_visitor_union.h +++ /dev/null @@ -1,43 +0,0 @@ -/* -*- c++ -*- */ -// -// $Id$ -// - -// ============================================================================ -// -// = LIBRARY -// TAO IDL -// -// = FILENAME -// be_visitor_union.h -// -// = DESCRIPTION -// Concrete visitor for the Union class -// -// = AUTHOR -// Aniruddha Gokhale -// -// ============================================================================ - -#ifndef TAO_BE_VISITOR_UNION_H -#define TAO_BE_VISITOR_UNION_H - -#include "be_visitor.h" -#include "be_visitor_scope.h" - -// generic visitor -#include "be_visitor_union/union.h" -// concrete visitors -#include "be_visitor_union/union_ch.h" -#include "be_visitor_union/union_ci.h" -#include "be_visitor_union/union_cs.h" -#include "be_visitor_union/discriminant_ch.h" -#include "be_visitor_union/discriminant_ci.h" -#include "be_visitor_union/discriminant_cs.h" -#include "be_visitor_union/any_op_ch.h" -#include "be_visitor_union/any_op_cs.h" -#include "be_visitor_union/cdr_op_ch.h" -#include "be_visitor_union/cdr_op_ci.h" -#include "be_visitor_union/cdr_op_cs.h" - -#endif // TAO_BE_VISITOR_UNION_H diff --git a/TAO/TAO_IDL/be_include/be_visitor_union/any_op_ch.h b/TAO/TAO_IDL/be_include/be_visitor_union/any_op_ch.h deleted file mode 100644 index 20d7ed97b4f..00000000000 --- a/TAO/TAO_IDL/be_include/be_visitor_union/any_op_ch.h +++ /dev/null @@ -1,52 +0,0 @@ -/* -*- c++ -*- */ -// -// $Id$ -// - -// ============================================================================ -// -// = LIBRARY -// TAO IDL -// -// = FILENAME -// any_op_ch.h -// -// = DESCRIPTION -// Visitor for the Union class. -// This one generates code for the Any operators for the Union in the client -// header. -// -// = AUTHOR -// Aniruddha Gokhale -// -// ============================================================================ - -#ifndef _BE_VISITOR_UNION_ANY_OP_CH_H_ -#define _BE_VISITOR_UNION_ANY_OP_CH_H_ - -class be_visitor_union_any_op_ch : public be_visitor_union -{ - // - // = TITLE - // be_visitor_union_any_op_ch - // - // = DESCRIPTION - // This is a concrete visitor for union that generates the Any operator - // declarations - // - -public: - be_visitor_union_any_op_ch (be_visitor_context *ctx); - // constructor - - ~be_visitor_union_any_op_ch (void); - // destructor - - virtual int visit_union (be_union *node); - // visit union - - virtual int visit_union_branch (be_union_branch *node); - // visit union_branch -}; - -#endif /* _BE_VISITOR_UNION_ANY_OP_CH_H_ */ diff --git a/TAO/TAO_IDL/be_include/be_visitor_union/any_op_cs.h b/TAO/TAO_IDL/be_include/be_visitor_union/any_op_cs.h deleted file mode 100644 index 05e6192d346..00000000000 --- a/TAO/TAO_IDL/be_include/be_visitor_union/any_op_cs.h +++ /dev/null @@ -1,108 +0,0 @@ -/* -*- c++ -*- */ -// -// $Id$ -// - -// ============================================================================ -// -// = LIBRARY -// TAO IDL -// -// = FILENAME -// any_op_cs.h -// -// = DESCRIPTION -// Visitor for the Union class. -// This one generates code for the Any operators for the Union in the client -// header. -// -// = AUTHOR -// Aniruddha Gokhale -// -// ============================================================================ - -#ifndef _BE_VISITOR_UNION_ANY_OP_CS_H_ -#define _BE_VISITOR_UNION_ANY_OP_CS_H_ - -class be_visitor_union_any_op_cs : public be_visitor_union -{ - // - // = TITLE - // be_visitor_union_any_op_cs - // - // = DESCRIPTION - // This is a base class for the visitors generate the Any - // operator implementations - // - -public: - be_visitor_union_any_op_cs (be_visitor_context *ctx); - // constructor - - ~be_visitor_union_any_op_cs (void); - // destructor - - // template methods that the derived visitors must implement. - // They generate the body for the insertion and extraction - // operators. - virtual int gen_insertion_nocopy (TAO_OutStream* os, - be_union *node) = 0; - virtual int gen_insertion (TAO_OutStream* os, - be_union *node) = 0; - virtual int gen_extraction (TAO_OutStream* os, - be_union *node) = 0; - - // = The be_visitor methods. - virtual int visit_union (be_union *node); - virtual int visit_union_branch (be_union_branch *node); -}; - -class be_visitor_union_any_op_compiled_cs : public be_visitor_union_any_op_cs -{ - // - // = TITLE - // be_visitor_union_any_op_compiled_cs - // - // = DESCRIPTION - // This is a concrete visitor for union that generates the Any - // operator implementations, using compiled marshaling. - // - -public: - be_visitor_union_any_op_compiled_cs (be_visitor_context *ctx); - // constructor - - // = See be_visitor_union_any_op_cs - virtual int gen_insertion (TAO_OutStream* os, - be_union *node); - virtual int gen_insertion_nocopy (TAO_OutStream* os, - be_union *node); - virtual int gen_extraction (TAO_OutStream* os, - be_union *node); -}; - -class be_visitor_union_any_op_interpretive_cs : public be_visitor_union_any_op_cs -{ - // - // = TITLE - // be_visitor_union_any_op_interpretive_cs - // - // = DESCRIPTION - // This is a concrete visitor for union that generates the Any - // operator implementations, using interpretive marshaling. - // - -public: - be_visitor_union_any_op_interpretive_cs (be_visitor_context *ctx); - // constructor - - // = See be_visitor_union_any_op_cs - virtual int gen_insertion (TAO_OutStream* os, - be_union *node); - virtual int gen_insertion_nocopy (TAO_OutStream* os, - be_union *node); - virtual int gen_extraction (TAO_OutStream* os, - be_union *node); -}; - -#endif /* _BE_VISITOR_UNION_ANY_OP_CS_H_ */ diff --git a/TAO/TAO_IDL/be_include/be_visitor_union/cdr_op_ch.h b/TAO/TAO_IDL/be_include/be_visitor_union/cdr_op_ch.h deleted file mode 100644 index 972dacf1335..00000000000 --- a/TAO/TAO_IDL/be_include/be_visitor_union/cdr_op_ch.h +++ /dev/null @@ -1,50 +0,0 @@ -/* -*- c++ -*- */ -// -// $Id$ -// - -// ============================================================================ -// -// = LIBRARY -// TAO IDL -// -// = FILENAME -// cdr_op_ch.h -// -// = DESCRIPTION -// Concrete visitor for the Union class -// This one provides code generation for the CDR operators for the union -// in the client header. -// -// = AUTHOR -// Aniruddha Gokhale -// -// ============================================================================ - -#ifndef _BE_VISITOR_UNION_CDR_OP_CH_H_ -#define _BE_VISITOR_UNION_CDR_OP_CH_H_ - -class be_visitor_union_cdr_op_ch : public be_visitor_union -{ - // - // = TITLE - // be_visitor_union_cdr_op_ch - // - // = DESCRIPTION - // This is a concrete visitor for union that generates the CDR operator - // declarations - // - -public: - be_visitor_union_cdr_op_ch (be_visitor_context *ctx); - // constructor - - ~be_visitor_union_cdr_op_ch (void); - // destructor - - virtual int visit_union (be_union *node); - // visit union - -}; - -#endif /* _BE_VISITOR_UNION_CDR_OP_CH_H_ */ diff --git a/TAO/TAO_IDL/be_include/be_visitor_union/cdr_op_ci.h b/TAO/TAO_IDL/be_include/be_visitor_union/cdr_op_ci.h deleted file mode 100644 index 94cc42570e6..00000000000 --- a/TAO/TAO_IDL/be_include/be_visitor_union/cdr_op_ci.h +++ /dev/null @@ -1,52 +0,0 @@ -/* -*- c++ -*- */ -// -// $Id$ -// - -// ============================================================================ -// -// = LIBRARY -// TAO IDL -// -// = FILENAME -// cdr_op_ch.h -// -// = DESCRIPTION -// Concrete visitor for the Union class -// This one provides code generation for the CDR operators for the union -// in the client stub. -// -// = AUTHOR -// Aniruddha Gokhale -// -// ============================================================================ - -#ifndef _BE_VISITOR_UNION_CDR_OP_CI_H_ -#define _BE_VISITOR_UNION_CDR_OP_CI_H_ - -class be_visitor_union_cdr_op_ci : public be_visitor_union -{ - // - // = TITLE - // be_visitor_union_cdr_op_ci - // - // = DESCRIPTION - // This is a concrete visitor for union that generates the CDR operator - // implementations - // - -public: - be_visitor_union_cdr_op_ci (be_visitor_context *ctx); - // constructor - - ~be_visitor_union_cdr_op_ci (void); - // destructor - - virtual int visit_union (be_union *node); - // visit union - - virtual int pre_process (be_decl *); - virtual int post_process (be_decl *); -}; - -#endif /* _BE_VISITOR_UNION_CDR_OP_CI_H_ */ diff --git a/TAO/TAO_IDL/be_include/be_visitor_union/cdr_op_cs.h b/TAO/TAO_IDL/be_include/be_visitor_union/cdr_op_cs.h deleted file mode 100644 index 9c8f50ba0ac..00000000000 --- a/TAO/TAO_IDL/be_include/be_visitor_union/cdr_op_cs.h +++ /dev/null @@ -1,49 +0,0 @@ -/* -*- c++ -*- */ -// -// $Id$ -// - -// ============================================================================ -// -// = LIBRARY -// TAO IDL -// -// = FILENAME -// cdr_op_ch.h -// -// = DESCRIPTION -// Concrete visitor for the Union class -// This one provides code generation for the CDR operators for the union -// in the client stub. -// -// = AUTHOR -// Aniruddha Gokhale -// -// ============================================================================ - -#ifndef _BE_VISITOR_UNION_CDR_OP_CS_H_ -#define _BE_VISITOR_UNION_CDR_OP_CS_H_ - -class be_visitor_union_cdr_op_cs : public be_visitor_union -{ - // - // = TITLE - // be_visitor_union_cdr_op_cs - // - // = DESCRIPTION - // This is a concrete visitor for union that generates the CDR operator - // implementations - // - -public: - be_visitor_union_cdr_op_cs (be_visitor_context *ctx); - // constructor - - ~be_visitor_union_cdr_op_cs (void); - // destructor - - virtual int visit_union (be_union *node); - // visit union -}; - -#endif /* _BE_VISITOR_UNION_CDR_OP_CS_H_ */ diff --git a/TAO/TAO_IDL/be_include/be_visitor_union/discriminant_ch.h b/TAO/TAO_IDL/be_include/be_visitor_union/discriminant_ch.h deleted file mode 100644 index 950deb597cd..00000000000 --- a/TAO/TAO_IDL/be_include/be_visitor_union/discriminant_ch.h +++ /dev/null @@ -1,55 +0,0 @@ -/* -*- c++ -*- */ -// -// $Id$ -// - -// ============================================================================ -// -// = LIBRARY -// TAO IDL -// -// = FILENAME -// discriminant_ch.h -// -// = DESCRIPTION -// Visitor for the Union class. -// This one generates code for the discriminant of the Union in the client -// header. -// -// = AUTHOR -// Aniruddha Gokhale -// -// ============================================================================ - -#ifndef _BE_VISITOR_UNION_DISCRIMINANT_CH_H_ -#define _BE_VISITOR_UNION_DISCRIMINANT_CH_H_ - -class be_visitor_union_discriminant_ch : public be_visitor_decl -{ - // - // = TITLE - // be_visitor_union_discriminant_ch - // - // = DESCRIPTION - // This is a concrete visitor to generate the client header for union - // discriminant - // - // -public: - be_visitor_union_discriminant_ch (be_visitor_context *ctx); - // constructor - - ~be_visitor_union_discriminant_ch (void); - // destructor - - virtual int visit_enum (be_enum *node); - // visit an enum - - virtual int visit_predefined_type (be_predefined_type *node); - // visit a predefined type - - virtual int visit_typedef (be_typedef *node); - // visit a typedef node -}; - -#endif /* _BE_VISITOR_UNION_DISCRIMINANT_CH_H_ */ diff --git a/TAO/TAO_IDL/be_include/be_visitor_union/discriminant_ci.h b/TAO/TAO_IDL/be_include/be_visitor_union/discriminant_ci.h deleted file mode 100644 index 3e7619a939e..00000000000 --- a/TAO/TAO_IDL/be_include/be_visitor_union/discriminant_ci.h +++ /dev/null @@ -1,55 +0,0 @@ -/* -*- c++ -*- */ -// -// $Id$ -// - -// ============================================================================ -// -// = LIBRARY -// TAO IDL -// -// = FILENAME -// discriminant_ci.h -// -// = DESCRIPTION -// Visitor for the Union class. -// This one generates code for the discriminant of the Union in the client -// inline file. -// -// = AUTHOR -// Aniruddha Gokhale -// -// ============================================================================ - -#ifndef _BE_VISITOR_UNION_DISCRIMINANT_CI_H_ -#define _BE_VISITOR_UNION_DISCRIMINANT_CI_H_ - -class be_visitor_union_discriminant_ci : public be_visitor_decl -{ - // - // = TITLE - // be_visitor_union_discriminant_ci - // - // = DESCRIPTION - // This is a concrete visitor to generate the client inline for union - // discriminant - // - // -public: - be_visitor_union_discriminant_ci (be_visitor_context *ctx); - // constructor - - ~be_visitor_union_discriminant_ci (void); - // destructor - - virtual int visit_enum (be_enum *node); - // visit an enum - - virtual int visit_predefined_type (be_predefined_type *node); - // visit a predefined type - - virtual int visit_typedef (be_typedef *node); - // visit a typedef node -}; - -#endif /* _BE_VISITOR_UNION_DISCRIMINANT_CI_H_ */ diff --git a/TAO/TAO_IDL/be_include/be_visitor_union/discriminant_cs.h b/TAO/TAO_IDL/be_include/be_visitor_union/discriminant_cs.h deleted file mode 100644 index af61beb8b4d..00000000000 --- a/TAO/TAO_IDL/be_include/be_visitor_union/discriminant_cs.h +++ /dev/null @@ -1,51 +0,0 @@ -/* -*- c++ -*- */ -// -// $Id$ -// - -// ============================================================================ -// -// = LIBRARY -// TAO IDL -// -// = FILENAME -// discriminant_cs.h -// -// = DESCRIPTION -// Visitor for the Union class. -// This one generates code for the discriminant of the Union in the client -// stubs. -// -// = AUTHOR -// Aniruddha Gokhale -// -// ============================================================================ - -#ifndef _BE_VISITOR_UNION_DISCRIMINANT_CS_H_ -#define _BE_VISITOR_UNION_DISCRIMINANT_CS_H_ - -class be_visitor_union_discriminant_cs : public be_visitor_decl -{ - // - // = TITLE - // be_visitor_union_discriminant_cs - // - // = DESCRIPTION - // This is a concrete visitor to generate the client stubs for union - // discriminant - // - // -public: - be_visitor_union_discriminant_cs (be_visitor_context *ctx); - // constructor - - ~be_visitor_union_discriminant_cs (void); - // destructor - - virtual int visit_enum (be_enum *node); - // visit an enum. Required to generate the typecode for an enum definition - // appearing side the union - -}; - -#endif /* _BE_VISITOR_UNION_DISCRIMINANT_CS_H_ */ diff --git a/TAO/TAO_IDL/be_include/be_visitor_union/union.h b/TAO/TAO_IDL/be_include/be_visitor_union/union.h deleted file mode 100644 index 5e669ac9327..00000000000 --- a/TAO/TAO_IDL/be_include/be_visitor_union/union.h +++ /dev/null @@ -1,52 +0,0 @@ -/* -*- c++ -*- */ -// -// $Id$ -// - -// ============================================================================ -// -// = LIBRARY -// TAO IDL -// -// = FILENAME -// union.h -// -// = DESCRIPTION -// Visitor for the Union class. -// This one is a generic visitor. -// -// = AUTHOR -// Aniruddha Gokhale -// -// ============================================================================ - -#ifndef _BE_VISITOR_UNION_UNION_H_ -#define _BE_VISITOR_UNION_UNION_H_ - -class be_visitor_union : public be_visitor_scope -{ - // - // = TITLE - // be_visitor_union - // - // = DESCRIPTION - // This is the base visitor for union - // - // -public: - be_visitor_union (be_visitor_context *ctx); - // constructor - - ~be_visitor_union (void); - // destructor - - virtual int visit_union (be_union *node); - // visit union. We provide code for this method in the derived class - - // =visit operations on syntactically valid elements in our scope - - virtual int visit_union_branch (be_union_branch *node); - // visit union_branch -}; - -#endif /* _BE_VISITOR_UNION_UNION_H_ */ diff --git a/TAO/TAO_IDL/be_include/be_visitor_union/union_ch.h b/TAO/TAO_IDL/be_include/be_visitor_union/union_ch.h deleted file mode 100644 index 86813169ff1..00000000000 --- a/TAO/TAO_IDL/be_include/be_visitor_union/union_ch.h +++ /dev/null @@ -1,48 +0,0 @@ -/* -*- c++ -*- */ -// -// $Id$ -// - -// ============================================================================ -// -// = LIBRARY -// TAO IDL -// -// = FILENAME -// union_ch.h -// -// = DESCRIPTION -// Visitor for the Union class. -// This one generates code in the client header. -// -// = AUTHOR -// Aniruddha Gokhale -// -// ============================================================================ - -#ifndef _BE_VISITOR_UNION_UNION_CH_H_ -#define _BE_VISITOR_UNION_UNION_CH_H_ - -class be_visitor_union_ch : public be_visitor_union -{ - // - // = TITLE - // be_visitor_union_ch - // - // = DESCRIPTION - // This is a concrete visitor to generate the client header for union - // - // -public: - be_visitor_union_ch (be_visitor_context *ctx); - // constructor - - ~be_visitor_union_ch (void); - // destructor - - virtual int visit_union (be_union *node); - // visit union. We provide code for this method in the derived class - -}; - -#endif /* _BE_VISITOR_UNION_UNION_CH_H_ */ diff --git a/TAO/TAO_IDL/be_include/be_visitor_union/union_ci.h b/TAO/TAO_IDL/be_include/be_visitor_union/union_ci.h deleted file mode 100644 index d0d138f583d..00000000000 --- a/TAO/TAO_IDL/be_include/be_visitor_union/union_ci.h +++ /dev/null @@ -1,48 +0,0 @@ -/* -*- c++ -*- */ -// -// $Id$ -// - -// ============================================================================ -// -// = LIBRARY -// TAO IDL -// -// = FILENAME -// union_ci.h -// -// = DESCRIPTION -// Visitor for the Union class. -// This one generates code in the client inline file. -// -// = AUTHOR -// Aniruddha Gokhale -// -// ============================================================================ - -#ifndef _BE_VISITOR_UNION_UNION_CI_H_ -#define _BE_VISITOR_UNION_UNION_CI_H_ - -class be_visitor_union_ci : public be_visitor_union -{ - // - // = TITLE - // be_visitor_union_ci - // - // = DESCRIPTION - // This is a concrete visitor to generate the client inline for union - // - // -public: - be_visitor_union_ci (be_visitor_context *ctx); - // constructor - - ~be_visitor_union_ci (void); - // destructor - - virtual int visit_union (be_union *node); - // visit union. We provide code for this method in the derived class - -}; - -#endif /* _BE_VISITOR_UNION_UNION_CI_H_ */ diff --git a/TAO/TAO_IDL/be_include/be_visitor_union/union_cs.h b/TAO/TAO_IDL/be_include/be_visitor_union/union_cs.h deleted file mode 100644 index 04783afa7d9..00000000000 --- a/TAO/TAO_IDL/be_include/be_visitor_union/union_cs.h +++ /dev/null @@ -1,48 +0,0 @@ -/* -*- c++ -*- */ -// -// $Id$ -// - -// ============================================================================ -// -// = LIBRARY -// TAO IDL -// -// = FILENAME -// union_cs.h -// -// = DESCRIPTION -// Visitor for the Union class. -// This one generates code in the client stubs. -// -// = AUTHOR -// Aniruddha Gokhale -// -// ============================================================================ - -#ifndef _BE_VISITOR_UNION_UNION_CS_H_ -#define _BE_VISITOR_UNION_UNION_CS_H_ - -class be_visitor_union_cs : public be_visitor_union -{ - // - // = TITLE - // be_visitor_union_cs - // - // = DESCRIPTION - // This is a concrete visitor to generate the client stubs for union - // - // -public: - be_visitor_union_cs (be_visitor_context *ctx); - // constructor - - ~be_visitor_union_cs (void); - // destructor - - virtual int visit_union (be_union *node); - // visit union. We provide code for this method in the derived class - -}; - -#endif /* _BE_VISITOR_UNION_UNION_CS_H_ */ diff --git a/TAO/TAO_IDL/be_include/be_visitor_union_branch.h b/TAO/TAO_IDL/be_include/be_visitor_union_branch.h deleted file mode 100644 index c284f47f97a..00000000000 --- a/TAO/TAO_IDL/be_include/be_visitor_union_branch.h +++ /dev/null @@ -1,37 +0,0 @@ -// -// $Id$ -// -/* -*- c++ -*- */ -// ============================================================================ -// -// = LIBRARY -// TAO IDL -// -// = FILENAME -// be_visitor_union_branch.h -// -// = DESCRIPTION -// Concrete visitor for the base "BE_Union_Branch" node -// -// = AUTHOR -// Aniruddha Gokhale -// -// ============================================================================ - -#ifndef TAO_BE_VISITOR_UNION_BRANCH_H -#define TAO_BE_VISITOR_UNION_BRANCH_H - -#include "be_visitor_decl.h" - -#include "be_visitor_union_branch/public_ch.h" -#include "be_visitor_union_branch/public_ci.h" -#include "be_visitor_union_branch/public_cs.h" -#include "be_visitor_union_branch/public_assign_cs.h" -#include "be_visitor_union_branch/public_reset_cs.h" -#include "be_visitor_union_branch/public_access_cs.h" -#include "be_visitor_union_branch/private_ch.h" -#include "be_visitor_union_branch/cdr_op_ch.h" -#include "be_visitor_union_branch/cdr_op_ci.h" -#include "be_visitor_union_branch/cdr_op_cs.h" - -#endif // TAO_BE_VISITOR_UNION_BRANCH_H diff --git a/TAO/TAO_IDL/be_include/be_visitor_union_branch/cdr_op_ch.h b/TAO/TAO_IDL/be_include/be_visitor_union_branch/cdr_op_ch.h deleted file mode 100644 index e325b41f912..00000000000 --- a/TAO/TAO_IDL/be_include/be_visitor_union_branch/cdr_op_ch.h +++ /dev/null @@ -1,66 +0,0 @@ -// -// $Id$ -// -/* -*- c++ -*- */ -// ============================================================================ -// -// = LIBRARY -// TAO IDL -// -// = FILENAME -// cdr_op_ch.h -// -// = DESCRIPTION -// Concrete visitor for the base "BE_Union_Branch" node -// This generates code for structure members in the client header. -// -// = AUTHOR -// Aniruddha Gokhale -// -// ============================================================================ - -#ifndef _BE_VISITOR_UNION_BRANCH_CDR_OP_CH_H_ -#define _BE_VISITOR_UNION_BRANCH_CDR_OP_CH_H_ - -class be_visitor_union_branch_cdr_op_ch : public be_visitor_decl -{ - // - // = TITLE - // be_visitor_cdr_op_ch - // - // = DESCRIPTION - // This is a concrete visitor for the be_union_branch node for the client header. - // -public: - be_visitor_union_branch_cdr_op_ch (be_visitor_context *ctx); - // constructor - - ~be_visitor_union_branch_cdr_op_ch (void); - // destructor - - virtual int visit_union_branch (be_union_branch *node); - // visit the union_branch node - - // =visit operations on all possible data types that a union_branch can be - - virtual int visit_array (be_array *node); - // visit array type - - virtual int visit_enum (be_enum *node); - // visit enum type - - virtual int visit_sequence (be_sequence *node); - // visit sequence type - - virtual int visit_structure (be_structure *node); - // visit structure type - - virtual int visit_typedef (be_typedef *node); - // visit typedefed type - - virtual int visit_union (be_union *node); - // visit union type - -}; - -#endif /* _BE_VISITOR_UNION_BRANCH_CDR_OP_CH_H_ */ diff --git a/TAO/TAO_IDL/be_include/be_visitor_union_branch/cdr_op_ci.h b/TAO/TAO_IDL/be_include/be_visitor_union_branch/cdr_op_ci.h deleted file mode 100644 index 536fcbf9cce..00000000000 --- a/TAO/TAO_IDL/be_include/be_visitor_union_branch/cdr_op_ci.h +++ /dev/null @@ -1,78 +0,0 @@ -/* -*- c++ -*- */ -// -// $Id$ -// -// ============================================================================ -// -// = LIBRARY -// TAO IDL -// -// = FILENAME -// cdr_op_ci.h -// -// = DESCRIPTION -// Concrete visitor for the base "BE_Union_Branch" node -// This generates code for structure members in the client header. -// -// = AUTHOR -// Aniruddha Gokhale -// -// ============================================================================ - -#ifndef _BE_VISITOR_UNION_BRANCH_CDR_OP_CI_H_ -#define _BE_VISITOR_UNION_BRANCH_CDR_OP_CI_H_ - -class be_visitor_union_branch_cdr_op_ci : public be_visitor_decl -{ - // - // = TITLE - // be_visitor_union_branch_cdr_op_ci - // - // = DESCRIPTION - // This is a concrete visitor for the be_union_branch node for the client header. - // -public: - be_visitor_union_branch_cdr_op_ci (be_visitor_context *ctx); - // constructor - - ~be_visitor_union_branch_cdr_op_ci (void); - // destructor - - virtual int visit_union_branch (be_union_branch *node); - // visit the union_branch node - - // =visit operations on all possible data types that a union_branch can be - - virtual int visit_array (be_array *node); - // visit array type - - virtual int visit_enum (be_enum *node); - // visit enum type - - virtual int visit_interface (be_interface *node); - // visit interface type - - virtual int visit_interface_fwd (be_interface_fwd *node); - // visit interface forward type - - virtual int visit_predefined_type (be_predefined_type *node); - // visit predefined type - - virtual int visit_sequence (be_sequence *node); - // visit sequence type - - virtual int visit_string (be_string *node); - // visit string type - - virtual int visit_structure (be_structure *node); - // visit structure type - - virtual int visit_typedef (be_typedef *node); - // visit typedefed type - - virtual int visit_union (be_union *node); - // visit union type - -}; - -#endif /* _BE_VISITOR_UNION_BRANCH_CDR_OP_CI_H_ */ diff --git a/TAO/TAO_IDL/be_include/be_visitor_union_branch/cdr_op_cs.h b/TAO/TAO_IDL/be_include/be_visitor_union_branch/cdr_op_cs.h deleted file mode 100644 index fe99899d327..00000000000 --- a/TAO/TAO_IDL/be_include/be_visitor_union_branch/cdr_op_cs.h +++ /dev/null @@ -1,54 +0,0 @@ -// -// $Id$ -// -/* -*- c++ -*- */ -// ============================================================================ -// -// = LIBRARY -// TAO IDL -// -// = FILENAME -// cdr_op_cs.h -// -// = DESCRIPTION -// Concrete visitor for the base "BE_Union_Branch" node -// This generates code for structure members in the client header. -// -// = AUTHOR -// Aniruddha Gokhale -// -// ============================================================================ - -#ifndef _BE_VISITOR_UNION_BRANCH_CDR_OP_CS_H_ -#define _BE_VISITOR_UNION_BRANCH_CDR_OP_CS_H_ - -class be_visitor_union_branch_cdr_op_cs : public be_visitor_decl -{ - // - // = TITLE - // be_visitor_union_branch_cdr_op_cs - // - // = DESCRIPTION - // This is a concrete visitor for the be_union_branch node for the client header. - // -public: - be_visitor_union_branch_cdr_op_cs (be_visitor_context *ctx); - // constructor - - ~be_visitor_union_branch_cdr_op_cs (void); - // destructor - - virtual int visit_union_branch (be_union_branch *node); - // visit the union_branch node - - // =visit operations on all possible data types that a union_branch can be - - virtual int visit_array (be_array *node); - virtual int visit_enum (be_enum *node); - virtual int visit_sequence (be_sequence *node); - virtual int visit_structure (be_structure *node); - virtual int visit_typedef (be_typedef *node); - virtual int visit_union (be_union *node); -}; - -#endif /* _BE_VISITOR_UNION_BRANCH_CDR_OP_CS_H_ */ diff --git a/TAO/TAO_IDL/be_include/be_visitor_union_branch/private_ch.h b/TAO/TAO_IDL/be_include/be_visitor_union_branch/private_ch.h deleted file mode 100644 index fdc7e9f2070..00000000000 --- a/TAO/TAO_IDL/be_include/be_visitor_union_branch/private_ch.h +++ /dev/null @@ -1,82 +0,0 @@ -/* -*- c++ -*- */ -// -// $Id$ -// - -// ============================================================================ -// -// = LIBRARY -// TAO IDL -// -// = FILENAME -// private_ch.h -// -// = DESCRIPTION -// Visitor for the Union class. -// This one generates code for private part of the union class for the union -// members in the client header. -// -// = AUTHOR -// Aniruddha Gokhale -// -// ============================================================================ - -#ifndef _BE_VISITOR_UNION_BRANCH_PRIVATE_CH_H_ -#define _BE_VISITOR_UNION_BRANCH_PRIVATE_CH_H_ - -class be_visitor_union_branch_private_ch : public be_visitor_decl -{ - // - // = TITLE - // be_visitor_union_branch_private_ch - // - // = DESCRIPTION - // This is a concrete visitor for the be_union_branch node for the client - // header. This generates the code for the private section of the "union" - // class - // -public: - be_visitor_union_branch_private_ch (be_visitor_context *ctx); - // constructor - - ~be_visitor_union_branch_private_ch (void); - // destructor - - virtual int visit_union_branch (be_union_branch *node); - // visit the union_branch node - - // =visit operations on all possible data types that a union_branch can be - - virtual int visit_array (be_array *node); - // visit array type - - virtual int visit_enum (be_enum *node); - // visit enum type - - virtual int visit_interface (be_interface *node); - // visit interface type - - virtual int visit_interface_fwd (be_interface_fwd *node); - // visit interface forward type - - virtual int visit_predefined_type (be_predefined_type *node); - // visit predefined type - - virtual int visit_sequence (be_sequence *node); - // visit sequence type - - virtual int visit_string (be_string *node); - // visit string type - - virtual int visit_structure (be_structure *node); - // visit structure type - - virtual int visit_typedef (be_typedef *node); - // visit typedefed type - - virtual int visit_union (be_union *node); - // visit union type - -}; - -#endif /* _BE_VISITOR_UNION_BRANCH_PRIVATE_CH_H_ */ diff --git a/TAO/TAO_IDL/be_include/be_visitor_union_branch/public_access_cs.h b/TAO/TAO_IDL/be_include/be_visitor_union_branch/public_access_cs.h deleted file mode 100644 index b1d76206108..00000000000 --- a/TAO/TAO_IDL/be_include/be_visitor_union_branch/public_access_cs.h +++ /dev/null @@ -1,80 +0,0 @@ -/* -*- c++ -*- */ -// -// $Id$ -// - -// ============================================================================ -// -// = LIBRARY -// TAO IDL -// -// = FILENAME -// public_access_cs.h -// -// = DESCRIPTION -// Visitor for the Union class. -// This one generates code for the access method of the union class -// for the union members. This is primarily used by the marshaling engine. -// -// = AUTHOR -// Aniruddha Gokhale -// -// ============================================================================ - -#ifndef _BE_VISITOR_UNION_BRANCH_PUBLIC_ACCESS_CS_H_ -#define _BE_VISITOR_UNION_BRANCH_PUBLIC_ACCESS_CS_H_ - -class be_visitor_union_branch_public_access_cs : public be_visitor_decl -{ - // - // = TITLE - // be_visitor_union_branch_public_access_cs - // - // = DESCRIPTION - // This is used to generate the body of the access method - // -public: - be_visitor_union_branch_public_access_cs (be_visitor_context *ctx); - // constructor - - ~be_visitor_union_branch_public_access_cs (void); - // destructor - - virtual int visit_union_branch (be_union_branch *node); - // visit the union_branch node - - // =visit operations on all possible data types that a union_branch can be - - virtual int visit_array (be_array *node); - // visit array type - - virtual int visit_enum (be_enum *node); - // visit enum type - - virtual int visit_interface (be_interface *node); - // visit interface type - - virtual int visit_interface_fwd (be_interface_fwd *node); - // visit interface forward type - - virtual int visit_predefined_type (be_predefined_type *node); - // visit predefined type - - virtual int visit_sequence (be_sequence *node); - // visit sequence type - - virtual int visit_string (be_string *node); - // visit string type - - virtual int visit_structure (be_structure *node); - // visit structure type - - virtual int visit_typedef (be_typedef *node); - // visit typedefed type - - virtual int visit_union (be_union *node); - // visit union type - -}; - -#endif /* _BE_VISITOR_UNION_BRANCH_PUBLIC_ACCESS_CS_H_ */ diff --git a/TAO/TAO_IDL/be_include/be_visitor_union_branch/public_assign_cs.h b/TAO/TAO_IDL/be_include/be_visitor_union_branch/public_assign_cs.h deleted file mode 100644 index fe324e600d0..00000000000 --- a/TAO/TAO_IDL/be_include/be_visitor_union_branch/public_assign_cs.h +++ /dev/null @@ -1,81 +0,0 @@ -/* -*- c++ -*- */ -// -// $Id$ -// - -// ============================================================================ -// -// = LIBRARY -// TAO IDL -// -// = FILENAME -// public_assign_cs.h -// -// = DESCRIPTION -// Visitor for the Union class. -// This one generates code for the assignment operator of the union class -// for the union members in the client stubs. -// -// = AUTHOR -// Aniruddha Gokhale -// -// ============================================================================ - -#ifndef _BE_VISITOR_UNION_BRANCH_PUBLIC_ASSIGN_CS_H_ -#define _BE_VISITOR_UNION_BRANCH_PUBLIC_ASSIGN_CS_H_ - -class be_visitor_union_branch_public_assign_cs : public be_visitor_decl -{ - // - // = TITLE - // be_visitor_union_branch_public_assign_cs - // - // = DESCRIPTION - // This is used to generate the body of the assignment operator and the - // copy constructor of the union class - // -public: - be_visitor_union_branch_public_assign_cs (be_visitor_context *ctx); - // constructor - - ~be_visitor_union_branch_public_assign_cs (void); - // destructor - - virtual int visit_union_branch (be_union_branch *node); - // visit the union_branch node - - // =visit operations on all possible data types that a union_branch can be - - virtual int visit_array (be_array *node); - // visit array type - - virtual int visit_enum (be_enum *node); - // visit enum type - - virtual int visit_interface (be_interface *node); - // visit interface type - - virtual int visit_interface_fwd (be_interface_fwd *node); - // visit interface forward type - - virtual int visit_predefined_type (be_predefined_type *node); - // visit predefined type - - virtual int visit_sequence (be_sequence *node); - // visit sequence type - - virtual int visit_string (be_string *node); - // visit string type - - virtual int visit_structure (be_structure *node); - // visit structure type - - virtual int visit_typedef (be_typedef *node); - // visit typedefed type - - virtual int visit_union (be_union *node); - // visit union type - -}; - -#endif /* _BE_VISITOR_UNION_BRANCH_PUBLIC_ASSIGN_CS_H_ */ diff --git a/TAO/TAO_IDL/be_include/be_visitor_union_branch/public_ch.h b/TAO/TAO_IDL/be_include/be_visitor_union_branch/public_ch.h deleted file mode 100644 index ffbcc9de479..00000000000 --- a/TAO/TAO_IDL/be_include/be_visitor_union_branch/public_ch.h +++ /dev/null @@ -1,90 +0,0 @@ -/* -*- c++ -*- */ -// -// $Id$ -// - -// ============================================================================ -// -// = LIBRARY -// TAO IDL -// -// = FILENAME -// public_ch.h -// -// = DESCRIPTION -// Visitor for the Union class. -// This one generates code for public part of the union class for the union -// members in the client header. -// -// = AUTHOR -// Aniruddha Gokhale -// -// ============================================================================ - -#ifndef _BE_VISITOR_UNION_BRANCH_PUBLIC_CH_H_ -#define _BE_VISITOR_UNION_BRANCH_PUBLIC_CH_H_ - -class be_visitor_union_branch_public_ch : public be_visitor_decl -{ - // - // = TITLE - // be_visitor_union_branch_public_ch - // - // = DESCRIPTION - // This is a concrete visitor for the be_union_branch node for the client - // header. This generates the code for the public section of the "union" - // class - // -public: - be_visitor_union_branch_public_ch (be_visitor_context *ctx); - // constructor - - ~be_visitor_union_branch_public_ch (void); - // destructor - - virtual int visit_union_branch (be_union_branch *node); - // visit the union_branch node - - // =visit operations on all possible data types that a union_branch can be - - virtual int visit_array (be_array *node); - // visit array type - - virtual int visit_enum (be_enum *node); - // visit enum type - - virtual int visit_interface (be_interface *node); - // visit interface type - - virtual int visit_interface_fwd (be_interface_fwd *node); - // visit interface forward type - -#ifdef IDL_HAS_VALUETYPE - virtual int visit_valuetype (be_valuetype *node); - // visit valuetype type - - virtual int visit_valuetype_fwd (be_valuetype_fwd *node); - // visit valuetype forward type -#endif /* IDL_HAS_VALUETYPE */ - - virtual int visit_predefined_type (be_predefined_type *node); - // visit predefined type - - virtual int visit_sequence (be_sequence *node); - // visit sequence type - - virtual int visit_string (be_string *node); - // visit string type - - virtual int visit_structure (be_structure *node); - // visit structure type - - virtual int visit_typedef (be_typedef *node); - // visit typedefed type - - virtual int visit_union (be_union *node); - // visit union type - -}; - -#endif /* _BE_VISITOR_UNION_BRANCH_PUBLIC_CH_H_ */ diff --git a/TAO/TAO_IDL/be_include/be_visitor_union_branch/public_ci.h b/TAO/TAO_IDL/be_include/be_visitor_union_branch/public_ci.h deleted file mode 100644 index 585d8f0453d..00000000000 --- a/TAO/TAO_IDL/be_include/be_visitor_union_branch/public_ci.h +++ /dev/null @@ -1,81 +0,0 @@ -/* -*- c++ -*- */ -// -// $Id$ -// - -// ============================================================================ -// -// = LIBRARY -// TAO IDL -// -// = FILENAME -// public_ci.h -// -// = DESCRIPTION -// Visitor for the Union class. -// This one generates code for public part of the union class for the union -// members in the client inline. -// -// = AUTHOR -// Aniruddha Gokhale -// -// ============================================================================ - -#ifndef _BE_VISITOR_UNION_BRANCI_PUBLIC_CI_H_ -#define _BE_VISITOR_UNION_BRANCI_PUBLIC_CI_H_ - -class be_visitor_union_branch_public_ci : public be_visitor_decl -{ - // - // = TITLE - // be_visitor_union_branch_public_ci - // - // = DESCRIPTION - // This visitor is used to generate the accessors for the members of the - // union - // -public: - be_visitor_union_branch_public_ci (be_visitor_context *ctx); - // constructor - - ~be_visitor_union_branch_public_ci (void); - // destructor - - virtual int visit_union_branch (be_union_branch *node); - // visit the union_branch node - - // =visit operations on all possible data types that a union_branch can be - - virtual int visit_array (be_array *node); - // visit array type - - virtual int visit_enum (be_enum *node); - // visit enum type - - virtual int visit_interface (be_interface *node); - // visit interface type - - virtual int visit_interface_fwd (be_interface_fwd *node); - // visit interface forward type - - virtual int visit_predefined_type (be_predefined_type *node); - // visit predefined type - - virtual int visit_sequence (be_sequence *node); - // visit sequence type - - virtual int visit_string (be_string *node); - // visit string type - - virtual int visit_structure (be_structure *node); - // visit structure type - - virtual int visit_typedef (be_typedef *node); - // visit typedefed type - - virtual int visit_union (be_union *node); - // visit union type - -}; - -#endif /* _BE_VISITOR_UNION_BRANCI_PUBLIC_CI_H_ */ diff --git a/TAO/TAO_IDL/be_include/be_visitor_union_branch/public_cs.h b/TAO/TAO_IDL/be_include/be_visitor_union_branch/public_cs.h deleted file mode 100644 index c66e142c280..00000000000 --- a/TAO/TAO_IDL/be_include/be_visitor_union_branch/public_cs.h +++ /dev/null @@ -1,69 +0,0 @@ -/* -*- c++ -*- */ -// -// $Id$ -// - -// ============================================================================ -// -// = LIBRARY -// TAO IDL -// -// = FILENAME -// public_cs.h -// -// = DESCRIPTION -// Visitor for the Union class. -// This one generates code for public part of the union class for the union -// members in the client stubs. -// -// = AUTHOR -// Aniruddha Gokhale -// -// ============================================================================ - -#ifndef _BE_VISITOR_UNION_BRANCS_PUBLIC_CS_H_ -#define _BE_VISITOR_UNION_BRANCS_PUBLIC_CS_H_ - -class be_visitor_union_branch_public_cs : public be_visitor_decl -{ - // - // = TITLE - // be_visitor_union_branch_public_cs - // - // = DESCRIPTION - // This visitor is used to generate implementation such as typecodes for - // constructed types - // -public: - be_visitor_union_branch_public_cs (be_visitor_context *ctx); - // constructor - - ~be_visitor_union_branch_public_cs (void); - // destructor - - virtual int visit_union_branch (be_union_branch *node); - // visit the union_branch node - - // =visit operations on all possible data types that a union_branch can be - - virtual int visit_array (be_array *node); - // visit array type - - virtual int visit_enum (be_enum *node); - // visit enum type - - virtual int visit_sequence (be_sequence *node); - // visit sequence type - - virtual int visit_string (be_string *node); - // visit string type - - virtual int visit_structure (be_structure *node); - // visit structure type - - virtual int visit_union (be_union *node); - // visit union type - -}; - -#endif /* _BE_VISITOR_UNION_BRANCS_PUBLIC_CS_H_ */ diff --git a/TAO/TAO_IDL/be_include/be_visitor_union_branch/public_reset_cs.h b/TAO/TAO_IDL/be_include/be_visitor_union_branch/public_reset_cs.h deleted file mode 100644 index e7fa0b7733a..00000000000 --- a/TAO/TAO_IDL/be_include/be_visitor_union_branch/public_reset_cs.h +++ /dev/null @@ -1,81 +0,0 @@ -/* -*- c++ -*- */ -// -// $Id$ -// - -// ============================================================================ -// -// = LIBRARY -// TAO IDL -// -// = FILENAME -// public_reset_cs.h -// -// = DESCRIPTION -// Visitor for the Union class. -// This one generates code for the reset method of the union class -// for the union members in the client stubs. -// -// = AUTHOR -// Aniruddha Gokhale -// -// ============================================================================ - -#ifndef _BE_VISITOR_UNION_BRANCH_PUBLIC_RESET_CS_H_ -#define _BE_VISITOR_UNION_BRANCH_PUBLIC_RESET_CS_H_ - -class be_visitor_union_branch_public_reset_cs : public be_visitor_decl -{ - // - // = TITLE - // be_visitor_union_branch_public_reset_cs - // - // = DESCRIPTION - // This is used to generate the body of the resetment operator and the - // copy constructor of the union class - // -public: - be_visitor_union_branch_public_reset_cs (be_visitor_context *ctx); - // constructor - - ~be_visitor_union_branch_public_reset_cs (void); - // destructor - - virtual int visit_union_branch (be_union_branch *node); - // visit the union_branch node - - // =visit operations on all possible data types that a union_branch can be - - virtual int visit_array (be_array *node); - // visit array type - - virtual int visit_enum (be_enum *node); - // visit enum type - - virtual int visit_interface (be_interface *node); - // visit interface type - - virtual int visit_interface_fwd (be_interface_fwd *node); - // visit interface forward type - - virtual int visit_predefined_type (be_predefined_type *node); - // visit predefined type - - virtual int visit_sequence (be_sequence *node); - // visit sequence type - - virtual int visit_string (be_string *node); - // visit string type - - virtual int visit_structure (be_structure *node); - // visit structure type - - virtual int visit_typedef (be_typedef *node); - // visit typedefed type - - virtual int visit_union (be_union *node); - // visit union type - -}; - -#endif /* _BE_VISITOR_UNION_BRANCH_PUBLIC_RESET_CS_H_ */ diff --git a/TAO/TAO_IDL/be_include/be_visitor_valuetype.h b/TAO/TAO_IDL/be_include/be_visitor_valuetype.h deleted file mode 100644 index 9f6c1dc5095..00000000000 --- a/TAO/TAO_IDL/be_include/be_visitor_valuetype.h +++ /dev/null @@ -1,47 +0,0 @@ - -// $Id$ -// -/* -*- c++ -*- */ -// ============================================================================ -// -// = LIBRARY -// TAO IDL -// -// = FILENAME -// be_visitor_valuetype.h -// -// = DESCRIPTION -// Concrete visitor for the Valuetype class -// -// ============================================================================ - -#ifndef TAO_BE_VISITOR_VALUETYPE_H -#define TAO_BE_VISITOR_VALUETYPE_H - -#ifdef IDL_HAS_VALUETYPE - -#include "be_visitor_scope.h" - -#include "be_visitor_valuetype/valuetype.h" -#include "be_visitor_valuetype/valuetype_ch.h" -#include "be_visitor_valuetype/valuetype_obv_ch.h" -#include "be_visitor_valuetype/valuetype_obv_cs.h" -#include "be_visitor_valuetype/valuetype_ci.h" -#include "be_visitor_valuetype/valuetype_cs.h" -//#include "be_visitor_valuetype/valuetype_ih.h" -//#include "be_visitor_valuetype/valuetype_is.h" -//#include "be_visitor_valuetype/any_op_ch.h" -//#include "be_visitor_valuetype/any_op_cs.h" -#include "be_visitor_valuetype/cdr_op_ch.h" -#include "be_visitor_valuetype/cdr_op_ci.h" -#include "be_visitor_valuetype/marshal_ch.h" -#include "be_visitor_valuetype/marshal_cs.h" -#include "be_visitor_valuetype/arglist.h" -#include "be_visitor_valuetype/field_ch.h" -#include "be_visitor_valuetype/field_cs.h" -#include "be_visitor_valuetype/field_cdr_ci.h" -#include "be_visitor_valuetype/obv_module.h" - -#endif /* IDL_HAS_VALUETYPE */ - -#endif /* TAO_BE_VISITOR_VALUETYPE_H */ diff --git a/TAO/TAO_IDL/be_include/be_visitor_valuetype/arglist.h b/TAO/TAO_IDL/be_include/be_visitor_valuetype/arglist.h deleted file mode 100644 index e9b6747180d..00000000000 --- a/TAO/TAO_IDL/be_include/be_visitor_valuetype/arglist.h +++ /dev/null @@ -1,55 +0,0 @@ -// -// $Id$ -// - -// ============================================================================ -// -// = LIBRARY -// TAO IDL -// -// = FILENAME -// arglist.h -// -// = DESCRIPTION -// Visitor for generating code for IDL (valuetype) operations. -// This generates the operation signature. -// -// -// ============================================================================ - -#ifndef _BE_VISITOR_OBV_OPERATION_ARGLIST_H_ -#define _BE_VISITOR_OBV_OPERATION_ARGLIST_H_ - -// ****************************************************************************** -// Operation visitor for argument list - generates parameters in the signature -// ****************************************************************************** - -class be_visitor_obv_operation_arglist : public be_visitor_scope -{ - // - // = TITLE - // be_visitor_operaion_arglist - // - // = DESCRIPTION - // This is a visitor to generate operation argument list - // - // -public: - be_visitor_obv_operation_arglist (be_visitor_context *ctx); - // constructor - - ~be_visitor_obv_operation_arglist (void); - // destructor - - int visit_operation (be_operation *node); - // visit the operation - - int visit_argument (be_argument *node); - // visit each argument - - int post_process (be_decl *bd); - // set 'comma' only between arguments - -}; - -#endif /* _BE_VISITOR_OBV_OPERATION_ARGLIST_H_ */ diff --git a/TAO/TAO_IDL/be_include/be_visitor_valuetype/cdr_op_ch.h b/TAO/TAO_IDL/be_include/be_visitor_valuetype/cdr_op_ch.h deleted file mode 100644 index 78af6220e4f..00000000000 --- a/TAO/TAO_IDL/be_include/be_visitor_valuetype/cdr_op_ch.h +++ /dev/null @@ -1,49 +0,0 @@ -/* -*- c++ -*- */ -// -// $Id$ -// - -// ============================================================================ -// -// = LIBRARY -// TAO IDL -// -// = FILENAME -// cdr_op_ci.h -// -// = DESCRIPTION -// Concrete visitor for valuetypes. -// This one provides code generation for the CDR operators. -// -// = AUTHOR -// Torsten Kuepper <kuepper2@lfa.uni-wuppertal.de> -// -// ============================================================================ - -#ifndef _BE_VISITOR_VALUETYPE_CDR_OP_CH_H_ -#define _BE_VISITOR_VALUETYPE_CDR_OP_CH_H_ - -class be_visitor_valuetype_cdr_op_ch : public be_visitor_valuetype -{ - // - // = TITLE - // be_visitor_valuetype_cdr_op_ch - // - // = DESCRIPTION - // This is a concrete visitor for interface that generates the CDR operator - // declarations - // - -public: - be_visitor_valuetype_cdr_op_ch (be_visitor_context *ctx); - // constructor - - ~be_visitor_valuetype_cdr_op_ch (void); - // destructor - - virtual int visit_valuetype (be_valuetype *node); - // visit valuetype - -}; - -#endif /* _BE_VISITOR_VALUETYPE_CDR_OP_CH_H_ */ diff --git a/TAO/TAO_IDL/be_include/be_visitor_valuetype/cdr_op_ci.h b/TAO/TAO_IDL/be_include/be_visitor_valuetype/cdr_op_ci.h deleted file mode 100644 index 68048d69098..00000000000 --- a/TAO/TAO_IDL/be_include/be_visitor_valuetype/cdr_op_ci.h +++ /dev/null @@ -1,49 +0,0 @@ -/* -*- c++ -*- */ -// -// $Id$ -// - -// ============================================================================ -// -// = LIBRARY -// TAO IDL -// -// = FILENAME -// cdr_op_ci.h -// -// = DESCRIPTION -// Concrete visitor for valuetypes. -// This one provides code generation for the CDR operators. -// -// = AUTHOR -// Torsten Kuepper <kuepper2@lfa.uni-wuppertal.de> -// -// ============================================================================ - -#ifndef _BE_VISITOR_VALUETYPE_CDR_OP_CI_H_ -#define _BE_VISITOR_VALUETYPE_CDR_OP_CI_H_ - -class be_visitor_valuetype_cdr_op_ci : public be_visitor_valuetype -{ - // - // = TITLE - // be_visitor_valuetype_cdr_op_ci - // - // = DESCRIPTION - // This is a concrete visitor for interface that generates the CDR operator - // implementations - // - -public: - be_visitor_valuetype_cdr_op_ci (be_visitor_context *ctx); - // constructor - - ~be_visitor_valuetype_cdr_op_ci (void); - // destructor - - virtual int visit_valuetype (be_valuetype *node); - // visit valuetype - -}; - -#endif /* _BE_VISITOR_VALUETYPE_CDR_OP_CI_H_ */ diff --git a/TAO/TAO_IDL/be_include/be_visitor_valuetype/field_cdr_ci.h b/TAO/TAO_IDL/be_include/be_visitor_valuetype/field_cdr_ci.h deleted file mode 100644 index d856b92f04d..00000000000 --- a/TAO/TAO_IDL/be_include/be_visitor_valuetype/field_cdr_ci.h +++ /dev/null @@ -1,115 +0,0 @@ -/* -*- c++ -*- */ -// -// $Id$ -// -// ============================================================================ -// -// = LIBRARY -// TAO IDL -// -// = FILENAME -// field_cdr_ci.h -// -// = DESCRIPTION -// Visitor generating code for Field in the client stubs file. -// -// = AUTHOR -// Torsten Kuepper <kuepper2@lfa.uni-wuppertal.de> -// derived from be_visitor_field/cdr_op_ci.h -// -// ============================================================================ - -#ifndef _BE_VISITOR_VALUETYPE_FIELD_CDR_CI_H_ -#define _BE_VISITOR_VALUETYPE_FIELD_CDR_CI_H_ - -#include "be_visitor_scope.h" - -class be_visitor_valuetype_field_cdr_ci : public be_visitor_decl -{ - // - // = TITLE - // be_visitor_valuetype_field_cdr_ci - // - // = DESCRIPTION - // This is a concrete visitor for the be_field node for the client header. - // -public: - be_visitor_valuetype_field_cdr_ci (be_visitor_context *ctx); - // constructor - - ~be_visitor_valuetype_field_cdr_ci (void); - // destructor - - virtual int visit_field (be_field *node); - // visit the field node - - // =visit operations on all possible data types that a field can be - - virtual int visit_array (be_array *node); - // visit array type - - virtual int visit_enum (be_enum *node); - // visit enum type - - virtual int visit_interface (be_interface *node); - // visit interface type - - virtual int visit_interface_fwd (be_interface_fwd *node); - // visit interface forward type - - virtual int visit_valuetype (be_valuetype *node); - // visit valuetype type - - virtual int visit_valuetype_fwd (be_valuetype_fwd *node); - // visit valuetype forward type - - virtual int visit_predefined_type (be_predefined_type *node); - // visit predefined type - - virtual int visit_sequence (be_sequence *node); - // visit sequence type - - virtual int visit_string (be_string *node); - // visit string type - - virtual int visit_structure (be_structure *node); - // visit structure type - - virtual int visit_typedef (be_typedef *node); - // visit typedefed type - - virtual int visit_union (be_union *node); - // visit union type - - const char *pre_, *post_; -}; - -class be_visitor_valuetype_field_cdr_decl : public be_visitor_scope -{ - // - // = TITLE - // be_visitor_cdr_valuetype_field_cdr_decl - // - // = DESCRIPTION - // When generating CDR operators for fields of structures and/or - // unions it may be necessary to define some local variables (for - // instance to hold temporary T_forany objects); this visitor - // generates that code. - // -public: - be_visitor_valuetype_field_cdr_decl (be_visitor_context *ctx); - // constructor - - virtual int visit_field (be_field *node); - // visit the field node - - // = visit operations for data types that require a local variable. - - virtual int visit_array (be_array *node); - // visit array type - - virtual int visit_typedef (be_typedef *node); - // visit typedef type -}; - -#endif /* _BE_VISITOR_VALUETYPE_FIELD_CDR_CI_H_ */ diff --git a/TAO/TAO_IDL/be_include/be_visitor_valuetype/field_ch.h b/TAO/TAO_IDL/be_include/be_visitor_valuetype/field_ch.h deleted file mode 100644 index b22d8b269ba..00000000000 --- a/TAO/TAO_IDL/be_include/be_visitor_valuetype/field_ch.h +++ /dev/null @@ -1,96 +0,0 @@ -/* -*- c++ -*- */ -// -// $Id$ -// - -// ============================================================================ -// -// = LIBRARY -// TAO IDL -// -// = FILENAME -// field_ch.h -// -// = DESCRIPTION -// Visitor generating code for valuetype fields in the valuetype class -// (header). -// -// = AUTHOR -// Torsten Kuepper <kuepper2@lfa.uni-wuppertal.de> -// derived from be_visitor_union_branch/public_ch.h -// -// ============================================================================ - -#ifndef _BE_VISITOR_VALUETYPE_FIELD_CH_H_ -#define _BE_VISITOR_VALUETYPE_FIELD_CH_H_ - -class be_visitor_valuetype_field_ch : public be_visitor_decl -{ - // - // = TITLE - // be_visitor_field_ch - // - // = DESCRIPTION - // Visitor generating code for valuetype fields in the valuetype class - // (header). - // -public: - be_visitor_valuetype_field_ch (be_visitor_context *ctx); - // constructor - - ~be_visitor_valuetype_field_ch (void); - // destructor - - virtual int visit_field (be_field *node); - // visit the field node - - // =visit operations on all possible data types that a valuetype - // state member can be. - - virtual int visit_array (be_array *node); - // visit array type - - virtual int visit_enum (be_enum *node); - // visit enum type - - virtual int visit_interface (be_interface *node); - // visit interface type - - virtual int visit_interface_fwd (be_interface_fwd *node); - // visit interface forward type - - virtual int visit_valuetype (be_valuetype *node); - // visit valuetype type - - virtual int visit_valuetype_fwd (be_valuetype_fwd *node); - // visit valuetype forward type - - virtual int visit_predefined_type (be_predefined_type *node); - // visit predefined type - - virtual int visit_sequence (be_sequence *node); - // visit sequence type - - virtual int visit_string (be_string *node); - // visit string type - - virtual int visit_structure (be_structure *node); - // visit structure type - - virtual int visit_typedef (be_typedef *node); - // visit typedefed type - - virtual int visit_union (be_union *node); - // visit union type - - void setenclosings (const char *pre, const char *post); - const char *pre_op (); - const char *post_op (); - // print additional material around the field (e.g. virtual before) - -private: - const char *pre_op_; - const char *post_op_; -}; - -#endif /* _BE_VISITOR_VALUETYPE_FIELD_CH_H_ */ diff --git a/TAO/TAO_IDL/be_include/be_visitor_valuetype/field_cs.h b/TAO/TAO_IDL/be_include/be_visitor_valuetype/field_cs.h deleted file mode 100644 index 8fc2ef71e8e..00000000000 --- a/TAO/TAO_IDL/be_include/be_visitor_valuetype/field_cs.h +++ /dev/null @@ -1,99 +0,0 @@ -/* -*- c++ -*- */ -// -// $Id$ -// - -// ============================================================================ -// -// = LIBRARY -// TAO IDL -// -// = FILENAME -// field_cs.h -// -// = DESCRIPTION -// Visitor for the Valuetype class. -// This one generates code for accessor and modifier functions of -// valuetype state members (in the stub or inline file). -// -// = AUTHOR -// Torsten Kuepper <kuepper2@lfa.uni-wuppertal.de> -// derived from be_visitor_union_branch/public_ci.h -// -// ============================================================================ - -#ifndef _BE_VISITOR_VALUETYPE_FIELD_CS_H_ -#define _BE_VISITOR_VALUETYPE_FIELD_CS_H_ - -class be_visitor_valuetype_field_cs : public be_visitor_decl -{ - // - // = TITLE - // be_visitor_valuetype_field_cs - // - // = DESCRIPTION - // This visitor is used to generate the accessors and modifiers - // for the members of valuetype - // -public: - be_visitor_valuetype_field_cs (be_visitor_context *ctx); - // constructor - - ~be_visitor_valuetype_field_cs (void); - // destructor - - virtual int visit_field (be_field *node); - // visit the field node - - // =visit operations on all possible data types that a union_branch can be - - virtual int visit_array (be_array *node); - // visit array type - - virtual int visit_enum (be_enum *node); - // visit enum type - - virtual int visit_interface (be_interface *node); - // visit interface type - - virtual int visit_interface_fwd (be_interface_fwd *node); - // visit interface forward type - - virtual int visit_valuetype (be_valuetype *node); - // visit valuetype type - - virtual int visit_valuetype_fwd (be_valuetype_fwd *node); - // visit valuetype forward type - - virtual int visit_predefined_type (be_predefined_type *node); - // visit predefined type - - virtual int visit_sequence (be_sequence *node); - // visit sequence type - - virtual int visit_string (be_string *node); - // visit string type - - virtual int visit_structure (be_structure *node); - // visit structure type - - virtual int visit_typedef (be_typedef *node); - // visit typedefed type - - virtual int visit_union (be_union *node); - // visit union type - - void setenclosings (const char *pre); - const char *pre_op (); - // print additional string before op (e.g. ACE_INLINE) - - void op_name (be_valuetype *node, TAO_OutStream *os); - // if (in_obv_space_) print OBV_name else print name - - idl_bool in_obv_space_; -private: - const char *pre_op_; -}; - -#endif /* _BE_VISITOR_VALUETYPE_FIELD_CS_H_ */ - diff --git a/TAO/TAO_IDL/be_include/be_visitor_valuetype/marshal_ch.h b/TAO/TAO_IDL/be_include/be_visitor_valuetype/marshal_ch.h deleted file mode 100644 index 662529b8de8..00000000000 --- a/TAO/TAO_IDL/be_include/be_visitor_valuetype/marshal_ch.h +++ /dev/null @@ -1,49 +0,0 @@ -/* -*- c++ -*- */ -// -// $Id$ -// - -// ============================================================================ -// -// = LIBRARY -// TAO IDL -// -// = FILENAME -// marshal_ch.h -// -// = DESCRIPTION -// Concrete visitor for valuetypes. -// This one provides code generation for marshalling. -// -// = AUTHOR -// Torsten Kuepper <kuepper2@lfa.uni-wuppertal.de> -// -// ============================================================================ - -#ifndef _BE_VISITOR_VALUETYPE_MARSHAL_CH_H_ -#define _BE_VISITOR_VALUETYPE_MARSHAL_CH_H_ - -class be_visitor_valuetype_marshal_ch : public be_visitor_scope -{ - // - // = TITLE - // be_visitor_valuetype_marshal_ch - // - // = DESCRIPTION - // This is a concrete visitor for interface that generates the CDR operator - // declarations - // - -public: - be_visitor_valuetype_marshal_ch (be_visitor_context *ctx); - // constructor - - ~be_visitor_valuetype_marshal_ch (void); - // destructor - - virtual int visit_valuetype (be_valuetype *node); - // visit valuetype - -}; - -#endif /* _BE_VISITOR_VALUETYPE_MARSHAL_CH_H_ */ diff --git a/TAO/TAO_IDL/be_include/be_visitor_valuetype/marshal_cs.h b/TAO/TAO_IDL/be_include/be_visitor_valuetype/marshal_cs.h deleted file mode 100644 index 8ec036d370f..00000000000 --- a/TAO/TAO_IDL/be_include/be_visitor_valuetype/marshal_cs.h +++ /dev/null @@ -1,51 +0,0 @@ -/* -*- c++ -*- */ -// -// $Id$ -// - -// ============================================================================ -// -// = LIBRARY -// TAO IDL -// -// = FILENAME -// marshal_cs.h -// -// = DESCRIPTION -// Concrete visitor for valuetypes. -// This one provides code generation for marshalling. -// -// = AUTHOR -// Torsten Kuepper <kuepper2@lfa.uni-wuppertal.de> -// -// ============================================================================ - -#ifndef _BE_VISITOR_VALUETYPE_MARSHAL_CS_H_ -#define _BE_VISITOR_VALUETYPE_MARSHAL_CS_H_ - -class be_visitor_valuetype_marshal_cs : public be_visitor_scope -{ - // - // = TITLE - // be_visitor_valuetype_marshal_cs - // - // = DESCRIPTION - // This is a concrete visitor for interface that generates the CDR operator - // declarations - // - -public: - be_visitor_valuetype_marshal_cs (be_visitor_context *ctx); - // constructor - - ~be_visitor_valuetype_marshal_cs (void); - // destructor - - virtual int visit_valuetype (be_valuetype *node); - // visit valuetype - - void class_name (be_valuetype *node, TAO_OutStream *os); - int gen_fields (be_valuetype *node, be_visitor_context &ctx); -}; - -#endif /* _BE_VISITOR_VALUETYPE_MARSHAL_CS_H_ */ diff --git a/TAO/TAO_IDL/be_include/be_visitor_valuetype/obv_module.h b/TAO/TAO_IDL/be_include/be_visitor_valuetype/obv_module.h deleted file mode 100644 index 84e82d06cca..00000000000 --- a/TAO/TAO_IDL/be_include/be_visitor_valuetype/obv_module.h +++ /dev/null @@ -1,50 +0,0 @@ -/* -*- c++ -*- */ -// -// $Id$ -// - -// ============================================================================ -// -// = LIBRARY -// TAO IDL -// -// = FILENAME -// module_obv.h -// -// = DESCRIPTION -// Concrete visitor for the Module class -// This provides code generation for the module in the header -// for the OBV_ namespace -// -// = AUTHOR -// Torsten Kuepper <kuepper2@lfa.uni-wuppertal.de> -// -// ============================================================================ - -#ifndef _BE_VISITOR_VALUETYPE_OBV_MODULE_H_ -#define _BE_VISITOR_VALUETYPE_OBV_MODULE_H_ - -class be_visitor_obv_module : public be_visitor_scope -{ - // - // = TITLE - // be_visitor_obv_module - // - // = DESCRIPTION - // This is a concrete visitor to generate the header for module - // OBV_ namespace - // -public: - be_visitor_obv_module (be_visitor_context *ctx); - // constructor - - ~be_visitor_obv_module (void); - // destructor - - virtual int visit_module (be_module *node); - - virtual int visit_valuetype (be_valuetype *node); - -}; - -#endif /* _BE_VISITOR_VALUETYPE_OBV_MODULE_H_ */ diff --git a/TAO/TAO_IDL/be_include/be_visitor_valuetype/valuetype.h b/TAO/TAO_IDL/be_include/be_visitor_valuetype/valuetype.h deleted file mode 100644 index 745e5e73e0f..00000000000 --- a/TAO/TAO_IDL/be_include/be_visitor_valuetype/valuetype.h +++ /dev/null @@ -1,103 +0,0 @@ -// -// $Id$ -// -/* -*- c++ -*- */ -// ============================================================================ -// -// = LIBRARY -// TAO IDL -// -// = FILENAME -// valuetype.h -// -// = DESCRIPTION -// Concrete visitor for the Valuetype node. -// This one provides the generic visitor for valuetypes from which others -// will inherit. -// -// = AUTHOR -// Torsten Kuepper <kuepper2@lfa.uni-wuppertal.de> -// based on interface.h from Aniruddha Gokhale -// -// ============================================================================ - -#ifndef _BE_VALUETYPE_VALUETYPE_H_ -#define _BE_VALUETYPE_VALUETYPE_H_ - - -class be_visitor_valuetype : public be_visitor_scope -{ - // - // = TITLE - // be_visitor_valuetype - // - // = DESCRIPTION - // This is a concrete visitor for valuetype that abstracts all common tasks - // - -public: - be_visitor_valuetype (be_visitor_context *ctx); - // constructor - - ~be_visitor_valuetype (void); - // destructor - - virtual int visit_valuetype (be_valuetype *node); - // visit the valuetype node - - virtual int visit_valuetype_scope (be_valuetype *node); - // visit the scope of the valuetype node - // (in public/private field order) - - virtual void begin_public (); - virtual void begin_private (); - - // =visit methods on all elements syntactically valid in a Valuetype scope - - virtual int visit_attribute (be_attribute *node); - // visit attribute - - virtual int visit_constant (be_constant *node); - // visit a constant - - virtual int visit_enum (be_enum *node); - // visit an enum - - virtual int visit_operation (be_operation *node); - // visit operation - - virtual int visit_exception (be_exception *node); - // visit exception (not used) - - virtual int visit_structure (be_structure *node); - // visit a structure - - virtual int visit_union (be_union *node); - // visit a union - - virtual int visit_typedef (be_typedef *node); - // visit the typedef node - - virtual int visit_field (be_field *node); - // visit a field - - // =helper methods for generation of fields - - //int gen_field_i (be_field *node, idl_bool make_inline); - // field accessor and modifier implemantation - - int gen_pd (be_valuetype *node); - // private data fields for scope - - int gen_field_pd (be_field *node); - // private data for field - - virtual int gen_init_defn (be_valuetype *node); - // generate the _init class definition - - virtual int gen_init_impl (be_valuetype *node); - // generate the _init implementation - -}; - -#endif /* _BE_VALUETYPE_VALUETYPE_H_ */ diff --git a/TAO/TAO_IDL/be_include/be_visitor_valuetype/valuetype_ch.h b/TAO/TAO_IDL/be_include/be_visitor_valuetype/valuetype_ch.h deleted file mode 100644 index 527262a2721..00000000000 --- a/TAO/TAO_IDL/be_include/be_visitor_valuetype/valuetype_ch.h +++ /dev/null @@ -1,55 +0,0 @@ -// -// $Id$ -// -/* -*- c++ -*- */ -// ============================================================================ -// -// = LIBRARY -// TAO IDL -// -// = FILENAME -// valuetype_ch.h -// -// = DESCRIPTION -// Concrete visitor for the Valuetype node. -// This one provides code generation for valuetypes in the (client) header. -// -// = AUTHOR -// Torsten Kuepper <kuepper2@lfa.uni-wuppertal.de>, -// based on code from Aniruddha Gokhale -// -// ============================================================================ - -#ifndef _BE_VALUETYPE_VALUETYPE_CH_H_ -#define _BE_VALUETYPE_VALUETYPE_CH_H_ - -// we need derived valuetype visitors for the client and server header files. For -// the others, they use the default valuetype visitor - -class be_visitor_valuetype_ch : public be_visitor_valuetype -{ - // - // = TITLE - // be_visitor_valuetype_ch - // - // = DESCRIPTION - // This is a concrete visitor to generate the client header for valuetype - // - // -public: - be_visitor_valuetype_ch (be_visitor_context *ctx); - // constructor - - ~be_visitor_valuetype_ch (void); - // destructor - - virtual int visit_valuetype (be_valuetype *node); - - virtual int visit_operation (be_operation *node); - virtual int visit_field (be_field *node); - - void begin_public (); - void begin_private (); -}; - -#endif /* _BE_VALUETYPE_VALUETYPE_CH_H_ */ diff --git a/TAO/TAO_IDL/be_include/be_visitor_valuetype/valuetype_ci.h b/TAO/TAO_IDL/be_include/be_visitor_valuetype/valuetype_ci.h deleted file mode 100644 index 44e8445de09..00000000000 --- a/TAO/TAO_IDL/be_include/be_visitor_valuetype/valuetype_ci.h +++ /dev/null @@ -1,51 +0,0 @@ -// -// $Id$ -// -/* -*- c++ -*- */ -// ============================================================================ -// -// = LIBRARY -// TAO IDL -// -// = FILENAME -// valuetype_ci.h -// -// = DESCRIPTION -// Concrete visitor for the Valuetype node. -// This one provides code generation for valuetypes in the client inline. -// -// = AUTHOR -// Torsten Kuepper <kuepper2@lfa.uni-wuppertal.de> -// based on code from Aniruddha Gokhale -// -// ============================================================================ - -#ifndef _BE_VALUETYPE_VALUETYPE_CI_H_ -#define _BE_VALUETYPE_VALUETYPE_CI_H_ - -class be_visitor_valuetype_ci : public be_visitor_valuetype -{ - // - // = TITLE - // be_visitor_valuetype_ci - // - // = DESCRIPTION - // This is a concrete visitor to generate the client inline for valuetype - // - // -public: - be_visitor_valuetype_ci (be_visitor_context *ctx); - // constructor - - ~be_visitor_valuetype_ci (void); - // destructor - - virtual int visit_valuetype (be_valuetype *node); - // set the right context and make a visitor - - virtual int visit_field (be_field *node); -private: - idl_bool opt_accessor_; -}; - -#endif /* _BE_VALUETYPE_VALUETYPE_CI_H_ */ diff --git a/TAO/TAO_IDL/be_include/be_visitor_valuetype/valuetype_cs.h b/TAO/TAO_IDL/be_include/be_visitor_valuetype/valuetype_cs.h deleted file mode 100644 index b05f5ddc9ab..00000000000 --- a/TAO/TAO_IDL/be_include/be_visitor_valuetype/valuetype_cs.h +++ /dev/null @@ -1,47 +0,0 @@ -// -// $Id$ -// -/* -*- c++ -*- */ -// ============================================================================ -// -// = LIBRARY -// TAO IDL -// -// = FILENAME -// valuetype_cs.h -// -// = DESCRIPTION -// Concrete visitor for the Valuetype node. -// This one provides code generation for valuetypes in the client stubs. -// -// = AUTHOR -// Torsten Kuepper <kuepper2@lfa.uni-wuppertal.de> -// based on code from Aniruddha Gokhale -// -// ============================================================================ - -#ifndef _BE_VALUETYPE_VALUETYPE_CS_H_ -#define _BE_VALUETYPE_VALUETYPE_CS_H_ - -class be_visitor_valuetype_cs : public be_visitor_valuetype -{ - // - // = TITLE - // be_visitor_valuetype_cs - // - // = DESCRIPTION - // This is a concrete visitor to generate the client stubs for valuetype - // - // -public: - be_visitor_valuetype_cs (be_visitor_context *ctx); - // constructor - - ~be_visitor_valuetype_cs (void); - // destructor - - virtual int visit_valuetype (be_valuetype *node); - // set the right context and make a visitor -}; - -#endif /* _BE_VALUETYPE_VALUETYPE_CS_H_ */ diff --git a/TAO/TAO_IDL/be_include/be_visitor_valuetype/valuetype_obv_ch.h b/TAO/TAO_IDL/be_include/be_visitor_valuetype/valuetype_obv_ch.h deleted file mode 100644 index 10fc526dca8..00000000000 --- a/TAO/TAO_IDL/be_include/be_visitor_valuetype/valuetype_obv_ch.h +++ /dev/null @@ -1,55 +0,0 @@ -// -// $Id$ -// -/* -*- c++ -*- */ -// ============================================================================ -// -// = LIBRARY -// TAO IDL -// -// = FILENAME -// valuetype_ch.h -// -// = DESCRIPTION -// Concrete visitor for the Valuetype node. -// This one provides code generation for valuetype OBV_ class -// in the (client) header. -// -// = AUTHOR -// Torsten Kuepper <kuepper2@lfa.uni-wuppertal.de>, -// based on code from Aniruddha Gokhale -// -// ============================================================================ - -#ifndef _BE_VALUETYPE_VALUETYPE_OBV_CH_H_ -#define _BE_VALUETYPE_VALUETYPE_OBV_CH_H_ - -// we need derived valuetype visitors for the client and server header files. For -// the others, they use the default valuetype visitor - -class be_visitor_valuetype_obv_ch : public be_visitor_valuetype -{ - // - // = TITLE - // be_visitor_valuetype_ch - // - // = DESCRIPTION - // This is a concrete visitor to generate the header for valuetype - // OBV_ class - // -public: - be_visitor_valuetype_obv_ch (be_visitor_context *ctx); - // constructor - - ~be_visitor_valuetype_obv_ch (void); - // destructor - - virtual int visit_valuetype (be_valuetype *node); - - virtual int visit_field (be_field *node); - - void begin_public (); - void begin_private (); -}; - -#endif /* _BE_VALUETYPE_VALUETYPE_OBV_CH_H_ */ diff --git a/TAO/TAO_IDL/be_include/be_visitor_valuetype/valuetype_obv_ci.h b/TAO/TAO_IDL/be_include/be_visitor_valuetype/valuetype_obv_ci.h deleted file mode 100644 index ba4f3b0d584..00000000000 --- a/TAO/TAO_IDL/be_include/be_visitor_valuetype/valuetype_obv_ci.h +++ /dev/null @@ -1,52 +0,0 @@ -// -// $Id$ -// -/* -*- c++ -*- */ -// ============================================================================ -// -// = LIBRARY -// TAO IDL -// -// = FILENAME -// valuetype_ci.h -// -// = DESCRIPTION -// Concrete visitor for the Valuetype node. -// This one provides code generation for valuetype OBV_ class -// in the (client) header. -// -// = AUTHOR -// Torsten Kuepper <kuepper2@lfa.uni-wuppertal.de>, -// based on code from Aniruddha Gokhale -// -// ============================================================================ - -#ifndef _BE_VALUETYPE_VALUETYPE_OBV_CI_H_ -#define _BE_VALUETYPE_VALUETYPE_OBV_CI_H_ - -// we need derived valuetype visitors for the client and server header files. For -// the others, they use the default valuetype visitor - -class be_visitor_valuetype_obv_ci : public be_visitor_valuetype -{ - // - // = TITLE - // be_visitor_valuetype_ci - // - // = DESCRIPTION - // This is a concrete visitor to generate the implementation for valuetype - // OBV_ class - // -public: - be_visitor_valuetype_obv_ci (be_visitor_context *ctx); - // constructor - - ~be_visitor_valuetype_obv_ci (void); - // destructor - - virtual int visit_valuetype (be_valuetype *node); - - virtual int visit_field (be_field *node); -}; - -#endif /* _BE_VALUETYPE_VALUETYPE_OBV_CI_H_ */ diff --git a/TAO/TAO_IDL/be_include/be_visitor_valuetype/valuetype_obv_cs.h b/TAO/TAO_IDL/be_include/be_visitor_valuetype/valuetype_obv_cs.h deleted file mode 100644 index fc7eba823b4..00000000000 --- a/TAO/TAO_IDL/be_include/be_visitor_valuetype/valuetype_obv_cs.h +++ /dev/null @@ -1,50 +0,0 @@ -// -// $Id$ -// -/* -*- c++ -*- */ -// ============================================================================ -// -// = LIBRARY -// TAO IDL -// -// = FILENAME -// valuetype_obv_cs.cpp -// -// = DESCRIPTION -// Visitor generating code for Valuetypes -// OBV_ class implementation -// (see C++ mapping OMG 20.17) -// -// = AUTHOR -// Torsten Kuepper <kuepper2@lfa.uni-wuppertal.de>, -// derived from interface_ch.cpp from Aniruddha Gokhale -// -// ============================================================================ - -#ifndef _BE_VALUETYPE_VALUETYPE_OBV_CS_H_ -#define _BE_VALUETYPE_VALUETYPE_OBV_CS_H_ - -class be_visitor_valuetype_obv_cs : public be_visitor_scope -{ - // - // = TITLE - // be_visitor_valuetype_obv_cs - // - // = DESCRIPTION - // This is a concrete visitor to generate the implementation for valuetype - // OBV_ class - // -public: - be_visitor_valuetype_obv_cs (be_visitor_context *ctx); - // constructor - - ~be_visitor_valuetype_obv_cs (void); - // destructor - - virtual int visit_valuetype (be_valuetype *node); - - virtual int visit_field (be_field *node); -}; - -#endif /* _BE_VALUETYPE_VALUETYPE_OBV_CS_H_ */ - diff --git a/TAO/TAO_IDL/be_include/be_visitor_valuetype_fwd.h b/TAO/TAO_IDL/be_include/be_visitor_valuetype_fwd.h deleted file mode 100644 index 435a992ae9d..00000000000 --- a/TAO/TAO_IDL/be_include/be_visitor_valuetype_fwd.h +++ /dev/null @@ -1,37 +0,0 @@ -/* -*- C++ -*- */ -// -// $Id$ -// - -// ============================================================================ -// -// = LIBRARY -// TAO IDL -// -// = FILENAME -// be_visitor_valuetype_fwd.h -// -// = DESCRIPTION -// Concrete visitor for the valuetype_fwd class -// -// = AUTHOR -// Torsten Kuepper <kuepper2@lfa.uni-wuppertal.de> -// based on code from Aniruddha Gokhale (be_visitor_interface_fwd.h) -// -// ============================================================================ - -#ifndef TAO_BE_VISITOR_VALUETYPE_FWD_H -#define TAO_BE_VISITOR_VALUETYPE_FWD_H - -#ifdef IDL_HAS_VALUETYPE - -#include "be_visitor.h" -#include "be_visitor_scope.h" - -#include "be_visitor_valuetype_fwd/valuetype_fwd_ch.h" -#include "be_visitor_valuetype_fwd/valuetype_fwd_ci.h" -#include "be_visitor_valuetype_fwd/cdr_op_ci.h" - -#endif /* IDL_HAS_VALUETYPE */ - -#endif /* TAO_BE_VISITOR_VALUETYPE_FWD_H */ diff --git a/TAO/TAO_IDL/be_include/be_visitor_valuetype_fwd/cdr_op_ci.h b/TAO/TAO_IDL/be_include/be_visitor_valuetype_fwd/cdr_op_ci.h deleted file mode 100644 index 756824a5e28..00000000000 --- a/TAO/TAO_IDL/be_include/be_visitor_valuetype_fwd/cdr_op_ci.h +++ /dev/null @@ -1,52 +0,0 @@ -/* -*- c++ -*- */ -// -// $Id$ -// - -// ============================================================================ -// -// = LIBRARY -// TAO IDL -// -// = FILENAME -// cdr_op_ci.h -// -// = DESCRIPTION -// Concrete visitor for the valuetype_fwd class -// This one provides code generation for the CDR operators -// (actually just their declarations) for the valuetype forward -// declaration in the client inline. -// -// = AUTHOR -// Torsten Kuepper -// based on code from Aniruddha Gokhale & Carlos O'Ryan -// -// ============================================================================ - -#ifndef BE_VISITOR_INTERFACE_FWD_CDR_OP_CI_H -#define BE_VISITOR_INTERFACE_FWD_CDR_OP_CI_H - -class be_visitor_valuetype_fwd_cdr_op_ci : public be_visitor_decl -{ - // - // = TITLE - // be_visitor_valuetype_fwd_cdr_op_ci - // - // = DESCRIPTION - // This is a concrete visitor for valuetype that generates the CDR - // operator forward declarations. - // - -public: - be_visitor_valuetype_fwd_cdr_op_ci (be_visitor_context *ctx); - // constructor - - ~be_visitor_valuetype_fwd_cdr_op_ci (void); - // destructor - - virtual int visit_valuetype_fwd (be_valuetype_fwd *node); - // visit valuetype - -}; - -#endif /* BE_VISITOR_INTERFACE_FWD_CDR_OP_CI_H */ diff --git a/TAO/TAO_IDL/be_include/be_visitor_valuetype_fwd/valuetype_fwd_ch.h b/TAO/TAO_IDL/be_include/be_visitor_valuetype_fwd/valuetype_fwd_ch.h deleted file mode 100644 index 57103509505..00000000000 --- a/TAO/TAO_IDL/be_include/be_visitor_valuetype_fwd/valuetype_fwd_ch.h +++ /dev/null @@ -1,48 +0,0 @@ -// -// $Id$ -// -/* -*- c++ -*- */ -// ============================================================================ -// -// = LIBRARY -// TAO IDL -// -// = FILENAME -// valuetype_fwd_ch.h -// -// = DESCRIPTION -// Concrete visitor for the Interface Forward node. -// This one provides code generation for valuetype forward node. -// -// = AUTHOR -// Torsten Kuepper -// based on code from Aniruddha Gokhale -// -// ============================================================================ - -#ifndef _BE_INTERFACE_INTERFACE_FWD_CH_H_ -#define _BE_INTERFACE_INTERFACE_FWD_CH_H_ - -class be_visitor_valuetype_fwd_ch : public be_visitor_decl -{ - // - // = TITLE - // be_visitor_valuetype_fwd_ch - // - // = DESCRIPTION - // This is the visitor for valuetype_fwd for the header file - // - // -public: - be_visitor_valuetype_fwd_ch (be_visitor_context *ctx); - // constructor - - ~be_visitor_valuetype_fwd_ch (void); - // destructor - - virtual int visit_valuetype_fwd (be_valuetype_fwd *node); - // visit valuetype_fwd. - -}; - -#endif /* _BE_INTERFACE_INTERFACE_FWD_CH_H_ */ diff --git a/TAO/TAO_IDL/be_include/be_visitor_valuetype_fwd/valuetype_fwd_ci.h b/TAO/TAO_IDL/be_include/be_visitor_valuetype_fwd/valuetype_fwd_ci.h deleted file mode 100644 index e32639d9a6b..00000000000 --- a/TAO/TAO_IDL/be_include/be_visitor_valuetype_fwd/valuetype_fwd_ci.h +++ /dev/null @@ -1,48 +0,0 @@ -// -// $Id$ -// -/* -*- c++ -*- */ -// ============================================================================ -// -// = LIBRARY -// TAO IDL -// -// = FILENAME -// valuetype_fwd_ci.h -// -// = DESCRIPTION -// Concrete visitor for the Interface Forward node. -// This one provides code generation for valuetype forward node. -// -// = AUTHOR -// Torsten Kuepper -// based on code from Aniruddha Gokhale -// -// ============================================================================ - -#ifndef _BE_INTERFACE_INTERFACE_FWD_CI_H_ -#define _BE_INTERFACE_INTERFACE_FWD_CI_H_ - -class be_visitor_valuetype_fwd_ci : public be_visitor_decl -{ - // - // = TITLE - // be_visitor_valuetype_fwd_ci - // - // = DESCRIPTION - // This is the visitor for valuetype_fwd for the inline file - // - // -public: - be_visitor_valuetype_fwd_ci (be_visitor_context *ctx); - // constructor - - ~be_visitor_valuetype_fwd_ci (void); - // destructor - - virtual int visit_valuetype_fwd (be_valuetype_fwd *node); - // visit valuetype_fwd - -}; - -#endif /* _BE_INTERFACE_INTERFACE_FWD_CH_I_ */ |