Main Page   Class Hierarchy   Alphabetical List   Compound List   File List   Compound Members   File Members  

panda/src/egg/eggComment.I

Go to the documentation of this file.
00001 // Filename: eggComment.I
00002 // Created by:  drose (20Jan99)
00003 //
00004 ////////////////////////////////////////////////////////////////////
00005 //
00006 // PANDA 3D SOFTWARE
00007 // Copyright (c) 2001, Disney Enterprises, Inc.  All rights reserved
00008 //
00009 // All use of this software is subject to the terms of the Panda 3d
00010 // Software license.  You should have received a copy of this license
00011 // along with this source code; you will also find a current copy of
00012 // the license at http://www.panda3d.org/license.txt .
00013 //
00014 // To contact the maintainers of this program write to
00015 // panda3d@yahoogroups.com .
00016 //
00017 ////////////////////////////////////////////////////////////////////
00018 
00019 
00020 ////////////////////////////////////////////////////////////////////
00021 //     Function: EggComment::Constructor
00022 //       Access: Public
00023 //  Description:
00024 ////////////////////////////////////////////////////////////////////
00025 INLINE EggComment::
00026 EggComment(const string &node_name, const string &comment)
00027   : EggNode(node_name), _comment(comment) {
00028 }
00029 
00030 ////////////////////////////////////////////////////////////////////
00031 //     Function: EggComment::Copy Constructor
00032 //       Access: Public
00033 //  Description:
00034 ////////////////////////////////////////////////////////////////////
00035 INLINE EggComment::
00036 EggComment(const EggComment &copy) : EggNode(copy), _comment(copy._comment) {
00037 }
00038 
00039 
00040 ////////////////////////////////////////////////////////////////////
00041 //     Function: EggComment::Assignment operator
00042 //       Access: Public
00043 //  Description:
00044 ////////////////////////////////////////////////////////////////////
00045 INLINE EggComment &EggComment::
00046 operator = (const string &comment) {
00047   _comment = comment;
00048   return *this;
00049 }
00050 
00051 
00052 ////////////////////////////////////////////////////////////////////
00053 //     Function: EggComment::Copy assignment operator
00054 //       Access: Public
00055 //  Description:
00056 ////////////////////////////////////////////////////////////////////
00057 INLINE EggComment &EggComment::
00058 operator = (const EggComment &copy) {
00059   _comment = copy._comment;
00060   return *this;
00061 }
00062 
00063 
00064 ////////////////////////////////////////////////////////////////////
00065 //     Function: EggComment::String typecast operator
00066 //       Access: Public
00067 //  Description:
00068 ////////////////////////////////////////////////////////////////////
00069 INLINE EggComment::
00070 operator const string & () const {
00071   return _comment;
00072 }
00073 
00074 
00075 ////////////////////////////////////////////////////////////////////
00076 //     Function: EggComment::set_comment
00077 //       Access: Public
00078 //  Description:
00079 ////////////////////////////////////////////////////////////////////
00080 INLINE void EggComment::
00081 set_comment(const string &comment) {
00082   _comment = comment;
00083 }
00084 
00085 
00086 ////////////////////////////////////////////////////////////////////
00087 //     Function: EggComment::set_comment
00088 //       Access: Public
00089 //  Description:
00090 ////////////////////////////////////////////////////////////////////
00091 INLINE string EggComment::
00092 get_comment() const {
00093   return _comment;
00094 }
00095 

Generated on Fri May 2 00:37:30 2003 for Panda by doxygen1.3