diff options
author | William R. Otte <wotte@dre.vanderbilt.edu> | 2010-09-08 15:10:19 +0000 |
---|---|---|
committer | William R. Otte <wotte@dre.vanderbilt.edu> | 2010-09-08 15:10:19 +0000 |
commit | 7f3c2dc7223baa031b4fbc7fad5db8b3f0ff6c5f (patch) | |
tree | 767397e4f25f557c9a49098856b64cb23fa277f0 /CIAO/tools/IDL3_to_XMI/be_helper.h | |
parent | 6bfe7949e36cc4f1574c69f4ffc63c521757e305 (diff) | |
download | ATCD-7f3c2dc7223baa031b4fbc7fad5db8b3f0ff6c5f.tar.gz |
Wed Sep 8 15:09:06 UTC 2010 William R. Otte <wotte@dre.vanderbilt.edu>
* bin/ciao_tests.lst:
* tests/IDL3_to_XMI:
* tests/IDL3_to_XMI/Bug_3607_Regression:
* tests/IDL3_to_XMI/Bug_3607_Regression/run_test.pl:
* tests/IDL3_to_XMI/Bug_3607_Regression/test.idl:
* tests/IDL3_to_XMI/IDL2XMI_Test:
* tests/IDL3_to_XMI/IDL2XMI_Test/IDL2XMI_Test.mpc:
* tests/IDL3_to_XMI/IDL2XMI_Test/XML_Helper.h:
* tests/IDL3_to_XMI/IDL2XMI_Test/XML_Helper.cpp:
* tests/IDL3_to_XMI/IDL2XMI_Test/run_test.pl:
* tests/IDL3_to_XMI/IDL2XMI_Test/xmlvalidator.cpp:
* tests/IDL3_to_XMI/XMI.dtd:
* tests/IDL3_to_XMI/XMI_For_Array:
* tests/IDL3_to_XMI/XMI_For_Array/run_test.pl:
* tests/IDL3_to_XMI/XMI_For_Array/test.idl:
* tests/IDL3_to_XMI/XMI_For_Included_File:
* tests/IDL3_to_XMI/XMI_For_Included_File/File1.idl:
* tests/IDL3_to_XMI/XMI_For_Included_File/File2.idl:
* tests/IDL3_to_XMI/XMI_For_Included_File/run_test.pl:
* tests/IDL3_to_XMI/XMI_For_Module_Reopen:
* tests/IDL3_to_XMI/XMI_For_Module_Reopen/run_test.pl:
* tests/IDL3_to_XMI/XMI_For_Module_Reopen/test.idl:
* tests/IDL3_to_XMI/XMI_For_Native:
* tests/IDL3_to_XMI/XMI_For_Native/run_test.pl:
* tests/IDL3_to_XMI/XMI_For_Native/test.idl:
* tests/IDL3_to_XMI/XMI_For_Sequence:
* tests/IDL3_to_XMI/XMI_For_Sequence/run_test.pl:
* tests/IDL3_to_XMI/XMI_For_Sequence/test.idl:
* tools/IDL3_to_XMI:
* tools/IDL3_to_XMI/IDL3_TO_XMI.mpc:
* tools/IDL3_to_XMI/IDL3_to_XMI_visitor.h:
* tools/IDL3_to_XMI/IDL3_to_XMI_visitor.cpp:
* tools/IDL3_to_XMI/IR_Simulator_visitor.h:
* tools/IDL3_to_XMI/IR_Simulator_visitor.cpp:
* tools/IDL3_to_XMI/Literals.h:
* tools/IDL3_to_XMI/Literals.cpp:
* tools/IDL3_to_XMI/be_extern.h:
* tools/IDL3_to_XMI/be_global.h:
* tools/IDL3_to_XMI/be_global.cpp:
* tools/IDL3_to_XMI/be_helper.h:
* tools/IDL3_to_XMI/be_helper.cpp:
* tools/IDL3_to_XMI/be_init.cpp:
* tools/IDL3_to_XMI/be_produce.cpp:
* tools/IDL3_to_XMI/be_sunsoft.h:
* tools/IDL3_to_XMI/be_sunsoft.cpp:
* tools/IDL3_to_XMI/be_util.h:
* tools/IDL3_to_XMI/be_util.cpp:
* tools/IDL3_to_XMI/identifier_helper.h:
* tools/IDL3_to_XMI/identifier_helper.cpp:
Moved IDL3_to_XMI to DAnCE.
Diffstat (limited to 'CIAO/tools/IDL3_to_XMI/be_helper.h')
-rw-r--r-- | CIAO/tools/IDL3_to_XMI/be_helper.h | 176 |
1 files changed, 0 insertions, 176 deletions
diff --git a/CIAO/tools/IDL3_to_XMI/be_helper.h b/CIAO/tools/IDL3_to_XMI/be_helper.h deleted file mode 100644 index d8bbb3b1766..00000000000 --- a/CIAO/tools/IDL3_to_XMI/be_helper.h +++ /dev/null @@ -1,176 +0,0 @@ -/* -*- c++ -*- */ -// $Id$ - -/** - * @file be_helper.h - * @author Aniruddha Gokhale - * @author Carlos O'Ryan - * - * Defines the abstract class for outputting the C++ mapping. This is a - * helper class to the singleton TAO_CodeGen class - */ - -#ifndef TAO_BE_OUTSTRM_H -#define TAO_BE_OUTSTRM_H - -#include "ace/CDR_Base.h" - -class Identifier; -class UTL_IdList; -class AST_Expression; - -// a dummy structure to inform TAO_OutStream's << operator to put a newline -// and use the current indentation for the succeeding line -struct TAO_NL -{ -public: - TAO_NL (void); -}; - -struct TAO_INDENT -{ - // = TITLE - // Operates like a manipulator, increasing the indentation level. - // - // = DESCRIPTION - // Increase the indentation level, if the "do_now" parameter is - // not zero then the <indent> method is called on the stream. - // - TAO_INDENT (int do_now = 0); - - const int do_now_; -}; - -struct TAO_UNINDENT -{ - // = TITLE - // Operates like a manipulator, decreasing the indentation level. - // - // = DESCRIPTION - // Decrease the indentation level, if the "do_now" parameter is - // not zero then the <indent> method is called on the stream. - // - TAO_UNINDENT (int do_now = 0); - - const int do_now_; -}; - -extern const TAO_NL be_nl; -extern const TAO_INDENT be_idt; -extern const TAO_INDENT be_idt_nl; -extern const TAO_UNINDENT be_uidt; -extern const TAO_UNINDENT be_uidt_nl; - -class TAO_OutStream -{ - // =TITLE - // TAO_OutStream - // - // =DESCRIPTION - // Defines an interface by which the backend code generator can - // print its output to the underlying I/O handle. This is a - // helper class that will be used by the TAO_CodeGen - // class. However, this is an abstract class and classes that - // understand specific front ends must derive from this class. -public: - TAO_OutStream (void); - // constructor. - - virtual ~TAO_OutStream (void); - // destructor. - - int open (const char *fname); - // open the underlying low-level handle for output. - - - FILE *file (void); - // Return the underlying lowlevel file pointer. - - int incr_indent (unsigned short flag = 1); - // increment the indentation level and by default actually indent the output - // accordingly - - int decr_indent (unsigned short flag = 1); - // decrease the indentation level and by default actually indent the output - // accordingly - - int reset (void); - // reset indentation level to 0 - - int indent (void); - // indent starting next line - - int nl (void); - // put a newline and indent on the next line - - int print (const char *format, ...); - // "printf" style variable argument print - - void gen_ifndef_string (const char *fname, - const char *prefix, - const char *suffix); - - // =overloaded operators - - TAO_OutStream &operator<< (const char *str); - // output the char string and return a reference to ourselves - - TAO_OutStream &operator<< (const ACE_CDR::UShort num); - // output the integer and return a reference to ourselves - - TAO_OutStream &operator<< (const ACE_CDR::Short num); - // output the integer and return a reference to ourselves - - TAO_OutStream &operator<< (const ACE_CDR::ULong num); - // output the integer and return a reference to ourselves - - TAO_OutStream &operator<< (const ACE_CDR::Long num); - // output the integer and return a reference to ourselves - -#if defined (ACE_WIN64) - TAO_OutStream &operator<< (const ACE_CDR::ULongLong num); - // output the integer and return a reference to ourselves - - TAO_OutStream &operator<< (const ACE_CDR::LongLong num); - // output the integer and return a reference to ourselves -#endif /* ACE_WIN64 */ - - TAO_OutStream &operator<< (const unsigned long num); - // output the integer and return a reference to ourselves - - TAO_OutStream &operator<< (const long num); - // output the integer and return a reference to ourselves - - // = MANIPULATORS - - TAO_OutStream &operator<< (const TAO_NL& nl); - TAO_OutStream &operator<< (const TAO_INDENT& i); - TAO_OutStream &operator<< (const TAO_UNINDENT& i); - - // The following will be provided by specialized classes - - TAO_OutStream &operator<< (Identifier *id); - // output an Identifier node - - TAO_OutStream &operator<< (UTL_IdList *idl); - // output a scoped name - - TAO_OutStream &operator<< (AST_Expression *expr); - // output an AST_Expression node - - // provided by specialized classes - virtual TAO_OutStream &print (Identifier *id) = 0; - - virtual TAO_OutStream &print (UTL_IdList *idl) = 0; - - virtual TAO_OutStream &print (AST_Expression *idl) = 0; - -protected: - FILE *fp_; - // the underlying low-level I/O handle - - int indent_level_; - // indentation level -}; - -#endif // if !defined |