# DCDeclaration

from pandac.PandaModules import DCDeclaration

Class : DCDeclaration
Description : 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.

## Inheritance:

DCDeclaration:

## Methods of DCDeclaration:

asClass
asSwitch
output
write

asClass virtual DCClass *DCDeclaration::as_class(void); Description:

asSwitch virtual DCSwitch *DCDeclaration::as_switch(void); Description:

output virtual void DCDeclaration::output(ostream &out) const; Description : Write a string representation of this instance to <out>.

write void DCDeclaration::write(ostream &out, int indent_level) const; Description : Write a string representation of this instance to <out>.