| 
 | |||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectgov.llnl.babel.backend.writers.PrettyWriter
gov.llnl.babel.backend.writers.LanguageWriter
gov.llnl.babel.backend.writers.LanguageWriterForC
gov.llnl.babel.backend.writers.LanguageWriterForCxx
public class LanguageWriterForCxx
Class LanguageWriterForCxx extends the generic language
 writer to provide additional capabilities for writing C++ code.  This
 class manages writing comment blocks as well as include files.
| Field Summary | 
|---|
| Fields inherited from class gov.llnl.babel.backend.writers.LanguageWriterForC | 
|---|
| d_lcfw, d_skipIncludeGuard | 
| Fields inherited from class gov.llnl.babel.backend.writers.LanguageWriter | 
|---|
| d_context | 
| Constructor Summary | |
|---|---|
| LanguageWriterForCxx(java.io.PrintWriter writer,
                     Context context)Create a LanguageWriterForCxxinstance that will send
 output to the specified print writer object. | |
| LanguageWriterForCxx(java.io.PrintWriter writer,
                     LineCountingFilterWriter lcfw,
                     Context context)Create a LanguageWriterForCxxinstance that will send
 output to the specified print writer object. | |
| Method Summary | |
|---|---|
|  void | beginBlockComment(boolean is_doc)Begin a block comment. | 
|  void | beginBoldComment()Start a comment that is made visually prominent | 
|  void | endBlockComment(boolean is_doc)End a block comment. | 
|  void | endBoldComment() | 
|  java.lang.String | getIncludeGuard(java.lang.String file)Generate the include guard from the specified file name. | 
|  void | writeCommentLine(java.lang.String comment)Output a single-line comment to the pretty writer stream. | 
|  void | writeSplicerTagLine(java.lang.String tagLine)Write the splicer tag as a language-specific comment. | 
| Methods inherited from class gov.llnl.babel.backend.writers.LanguageWriterForC | 
|---|
| closeCxxExtern, closeHeaderGuard, generateInclude, generateSystemInclude, getLineCount, openCxxExtern, openHeaderGuard, redirectBegin, redirectEnd, safeCommentString, skipIncludeGuard, toSafeComment, toSafeString | 
| Methods inherited from class gov.llnl.babel.backend.writers.LanguageWriter | 
|---|
| writeBanner, writeComment, writeComment, writeComment, writeComment, writeComment, writeComment, writeComment | 
| Methods inherited from class gov.llnl.babel.backend.writers.PrettyWriter | 
|---|
| backTab, changeTabLevel, close, defineBlockComment, disableBlockComment, disableLineBreak, enableBlockComment, enableLineBreak, enableLineBreak, flushPrintWriter, getPrintWriter, popLineBreak, print, printAligned, println, println, printlnUnformatted, printSpaces, printUnformatted, pushLineBreak, restoreFirstTabStop, setFirstTabStop, setLineBreakString, setStrictBreaking, setTabSpacing, setTemporaryFirstTabStop, tab | 
| Methods inherited from class java.lang.Object | 
|---|
| clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait | 
| Constructor Detail | 
|---|
public LanguageWriterForCxx(java.io.PrintWriter writer,
                            Context context)
LanguageWriterForCxx instance that will send
 output to the specified print writer object.  Set up the output
 properties of the language writer for C++, which sets the first tab
 stop at zero, a tab spacing of three, and line breaking at column
 eighty.
public LanguageWriterForCxx(java.io.PrintWriter writer,
                            LineCountingFilterWriter lcfw,
                            Context context)
LanguageWriterForCxx instance that will send
 output to the specified print writer object.  Set up the output
 properties of the language writer for C++, which sets the first tab
 stop at zero, a tab spacing of three, and line breaking at column
 eighty.
| Method Detail | 
|---|
public void beginBlockComment(boolean is_doc)
beginBlockComment in class LanguageWriterForCpublic void endBlockComment(boolean is_doc)
endBlockComment in class LanguageWriterForCpublic void writeSplicerTagLine(java.lang.String tagLine)
writeSplicerTagLine in class LanguageWriterForCpublic void writeCommentLine(java.lang.String comment)
writeCommentLine in class LanguageWriterForCcomment - a single line comment to include in the outputLanguageWriter.safeCommentString(java.lang.String)public void beginBoldComment()
public void endBoldComment()
public java.lang.String getIncludeGuard(java.lang.String file)
LanguageWriterForC
getIncludeGuard in class LanguageWriterForC| 
 | |||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||