class CodeWriter
Defined at line 35 of file ../../third_party/android/platform/system/tools/aidl/code_writer.h
Public Methods
CodeWriterPtr ForFile (const std::string & filename)
Get a CodeWriter that writes to a file. When filename is "-",
it is written to stdout.
CodeWriterPtr ForString (std::string * buf)
Get a CodeWriter that writes to a string buffer.
The buffer gets updated only after Close() is called or the CodeWriter
is deleted -- much like a real file.
template <typename... Args>
bool Write (const char * format, Args... args)
Write a formatted string to this writer in the usual printf sense.
Returns false on error.
Defined at line 47 of file ../../third_party/android/platform/system/tools/aidl/code_writer.h
template <>
bool Write<<>> (const char * str)
Defined at line 54 of file ../../third_party/android/platform/system/tools/aidl/code_writer.h
bool WriteString (const std::string & )
void Indent ()
void Dedent ()
bool Close ()
void ~CodeWriter ()
Defined at line 64 of file ../../third_party/android/platform/system/tools/aidl/code_writer.h
void CodeWriter ()
Defined at line 65 of file ../../third_party/android/platform/system/tools/aidl/code_writer.h
CodeWriter & operator<< (const char * s)
CodeWriter & operator<< (const std::string & str)