cppVisibility.cxx 1.0 KB

123456789101112131415161718192021222324252627282930313233343536373839404142
  1. // Filename: cppVisibility.cxx
  2. // Created by: drose (22Oct99)
  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. #include "cppVisibility.h"
  19. ostream &
  20. operator << (ostream &out, CPPVisibility vis) {
  21. switch (vis) {
  22. case V_published:
  23. return out << "__published";
  24. case V_public:
  25. return out << "public";
  26. case V_protected:
  27. return out << "protected";
  28. case V_private:
  29. return out << "private";
  30. case V_unknown:
  31. return out << "unknown";
  32. }
  33. return out << "(**invalid visibility**)";
  34. }