14 #ifndef DCDECLARATION_H 15 #define DCDECLARATION_H 35 virtual const DCClass *as_class()
const;
37 virtual const DCSwitch *as_switch()
const;
39 virtual void output(std::ostream &out)
const;
40 void write(std::ostream &out,
int indent_level)
const;
43 virtual void output(std::ostream &out,
bool brief)
const=0;
44 virtual void write(std::ostream &out,
bool brief,
int indent_level)
const=0;
47 INLINE std::ostream &operator << (std::ostream &out,
const DCDeclaration &decl) {
virtual void output(std::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.
PANDA 3D SOFTWARE Copyright (c) Carnegie Mellon University.
This is a common interface for a declaration in a DC file.