open_toontown_panda3d/panda/src/egg/eggComment.I

83 lines
2.4 KiB
Plaintext

// Filename: eggComment.I
// Created by: drose (20Jan99)
//
////////////////////////////////////////////////////////////////////
////////////////////////////////////////////////////////////////////
// Function: EggComment::Constructor
// Access: Public
// Description:
////////////////////////////////////////////////////////////////////
INLINE EggComment::
EggComment(const string &node_name, const string &comment)
: EggNode(node_name), _comment(comment) {
}
////////////////////////////////////////////////////////////////////
// Function: EggComment::Copy Constructor
// Access: Public
// Description:
////////////////////////////////////////////////////////////////////
INLINE EggComment::
EggComment(const EggComment &copy) : EggNode(copy), _comment(copy._comment) {
}
////////////////////////////////////////////////////////////////////
// Function: EggComment::Assignment operator
// Access: Public
// Description:
////////////////////////////////////////////////////////////////////
INLINE EggComment &EggComment::
operator = (const string &comment) {
_comment = comment;
return *this;
}
////////////////////////////////////////////////////////////////////
// Function: EggComment::Copy assignment operator
// Access: Public
// Description:
////////////////////////////////////////////////////////////////////
INLINE EggComment &EggComment::
operator = (const EggComment &copy) {
_comment = copy._comment;
return *this;
}
////////////////////////////////////////////////////////////////////
// Function: EggComment::String typecast operator
// Access: Public
// Description:
////////////////////////////////////////////////////////////////////
INLINE EggComment::
operator const string & () const {
return _comment;
}
////////////////////////////////////////////////////////////////////
// Function: EggComment::set_comment
// Access: Public
// Description:
////////////////////////////////////////////////////////////////////
INLINE void EggComment::
set_comment(const string &comment) {
_comment = comment;
}
////////////////////////////////////////////////////////////////////
// Function: EggComment::set_comment
// Access: Public
// Description:
////////////////////////////////////////////////////////////////////
INLINE string EggComment::
get_comment() const {
return _comment;
}