diff options
author | gokhale <asgokhale@users.noreply.github.com> | 1998-06-18 13:03:02 +0000 |
---|---|---|
committer | gokhale <asgokhale@users.noreply.github.com> | 1998-06-18 13:03:02 +0000 |
commit | d390c2dd3ece730c4aa679260914f77c138fed6a (patch) | |
tree | 5ca8c196f359f7d4abd86490a5d7fd83e5e36330 /TAO/TAO_IDL/be_include/be_visitor_union | |
parent | aaecbedb1d5fda5b558ec9da329df7c138862726 (diff) | |
download | ATCD-d390c2dd3ece730c4aa679260914f77c138fed6a.tar.gz |
*** empty log message ***
Diffstat (limited to 'TAO/TAO_IDL/be_include/be_visitor_union')
9 files changed, 461 insertions, 0 deletions
diff --git a/TAO/TAO_IDL/be_include/be_visitor_union/any_op_ch.h b/TAO/TAO_IDL/be_include/be_visitor_union/any_op_ch.h new file mode 100644 index 00000000000..2f045164396 --- /dev/null +++ b/TAO/TAO_IDL/be_include/be_visitor_union/any_op_ch.h @@ -0,0 +1,52 @@ +/* -*- c++ -*- */ +// +// $Id$ +// + +// ============================================================================ +// +// = LIBRARY +// TAO IDL +// +// = FILENAME +// any_op_ch.h +// +// = DESCRIPTION +// Visitor for the Union class. +// This one generates code for the Any operators for the Union in the client +// header. +// +// = AUTHOR +// Aniruddha Gokhale +// +// ============================================================================ + +#if !defined (_BE_VISITOR_UNION_ANY_OP_CH_H_) +#define _BE_VISITOR_UNION_ANY_OP_CH_H_ + +class be_visitor_union_any_op_ch : public be_visitor_union +{ + // + // = TITLE + // be_visitor_union_any_op_ch + // + // = DESCRIPTION + // This is a concrete visitor for union that generates the Any operator + // declarations + // + +public: + be_visitor_union_any_op_ch (be_visitor_context *ctx); + // constructor + + ~be_visitor_union_any_op_ch (void); + // destructor + + virtual int visit_union (be_union *node); + // visit union + + virtual int visit_union_branch (be_union_branch *node); + // visit union_branch +}; + +#endif /* _BE_VISITOR_UNION_ANY_OP_CH_H_ */ diff --git a/TAO/TAO_IDL/be_include/be_visitor_union/any_op_cs.h b/TAO/TAO_IDL/be_include/be_visitor_union/any_op_cs.h new file mode 100644 index 00000000000..95bf8baaa82 --- /dev/null +++ b/TAO/TAO_IDL/be_include/be_visitor_union/any_op_cs.h @@ -0,0 +1,52 @@ +/* -*- c++ -*- */ +// +// $Id$ +// + +// ============================================================================ +// +// = LIBRARY +// TAO IDL +// +// = FILENAME +// any_op_cs.h +// +// = DESCRIPTION +// Visitor for the Union class. +// This one generates code for the Any operators for the Union in the client +// header. +// +// = AUTHOR +// Aniruddha Gokhale +// +// ============================================================================ + +#if !defined (_BE_VISITOR_UNION_ANY_OP_CS_H_) +#define _BE_VISITOR_UNION_ANY_OP_CS_H_ + +class be_visitor_union_any_op_cs : public be_visitor_union +{ + // + // = TITLE + // be_visitor_union_any_op_cs + // + // = DESCRIPTION + // This is a concrete visitor for union that generates the Any operator + // implementations + // + +public: + be_visitor_union_any_op_cs (be_visitor_context *ctx); + // constructor + + ~be_visitor_union_any_op_cs (void); + // destructor + + virtual int visit_union (be_union *node); + // visit union + + virtual int visit_union_branch (be_union_branch *node); + // visit union_branch +}; + +#endif /* _BE_VISITOR_UNION_ANY_OP_CS_H_ */ diff --git a/TAO/TAO_IDL/be_include/be_visitor_union/discriminant_ch.h b/TAO/TAO_IDL/be_include/be_visitor_union/discriminant_ch.h new file mode 100644 index 00000000000..5c46ba2cd58 --- /dev/null +++ b/TAO/TAO_IDL/be_include/be_visitor_union/discriminant_ch.h @@ -0,0 +1,55 @@ +/* -*- c++ -*- */ +// +// $Id$ +// + +// ============================================================================ +// +// = LIBRARY +// TAO IDL +// +// = FILENAME +// discriminant_ch.h +// +// = DESCRIPTION +// Visitor for the Union class. +// This one generates code for the discriminant of the Union in the client +// header. +// +// = AUTHOR +// Aniruddha Gokhale +// +// ============================================================================ + +#if !defined (_BE_VISITOR_UNION_DISCRIMINANT_CH_H_) +#define _BE_VISITOR_UNION_DISCRIMINANT_CH_H_ + +class be_visitor_union_discriminant_ch : public be_visitor_decl +{ + // + // = TITLE + // be_visitor_union_discriminant_ch + // + // = DESCRIPTION + // This is a concrete visitor to generate the client header for union + // discriminant + // + // +public: + be_visitor_union_discriminant_ch (be_visitor_context *ctx); + // constructor + + ~be_visitor_union_discriminant_ch (void); + // destructor + + virtual int visit_enum (be_enum *node); + // visit an enum + + virtual int visit_predefined_type (be_predefined_type *node); + // visit a predefined type + + virtual int visit_typedef (be_typedef *node); + // visit a typedef node +}; + +#endif /* _BE_VISITOR_UNION_DISCRIMINANT_CH_H_ */ diff --git a/TAO/TAO_IDL/be_include/be_visitor_union/discriminant_ci.h b/TAO/TAO_IDL/be_include/be_visitor_union/discriminant_ci.h new file mode 100644 index 00000000000..bb44c2f12ee --- /dev/null +++ b/TAO/TAO_IDL/be_include/be_visitor_union/discriminant_ci.h @@ -0,0 +1,55 @@ +/* -*- c++ -*- */ +// +// $Id$ +// + +// ============================================================================ +// +// = LIBRARY +// TAO IDL +// +// = FILENAME +// discriminant_ci.h +// +// = DESCRIPTION +// Visitor for the Union class. +// This one generates code for the discriminant of the Union in the client +// inline file. +// +// = AUTHOR +// Aniruddha Gokhale +// +// ============================================================================ + +#if !defined (_BE_VISITOR_UNION_DISCRIMINANT_CI_H_) +#define _BE_VISITOR_UNION_DISCRIMINANT_CI_H_ + +class be_visitor_union_discriminant_ci : public be_visitor_decl +{ + // + // = TITLE + // be_visitor_union_discriminant_ci + // + // = DESCRIPTION + // This is a concrete visitor to generate the client inline for union + // discriminant + // + // +public: + be_visitor_union_discriminant_ci (be_visitor_context *ctx); + // constructor + + ~be_visitor_union_discriminant_ci (void); + // destructor + + virtual int visit_enum (be_enum *node); + // visit an enum + + virtual int visit_predefined_type (be_predefined_type *node); + // visit a predefined type + + virtual int visit_typedef (be_typedef *node); + // visit a typedef node +}; + +#endif /* _BE_VISITOR_UNION_DISCRIMINANT_CI_H_ */ diff --git a/TAO/TAO_IDL/be_include/be_visitor_union/discriminant_cs.h b/TAO/TAO_IDL/be_include/be_visitor_union/discriminant_cs.h new file mode 100644 index 00000000000..23cbe129a22 --- /dev/null +++ b/TAO/TAO_IDL/be_include/be_visitor_union/discriminant_cs.h @@ -0,0 +1,51 @@ +/* -*- c++ -*- */ +// +// $Id$ +// + +// ============================================================================ +// +// = LIBRARY +// TAO IDL +// +// = FILENAME +// discriminant_cs.h +// +// = DESCRIPTION +// Visitor for the Union class. +// This one generates code for the discriminant of the Union in the client +// stubs. +// +// = AUTHOR +// Aniruddha Gokhale +// +// ============================================================================ + +#if !defined (_BE_VISITOR_UNION_DISCRIMINANT_CS_H_) +#define _BE_VISITOR_UNION_DISCRIMINANT_CS_H_ + +class be_visitor_union_discriminant_cs : public be_visitor_decl +{ + // + // = TITLE + // be_visitor_union_discriminant_cs + // + // = DESCRIPTION + // This is a concrete visitor to generate the client stubs for union + // discriminant + // + // +public: + be_visitor_union_discriminant_cs (be_visitor_context *ctx); + // constructor + + ~be_visitor_union_discriminant_cs (void); + // destructor + + virtual int visit_enum (be_enum *node); + // visit an enum. Required to generate the typecode for an enum definition + // appearing side the union + +}; + +#endif /* _BE_VISITOR_UNION_DISCRIMINANT_CS_H_ */ diff --git a/TAO/TAO_IDL/be_include/be_visitor_union/union.h b/TAO/TAO_IDL/be_include/be_visitor_union/union.h new file mode 100644 index 00000000000..568f32b6d8b --- /dev/null +++ b/TAO/TAO_IDL/be_include/be_visitor_union/union.h @@ -0,0 +1,52 @@ +/* -*- c++ -*- */ +// +// $Id$ +// + +// ============================================================================ +// +// = LIBRARY +// TAO IDL +// +// = FILENAME +// union.h +// +// = DESCRIPTION +// Visitor for the Union class. +// This one is a generic visitor. +// +// = AUTHOR +// Aniruddha Gokhale +// +// ============================================================================ + +#if !defined (_BE_VISITOR_UNION_UNION_H_) +#define _BE_VISITOR_UNION_UNION_H_ + +class be_visitor_union : public be_visitor_scope +{ + // + // = TITLE + // be_visitor_union + // + // = DESCRIPTION + // This is the base visitor for union + // + // +public: + be_visitor_union (be_visitor_context *ctx); + // constructor + + ~be_visitor_union (void); + // destructor + + virtual int visit_union (be_union *node); + // visit union. We provide code for this method in the derived class + + // =visit operations on syntactically valid elements in our scope + + virtual int visit_union_branch (be_union_branch *node); + // visit union_branch +}; + +#endif /* _BE_VISITOR_UNION_UNION_H_ */ diff --git a/TAO/TAO_IDL/be_include/be_visitor_union/union_ch.h b/TAO/TAO_IDL/be_include/be_visitor_union/union_ch.h new file mode 100644 index 00000000000..5d2f389fb5e --- /dev/null +++ b/TAO/TAO_IDL/be_include/be_visitor_union/union_ch.h @@ -0,0 +1,48 @@ +/* -*- c++ -*- */ +// +// $Id$ +// + +// ============================================================================ +// +// = LIBRARY +// TAO IDL +// +// = FILENAME +// union_ch.h +// +// = DESCRIPTION +// Visitor for the Union class. +// This one generates code in the client header. +// +// = AUTHOR +// Aniruddha Gokhale +// +// ============================================================================ + +#if !defined (_BE_VISITOR_UNION_UNION_CH_H_) +#define _BE_VISITOR_UNION_UNION_CH_H_ + +class be_visitor_union_ch : public be_visitor_union +{ + // + // = TITLE + // be_visitor_union_ch + // + // = DESCRIPTION + // This is a concrete visitor to generate the client header for union + // + // +public: + be_visitor_union_ch (be_visitor_context *ctx); + // constructor + + ~be_visitor_union_ch (void); + // destructor + + virtual int visit_union (be_union *node); + // visit union. We provide code for this method in the derived class + +}; + +#endif /* _BE_VISITOR_UNION_UNION_CH_H_ */ diff --git a/TAO/TAO_IDL/be_include/be_visitor_union/union_ci.h b/TAO/TAO_IDL/be_include/be_visitor_union/union_ci.h new file mode 100644 index 00000000000..b0a2c52afe5 --- /dev/null +++ b/TAO/TAO_IDL/be_include/be_visitor_union/union_ci.h @@ -0,0 +1,48 @@ +/* -*- c++ -*- */ +// +// $Id$ +// + +// ============================================================================ +// +// = LIBRARY +// TAO IDL +// +// = FILENAME +// union_ci.h +// +// = DESCRIPTION +// Visitor for the Union class. +// This one generates code in the client inline file. +// +// = AUTHOR +// Aniruddha Gokhale +// +// ============================================================================ + +#if !defined (_BE_VISITOR_UNION_UNION_CI_H_) +#define _BE_VISITOR_UNION_UNION_CI_H_ + +class be_visitor_union_ci : public be_visitor_union +{ + // + // = TITLE + // be_visitor_union_ci + // + // = DESCRIPTION + // This is a concrete visitor to generate the client inline for union + // + // +public: + be_visitor_union_ci (be_visitor_context *ctx); + // constructor + + ~be_visitor_union_ci (void); + // destructor + + virtual int visit_union (be_union *node); + // visit union. We provide code for this method in the derived class + +}; + +#endif /* _BE_VISITOR_UNION_UNION_CI_H_ */ diff --git a/TAO/TAO_IDL/be_include/be_visitor_union/union_cs.h b/TAO/TAO_IDL/be_include/be_visitor_union/union_cs.h new file mode 100644 index 00000000000..3a6ef0322aa --- /dev/null +++ b/TAO/TAO_IDL/be_include/be_visitor_union/union_cs.h @@ -0,0 +1,48 @@ +/* -*- c++ -*- */ +// +// $Id$ +// + +// ============================================================================ +// +// = LIBRARY +// TAO IDL +// +// = FILENAME +// union_cs.h +// +// = DESCRIPTION +// Visitor for the Union class. +// This one generates code in the client stubs. +// +// = AUTHOR +// Aniruddha Gokhale +// +// ============================================================================ + +#if !defined (_BE_VISITOR_UNION_UNION_CS_H_) +#define _BE_VISITOR_UNION_UNION_CS_H_ + +class be_visitor_union_cs : public be_visitor_union +{ + // + // = TITLE + // be_visitor_union_cs + // + // = DESCRIPTION + // This is a concrete visitor to generate the client stubs for union + // + // +public: + be_visitor_union_cs (be_visitor_context *ctx); + // constructor + + ~be_visitor_union_cs (void); + // destructor + + virtual int visit_union (be_union *node); + // visit union. We provide code for this method in the derived class + +}; + +#endif /* _BE_VISITOR_UNION_UNION_CS_H_ */ |