Panda3D

eggComment.cxx

00001 // Filename: eggComment.cxx
00002 // Created by:  drose (20Jan99)
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 "eggComment.h"
00016 #include "eggMiscFuncs.h"
00017 
00018 #include "indent.h"
00019 #include "string_utils.h"
00020 
00021 TypeHandle EggComment::_type_handle;
00022 
00023 
00024 ////////////////////////////////////////////////////////////////////
00025 //     Function: EggComment::write
00026 //       Access: Public, Virtual
00027 //  Description: Writes the comment definition to the indicated output
00028 //               stream in Egg format.
00029 ////////////////////////////////////////////////////////////////////
00030 void EggComment::
00031 write(ostream &out, int indent_level) const {
00032   write_header(out, indent_level, "<Comment>");
00033   enquote_string(out, get_comment(), indent_level + 2) << "\n";
00034   indent(out, indent_level) << "}\n";
00035 }
 All Classes Functions Variables Enumerations