cppTypedef.h 1.4 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546
  1. // Filename: cppTypedef.h
  2. // Created by: drose (19Oct99)
  3. //
  4. ////////////////////////////////////////////////////////////////////
  5. //
  6. // PANDA 3D SOFTWARE
  7. // Copyright (c) 2001, 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://www.panda3d.org/license.txt .
  13. //
  14. // To contact the maintainers of this program write to
  15. // [email protected] .
  16. //
  17. ////////////////////////////////////////////////////////////////////
  18. #ifndef CPPTYPEDEF_H
  19. #define CPPTYPEDEF_H
  20. #include <dtoolbase.h>
  21. #include "cppInstance.h"
  22. ///////////////////////////////////////////////////////////////////
  23. // Class : CPPTypedef
  24. // Description :
  25. ////////////////////////////////////////////////////////////////////
  26. class CPPTypedef : public CPPInstance {
  27. public:
  28. CPPTypedef(CPPInstance *instance, bool global);
  29. virtual CPPDeclaration *substitute_decl(SubstDecl &subst,
  30. CPPScope *current_scope,
  31. CPPScope *global_scope);
  32. virtual void output(ostream &out, int indent_level, CPPScope *scope,
  33. bool complete) const;
  34. virtual SubType get_subtype() const;
  35. virtual CPPTypedef *as_typedef();
  36. };
  37. #endif