This is a common interface for a declaration in a DC file. More...
#include "dcDeclaration.h"
Public Member Functions | |
virtual DCClass * | as_class () |
virtual const DCClass * | as_class () const |
virtual DCSwitch * | as_switch () |
virtual const DCSwitch * | as_switch () const |
virtual void | output (std::ostream &out) const |
Write a string representation of this instance to <out>. More... | |
virtual void | output (std::ostream &out, bool brief) const =0 |
void | write (std::ostream &out, int indent_level) const |
Write a string representation of this instance to <out>. More... | |
virtual void | write (std::ostream &out, bool brief, int indent_level) const =0 |
This is a common interface for a declaration in a DC file.
Currently, this is either a class or a typedef declaration (import declarations are still collected together at the top, and don't inherit from this object). Its only purpose is so that classes and typedefs can be stored in one list together so they can be ordered correctly on output.
Definition at line 29 of file dcDeclaration.h.
|
virtual |
Write a string representation of this instance to <out>.
Reimplemented in DCClass.
Definition at line 60 of file dcDeclaration.cxx.
void DCDeclaration::write | ( | std::ostream & | out, |
int | indent_level | ||
) | const |
Write a string representation of this instance to <out>.
Definition at line 68 of file dcDeclaration.cxx.