ENH: Add a method to parse command line argument inside the handler
This commit is contained in:
parent
26765e815f
commit
6fe633e1f7
|
@ -17,16 +17,19 @@
|
||||||
|
|
||||||
#include "cmCTestGenericHandler.h"
|
#include "cmCTestGenericHandler.h"
|
||||||
|
|
||||||
|
//----------------------------------------------------------------------
|
||||||
cmCTestGenericHandler::cmCTestGenericHandler()
|
cmCTestGenericHandler::cmCTestGenericHandler()
|
||||||
{
|
{
|
||||||
m_HandlerVerbose = false;
|
m_HandlerVerbose = false;
|
||||||
m_CTest = 0;
|
m_CTest = 0;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
//----------------------------------------------------------------------
|
||||||
cmCTestGenericHandler::~cmCTestGenericHandler()
|
cmCTestGenericHandler::~cmCTestGenericHandler()
|
||||||
{
|
{
|
||||||
}
|
}
|
||||||
|
|
||||||
|
//----------------------------------------------------------------------
|
||||||
void cmCTestGenericHandler::SetOption(const char* op, const char* value)
|
void cmCTestGenericHandler::SetOption(const char* op, const char* value)
|
||||||
{
|
{
|
||||||
if ( !op )
|
if ( !op )
|
||||||
|
@ -47,6 +50,7 @@ void cmCTestGenericHandler::SetOption(const char* op, const char* value)
|
||||||
m_Options[op] = value;
|
m_Options[op] = value;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
//----------------------------------------------------------------------
|
||||||
const char* cmCTestGenericHandler::GetOption(const char* op)
|
const char* cmCTestGenericHandler::GetOption(const char* op)
|
||||||
{
|
{
|
||||||
cmCTestGenericHandler::t_StringToString::iterator remit
|
cmCTestGenericHandler::t_StringToString::iterator remit
|
||||||
|
|
|
@ -47,6 +47,13 @@ public:
|
||||||
*/
|
*/
|
||||||
virtual int ProcessHandler() = 0;
|
virtual int ProcessHandler() = 0;
|
||||||
|
|
||||||
|
/**
|
||||||
|
* Process command line arguments that are applicable for the handler
|
||||||
|
*/
|
||||||
|
virtual int ProcessCommandLineArguments(
|
||||||
|
const std::string& /*currentArg*/, size_t& /*idx*/,
|
||||||
|
const std::vector<std::string>& /*allArgs*/) { return 1; }
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Set the CTest instance
|
* Set the CTest instance
|
||||||
*/
|
*/
|
||||||
|
|
Loading…
Reference in New Issue