Panda3D
savedContext.cxx
1 // Filename: savedContext.cxx
2 // Created by: drose (11Jun01)
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 
15 #include "savedContext.h"
16 #include "indent.h"
17 
18 TypeHandle SavedContext::_type_handle;
19 
20 ////////////////////////////////////////////////////////////////////
21 // Function: SavedContext::output
22 // Access: Published, Virtual
23 // Description:
24 ////////////////////////////////////////////////////////////////////
25 void SavedContext::
26 output(ostream &out) const {
27  out << "SavedContext " << this;
28 }
29 
30 ////////////////////////////////////////////////////////////////////
31 // Function: SavedContext::write
32 // Access: Published, Virtual
33 // Description:
34 ////////////////////////////////////////////////////////////////////
35 void SavedContext::
36 write(ostream &out, int indent_level) const {
37  indent(out, indent_level) << *this << "\n";
38 }
TypeHandle is the identifier used to differentiate C++ class types.
Definition: typeHandle.h:85