15 #ifndef DCDECLARATION_H 16 #define DCDECLARATION_H 39 virtual const DCClass *as_class()
const;
41 virtual const DCSwitch *as_switch()
const;
43 virtual void output(ostream &out)
const;
44 void write(ostream &out,
int indent_level)
const;
47 virtual void output(ostream &out,
bool brief)
const=0;
48 virtual void write(ostream &out,
bool brief,
int indent_level)
const=0;
51 INLINE ostream &operator << (ostream &out,
const DCDeclaration &decl) {
virtual void output(ostream &out) const
Write a string representation of this instance to <out>.
This represents a switch statement, which can appear inside a class body and represents two or more a...
Defines a particular DistributedClass as read from an input .dc file.
This is a common interface for a declaration in a DC file.