diff options
Diffstat (limited to 'TAO/TAO_IDL/be_include/be_visitor_operation')
44 files changed, 0 insertions, 3305 deletions
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_ */ |