1 // SSCommentObject.cpp: implementation of the SSCommentObject class.
3 //////////////////////////////////////////////////////////////////////
6 #include "SSCommentObject.h"
8 //////////////////////////////////////////////////////////////////////
9 // Construction/Destruction
10 //////////////////////////////////////////////////////////////////////
12 SSCommentObject::SSCommentObject(SSRecordPtr pRecord
)
13 : SSObject (pRecord
, eCommentRecord
)
15 int len
= std::min (strlen (reinterpret_cast <const char*> (pRecord
->GetBuffer())), (size_t) pRecord
->GetLen ());
16 m_Comment
= std::string (reinterpret_cast <const char*> (pRecord
->GetBuffer()), len
);
19 SSCommentObject::~SSCommentObject()
24 std::string
SSCommentObject::GetComment () const
29 void SSCommentObject::ToXml (XMLNode
* pParent
) const
31 XMLText
commentValue (pParent
, GetComment ());
34 void SSCommentObject::Dump (std::ostream
& os
) const
37 os
<< GetComment () << std::endl
;