Panda3D
Public Member Functions | List of all members
DCDeclaration Class Reference

This is a common interface for a declaration in a DC file. More...

Inheritance diagram for DCDeclaration:
DCClass DCKeyword DCSwitch DCTypedef

Public Member Functions

DCClass asClass ()
 
const DCClass asClass ()
 
DCSwitch asSwitch ()
 
const DCSwitch asSwitch ()
 
 output (Ostream out)
 Write a string representation of this instance to <out>. More...
 
 write (Ostream out, int indent_level)
 Write a string representation of this instance to <out>. More...
 

Detailed 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.

Member Function Documentation

◆ asClass() [1/2]

DCClass asClass ( )

◆ asClass() [2/2]

const DCClass asClass ( )

◆ asSwitch() [1/2]

DCSwitch asSwitch ( )

◆ asSwitch() [2/2]

const DCSwitch asSwitch ( )

◆ output()

output ( Ostream  out)

Write a string representation of this instance to <out>.

◆ write()

write ( Ostream  out,
int  indent_level 
)

Write a string representation of this instance to <out>.