Panda3D
eggComment.I
Go to the documentation of this file.
1 /**
2  * PANDA 3D SOFTWARE
3  * Copyright (c) Carnegie Mellon University. All rights reserved.
4  *
5  * All use of this software is subject to the terms of the revised BSD
6  * license. You should have received a copy of this license along
7  * with this source code in a file named "LICENSE."
8  *
9  * @file eggComment.I
10  * @author drose
11  * @date 1999-01-20
12  */
13 
14 /**
15  *
16  */
17 INLINE EggComment::
18 EggComment(const std::string &node_name, const std::string &comment)
19  : EggNode(node_name), _comment(comment) {
20 }
21 
22 /**
23  *
24  */
25 INLINE EggComment::
26 EggComment(const EggComment &copy) : EggNode(copy), _comment(copy._comment) {
27 }
28 
29 
30 /**
31  *
32  */
33 INLINE EggComment &EggComment::
34 operator = (const std::string &comment) {
35  _comment = comment;
36  return *this;
37 }
38 
39 
40 /**
41  *
42  */
43 INLINE EggComment &EggComment::
44 operator = (const EggComment &copy) {
45  _comment = copy._comment;
46  return *this;
47 }
48 
49 
50 /**
51  *
52  */
53 INLINE EggComment::
54 operator const std::string & () const {
55  return _comment;
56 }
57 
58 
59 /**
60  *
61  */
62 INLINE void EggComment::
63 set_comment(const std::string &comment) {
64  _comment = comment;
65 }
66 
67 
68 /**
69  *
70  */
71 INLINE std::string EggComment::
72 get_comment() const {
73  return _comment;
74 }
A comment that appears in an egg file within a <Comment> entry.
Definition: eggComment.h:24
A base class for things that may be directly added into the egg hierarchy.
Definition: eggNode.h:35