Fixed typo. Was not getting any text after pRecord->GetRecordType() (which was proba...
[vss2svn.git] / ssphys / SSPhys / ValidateCommand.cpp
blobb3792264a5c41e76bc13e0eda12085c2c1551d6a
1 // ValidateCommand.cpp: implementation of the ValidateCommand class.
2 //
3 //////////////////////////////////////////////////////////////////////
5 #include "StdAfx.h"
6 #include "ValidateCommand.h"
7 #include <SSPhysLib/SSFiles.h>
8 //////////////////////////////////////////////////////////////////////
9 // Construction/Destruction
10 //////////////////////////////////////////////////////////////////////
12 //---------------------------------------------------------------------------
13 CValidateCommand::CValidateCommand ()
14 : CMultiArgCommand ("validate", "Validates the condition of a VSS physical file")
19 void CValidateCommand::Execute (po::variables_map const& options, std::string const& arg)
21 std::auto_ptr<SSRecordFile> pFile (SSRecordFile::MakeFile (arg));
22 if (pFile.get())
24 pFile->Validate ();