00001 // Filename: savedContext.cxx 00002 // Created by: drose (11Jun01) 00003 // 00004 //////////////////////////////////////////////////////////////////// 00005 // 00006 // PANDA 3D SOFTWARE 00007 // Copyright (c) Carnegie Mellon University. All rights reserved. 00008 // 00009 // All use of this software is subject to the terms of the revised BSD 00010 // license. You should have received a copy of this license along 00011 // with this source code in a file named "LICENSE." 00012 // 00013 //////////////////////////////////////////////////////////////////// 00014 00015 #include "savedContext.h" 00016 #include "indent.h" 00017 00018 TypeHandle SavedContext::_type_handle; 00019 00020 //////////////////////////////////////////////////////////////////// 00021 // Function: SavedContext::output 00022 // Access: Published, Virtual 00023 // Description: 00024 //////////////////////////////////////////////////////////////////// 00025 void SavedContext:: 00026 output(ostream &out) const { 00027 out << "SavedContext " << this; 00028 } 00029 00030 //////////////////////////////////////////////////////////////////// 00031 // Function: SavedContext::write 00032 // Access: Published, Virtual 00033 // Description: 00034 //////////////////////////////////////////////////////////////////// 00035 void SavedContext:: 00036 write(ostream &out, int indent_level) const { 00037 indent(out, indent_level) << *this << "\n"; 00038 }