1 // FileTypeCommand.cpp: implementation of the CFileTypeCommand class.
3 //////////////////////////////////////////////////////////////////////
6 #include "FileTypeCommand.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 ());
26 GetFormatter()->Format (*info
);