root/trunk/ssphys/SSPhysLib/SSCommentObject.cpp

Revision 157 (checked in by ldavis, 4 years ago)

added svn:eol-style to all files
added svn:mime-type to all files

  • Property svn:mime-type set to text/plain
  • Property svn:eol-style set to native
Line 
1 // SSCommentObject.cpp: implementation of the SSCommentObject class.
2 //
3 //////////////////////////////////////////////////////////////////////
4
5 #include "StdAfx.h"
6 #include "SSCommentObject.h"
7
8 //////////////////////////////////////////////////////////////////////
9 // Construction/Destruction
10 //////////////////////////////////////////////////////////////////////
11
12 SSCommentObject::SSCommentObject(SSRecordPtr pRecord)
13   : SSObject (pRecord, eCommentRecord)
14 {
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);
17 }
18
19 SSCommentObject::~SSCommentObject()
20 {
21
22 }
23
24 std::string SSCommentObject::GetComment () const
25 {
26   return m_Comment;
27 }
28
29 void SSCommentObject::ToXml (XMLNode* pParent) const
30 {
31   XMLText commentValue (pParent, GetComment ());
32 }
33
34 void SSCommentObject::Dump (std::ostream& os) const
35 {
36   SSObject::Dump (os);
37   os << GetComment () << std::endl;
38 }
Note: See TracBrowser for help on using the browser.

PumaCode.org recommends CVSDude for fast, professional Subversion and Trac hosting:

CVSDude.com

These ads are automatically generated by Google. Revenue from these ads helps to pay for hosting this site; however, these ads do not constitute an endorsement by PumaCode.org.