cppTypeDeclaration.h 1.7 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849
  1. // Filename: cppTypeDeclaration.h
  2. // Created by: drose (14Aug00)
  3. //
  4. ////////////////////////////////////////////////////////////////////
  5. //
  6. // PANDA 3D SOFTWARE
  7. // Copyright (c) 2001 - 2004, Disney Enterprises, Inc. All rights reserved
  8. //
  9. // All use of this software is subject to the terms of the Panda 3d
  10. // Software license. You should have received a copy of this license
  11. // along with this source code; you will also find a current copy of
  12. // the license at http://etc.cmu.edu/panda3d/docs/license/ .
  13. //
  14. // To contact the maintainers of this program write to
  15. // [email protected] .
  16. //
  17. ////////////////////////////////////////////////////////////////////
  18. #ifndef CPPTYPEDECLARATION_H
  19. #define CPPTYPEDECLARATION_H
  20. #include "dtoolbase.h"
  21. #include "cppInstance.h"
  22. ///////////////////////////////////////////////////////////////////
  23. // Class : CPPTypeDeclaration
  24. // Description : A CPPTypeDeclaration is a special declaration that
  25. // represents the top-level declaration of a type in a
  26. // source file. Typically this is the first appearance
  27. // of the type.
  28. ////////////////////////////////////////////////////////////////////
  29. class CPPTypeDeclaration : public CPPInstance {
  30. public:
  31. CPPTypeDeclaration(CPPType *type);
  32. virtual CPPDeclaration *substitute_decl(SubstDecl &subst,
  33. CPPScope *current_scope,
  34. CPPScope *global_scope);
  35. virtual void output(ostream &out, int indent_level, CPPScope *scope,
  36. bool complete) const;
  37. virtual SubType get_subtype() const;
  38. virtual CPPTypeDeclaration *as_type_declaration();
  39. };
  40. #endif