summaryrefslogtreecommitdiffstats
path: root/Source/cmProcessTools.h
diff options
context:
space:
mode:
authorBrad King <brad.king@kitware.com>2009-07-10 15:07:27 (GMT)
committerBrad King <brad.king@kitware.com>2009-07-10 15:07:27 (GMT)
commitc0e8c0f5aa004fb7f8c1804a5e29bd22862c9360 (patch)
tree2a4c252a8463bc6b008be658ceedb72187b2fb55 /Source/cmProcessTools.h
parentf673294a36e55ef2d8ee48e045d51440c0bd702e (diff)
downloadCMake-c0e8c0f5aa004fb7f8c1804a5e29bd22862c9360.zip
CMake-c0e8c0f5aa004fb7f8c1804a5e29bd22862c9360.tar.gz
CMake-c0e8c0f5aa004fb7f8c1804a5e29bd22862c9360.tar.bz2
ENH: New OutputParser::Process() signature
This overload accepts a null-terminated string instead of requiring a length. It is useful to pass some fake process output before and after the real process output.
Diffstat (limited to 'Source/cmProcessTools.h')
-rw-r--r--Source/cmProcessTools.h2
1 files changed, 2 insertions, 0 deletions
diff --git a/Source/cmProcessTools.h b/Source/cmProcessTools.h
index f8b2c52..083a067 100644
--- a/Source/cmProcessTools.h
+++ b/Source/cmProcessTools.h
@@ -35,6 +35,8 @@ public:
in any more data and false if it is done. */
bool Process(const char* data, int length)
{ return this->ProcessChunk(data, length); }
+ bool Process(const char* data)
+ { return this->Process(data, static_cast<int>(strlen(data))); }
virtual ~OutputParser() {}
protected: