Add Dirk Luetjen's ssphys libraries and command-line tool
[vss2svn.git] / ssphys / SSPhysLib / SSCommentObject.cpp
blob0e8d2aaae5a793eeaea76456ddf5e170f5f0001a
1 // SSCommentObject.cpp: implementation of the SSCommentObject class.
2 //
3 //////////////////////////////////////////////////////////////////////
5 #include "stdafx.h"
6 #include "SSCommentObject.h"
8 //////////////////////////////////////////////////////////////////////
9 // Construction/Destruction
10 //////////////////////////////////////////////////////////////////////
12 SSCommentObject::SSCommentObject(SSRecordPtr pRecord)
13 : SSObject (pRecord, eCommentRecord)
15 m_Comment = std::string (reinterpret_cast <const char*> (pRecord->GetBuffer()), pRecord->GetLen ());
18 SSCommentObject::~SSCommentObject()
23 std::string SSCommentObject::GetComment () const
25 return m_Comment;
28 void SSCommentObject::ToXml (XMLNode* pParent) const
30 XMLValue commentValue (pParent, GetComment ());
33 void SSCommentObject::Dump (std::ostream& os) const
35 SSObject::Dump (os);
36 os << GetComment () << std::endl;