[Box Backup-commit] COMMIT r3396 - box/trunk/lib/common

subversion at boxbackup.org subversion at boxbackup.org
Thu Sep 4 02:36:54 BST 2014


Author: chris
Date: 2014-09-04 02:36:54 +0100 (Thu, 04 Sep 2014)
New Revision: 3396

Modified:
   box/trunk/lib/common/IOStreamGetLine.h
Log:
Add a std::string GetLine() to IOStreamGetLine.

This is needed by the refactored bbackupd tests.

Modified: box/trunk/lib/common/IOStreamGetLine.h
===================================================================
--- box/trunk/lib/common/IOStreamGetLine.h	2014-09-04 01:36:52 UTC (rev 3395)
+++ box/trunk/lib/common/IOStreamGetLine.h	2014-09-04 01:36:54 UTC (rev 3396)
@@ -33,7 +33,13 @@
 
 public:
 	bool GetLine(std::string &rOutput, bool Preprocess = false, int Timeout = IOStream::TimeOutInfinite);
-	
+	std::string GetLine()
+	{
+		std::string output;
+		GetLine(output);
+		return output;
+	}
+
 	// Call to detach, setting file pointer correctly to last bit read.
 	// Only works for lseek-able file descriptors.
 	void DetachFile();




More information about the Boxbackup-commit mailing list