indent.h 1.2 KB

12345678910111213141516171819202122232425262728293031323334353637
  1. // Filename: indent.h
  2. // Created by: drose (16Jan99)
  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 INDENT_H
  19. #define INDENT_H
  20. #include "dtoolbase.h"
  21. ////////////////////////////////////////////////////////////////////
  22. // Function: indent
  23. // Description: A handy function for doing text formatting. This
  24. // function simply outputs the indicated number of
  25. // spaces to the given output stream, returning the
  26. // stream itself. Useful for indenting a series of
  27. // lines of text by a given amount.
  28. ////////////////////////////////////////////////////////////////////
  29. ostream &
  30. indent(ostream &out, int indent_level);
  31. #endif