summaryrefslogtreecommitdiffstats
path: root/Source/CTest
diff options
context:
space:
mode:
authorAndy Cedilnik <andy.cedilnik@kitware.com>2005-06-03 18:42:33 (GMT)
committerAndy Cedilnik <andy.cedilnik@kitware.com>2005-06-03 18:42:33 (GMT)
commit6fe633e1f75d296caf8890ca75c5899492de9f13 (patch)
tree4a9556e3e0af3e8355cb42bc875de1eb5b015ee3 /Source/CTest
parent26765e815f291cc7995fc1e5ab748633384503b6 (diff)
downloadCMake-6fe633e1f75d296caf8890ca75c5899492de9f13.zip
CMake-6fe633e1f75d296caf8890ca75c5899492de9f13.tar.gz
CMake-6fe633e1f75d296caf8890ca75c5899492de9f13.tar.bz2
ENH: Add a method to parse command line argument inside the handler
Diffstat (limited to 'Source/CTest')
-rw-r--r--Source/CTest/cmCTestGenericHandler.cxx4
-rw-r--r--Source/CTest/cmCTestGenericHandler.h7
2 files changed, 11 insertions, 0 deletions
diff --git a/Source/CTest/cmCTestGenericHandler.cxx b/Source/CTest/cmCTestGenericHandler.cxx
index 0f48062..12ee361 100644
--- a/Source/CTest/cmCTestGenericHandler.cxx
+++ b/Source/CTest/cmCTestGenericHandler.cxx
@@ -17,16 +17,19 @@
#include "cmCTestGenericHandler.h"
+//----------------------------------------------------------------------
cmCTestGenericHandler::cmCTestGenericHandler()
{
m_HandlerVerbose = false;
m_CTest = 0;
}
+//----------------------------------------------------------------------
cmCTestGenericHandler::~cmCTestGenericHandler()
{
}
+//----------------------------------------------------------------------
void cmCTestGenericHandler::SetOption(const char* op, const char* value)
{
if ( !op )
@@ -47,6 +50,7 @@ void cmCTestGenericHandler::SetOption(const char* op, const char* value)
m_Options[op] = value;
}
+//----------------------------------------------------------------------
const char* cmCTestGenericHandler::GetOption(const char* op)
{
cmCTestGenericHandler::t_StringToString::iterator remit
diff --git a/Source/CTest/cmCTestGenericHandler.h b/Source/CTest/cmCTestGenericHandler.h
index f5b203e..ca658b6 100644
--- a/Source/CTest/cmCTestGenericHandler.h
+++ b/Source/CTest/cmCTestGenericHandler.h
@@ -48,6 +48,13 @@ public:
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
*/
void SetCTestInstance(cmCTest* ctest) { m_CTest = ctest; }