Add Dirk Luetjen's ssphys libraries and command-line tool
[vss2svn.git] / ssphys / SSPhysLib / SSCheckOutObject.h
blob286fa30dada094db6cb919dff52cd5bb188a279a
1 // SSCheckOutObject.h: interface for the SSCheckOutObject class.
2 //
3 //////////////////////////////////////////////////////////////////////
5 #if !defined(AFX_SSCHECKOUTOBJECT_H__D987E1D1_744F_4D0F_BB42_A2D3A52F0171__INCLUDED_)
6 #define AFX_SSCHECKOUTOBJECT_H__D987E1D1_744F_4D0F_BB42_A2D3A52F0171__INCLUDED_
8 #if _MSC_VER > 1000
9 #pragma once
10 #endif // _MSC_VER > 1000
12 #include "SSObject.h"
14 class SSCheckOutObject : public SSObject
16 public:
17 SSCheckOutObject(SSRecordPtr pRecord);
18 virtual ~SSCheckOutObject();
20 // accessors
21 std::string GetUser () const { return std::string (GetData()->User, 32); }
22 std::string GetCheckOutFolder () const { return std::string (GetData()->CheckOutFolder, 256); }
23 std::string GetComputer () const { return std::string (GetData()->Computer, 32); }
24 std::string GetParentSpec () const { return std::string (GetData()->ParentSpec, 260); }
25 std::string GetComment () const { return std::string (GetData()->Comment, 13); }
26 char GetFlag1 () const { return GetData()->Flag1; }
27 char GetFlag2 () const { return GetData()->Flag2; }
28 char GetFlag3 () const { return GetData()->Flag3; }
29 int GetNumberOfVersions () const { return GetData()->NumberOfVersions; }
31 virtual void Accept (ISSObjectVisitor& rVisitor, const ISSContext* pCtx = NULL) const { rVisitor.Apply (*this, pCtx); }
32 const CF* GetData () const { return reinterpret_cast <const CF*> (SSObject::GetData ()); }
34 void ToXml (XMLNode* pParent) const;
35 void Dump (std::ostream& os) const;
36 protected:
40 #endif // !defined(AFX_SSCHECKOUTOBJECT_H__D987E1D1_744F_4D0F_BB42_A2D3A52F0171__INCLUDED_)