Add Dirk Luetjen's ssphys libraries and command-line tool
[vss2svn.git] / ssphys / SSPhysLib / SSParentFolderObject.h
blob96ef7d4d242ee509075a4f67acbe176027d1273a
1 // SSParentFolderObject.h: interface for the SSParentFolderObject class.
2 //
3 //////////////////////////////////////////////////////////////////////
5 #if !defined(AFX_SSPARENTFOLDEROBJECT_H__B896F3FB_BA6B_4A5E_B7E4_0FEDB9B6B930__INCLUDED_)
6 #define AFX_SSPARENTFOLDEROBJECT_H__B896F3FB_BA6B_4A5E_B7E4_0FEDB9B6B930__INCLUDED_
8 #if _MSC_VER > 1000
9 #pragma once
10 #endif // _MSC_VER > 1000
12 #include "SSObject.h"
14 class SSParentFolderObject : public SSObject
16 public:
17 SSParentFolderObject(SSRecordPtr pRecord);
18 virtual ~SSParentFolderObject();
20 ulong GetPreviousOffset () const { return GetData ()->PreviousOffset; }
21 std::string GetParentPhys () const { return GetData ()->ParentPhys; }
23 SSParentFolderObject* GetPrevious ();
25 virtual void Accept (ISSObjectVisitor& rVisitor, const ISSContext* pCtx = NULL) const { rVisitor.Apply (*this, pCtx); }
26 const PF* GetData () const { return reinterpret_cast<const PF*> (SSObject::GetData ()); }
28 void ToXml (XMLNode* pParent) const;
29 void Dump (std::ostream& os) const;
30 private:
33 #endif // !defined(AFX_SSPARENTFOLDEROBJECT_H__B896F3FB_BA6B_4A5E_B7E4_0FEDB9B6B930__INCLUDED_)