cppUsing.h 1.1 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243
  1. // Filename: cppUsing.h
  2. // Created by: drose (16Nov99)
  3. //
  4. ////////////////////////////////////////////////////////////////////
  5. //
  6. // PANDA 3D SOFTWARE
  7. // Copyright (c) Carnegie Mellon University. All rights reserved.
  8. //
  9. // All use of this software is subject to the terms of the revised BSD
  10. // license. You should have received a copy of this license along
  11. // with this source code in a file named "LICENSE."
  12. //
  13. ////////////////////////////////////////////////////////////////////
  14. #ifndef CPPUSING_H
  15. #define CPPUSING_H
  16. #include "dtoolbase.h"
  17. #include "cppDeclaration.h"
  18. class CPPIdentifier;
  19. class CPPScope;
  20. ////////////////////////////////////////////////////////////////////
  21. // Class : CPPUsing
  22. // Description :
  23. ////////////////////////////////////////////////////////////////////
  24. class CPPUsing : public CPPDeclaration {
  25. public:
  26. CPPUsing(CPPIdentifier *ident, bool full_namespace, const CPPFile &file);
  27. virtual void output(ostream &out, int indent_level, CPPScope *scope,
  28. bool complete) const;
  29. virtual SubType get_subtype() const;
  30. virtual CPPUsing *as_using();
  31. CPPIdentifier *_ident;
  32. bool _full_namespace;
  33. };
  34. #endif