Fixed typo. Was not getting any text after pRecord->GetRecordType() (which was proba...
[vss2svn.git] / ssphys / SSPhys / FileTypeCommand.cpp
blob0300f50da15a8e7cd840478f0c26e7cbfe61d1ac
1 // FileTypeCommand.cpp: implementation of the CFileTypeCommand class.
2 //
3 //////////////////////////////////////////////////////////////////////
5 #include "StdAfx.h"
6 #include "FileTypeCommand.h"
7 #include "Formatter.h"
8 #include <SSPhysLib/SSFiles.h>
9 #include <SSPhysLib/SSItemInfoObject.h>
11 //////////////////////////////////////////////////////////////////////
12 // Construction/Destruction
13 //////////////////////////////////////////////////////////////////////
15 //---------------------------------------------------------------------------
16 CFileTypeCommand::CFileTypeCommand ()
17 : CMultiArgCommand ("filetype", "Displays the type (text or binary) of a VSS physical file")
21 void CFileTypeCommand::Execute (const po::variables_map& vm, std::string const& arg)
23 SSHistoryFile file (arg);
24 std::auto_ptr<SSItemInfoObject> info (file.GetItemInfo ());
25 if (info.get())
26 GetFormatter()->Format (*info);