Panda3D
Loading...
Searching...
No Matches
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 */
17INLINE EggComment::
18EggComment(const std::string &node_name, const std::string &comment)
19 : EggNode(node_name), _comment(comment) {
20}
21
22/**
23 *
24 */
25INLINE EggComment::
26EggComment(const EggComment &copy) : EggNode(copy), _comment(copy._comment) {
27}
28
29
30/**
31 *
32 */
33INLINE EggComment &EggComment::
34operator = (const std::string &comment) {
35 _comment = comment;
36 return *this;
37}
38
39
40/**
41 *
42 */
43INLINE EggComment &EggComment::
44operator = (const EggComment &copy) {
45 _comment = copy._comment;
46 return *this;
47}
48
49
50/**
51 *
52 */
53INLINE EggComment::
54operator const std::string & () const {
55 return _comment;
56}
57
58
59/**
60 *
61 */
62INLINE void EggComment::
63set_comment(const std::string &comment) {
64 _comment = comment;
65}
66
67
68/**
69 *
70 */
71INLINE std::string EggComment::
72get_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:36