From 8674a1b9e9da542b729d660d8f996f0e58008dbd Mon Sep 17 00:00:00 2001 From: Cristian Maglie Date: Wed, 12 Jun 2013 13:20:25 +0200 Subject: Refactored String methods and constructor on Process class. --- libraries/Bridge/Process.h | 11 ++++------- 1 file changed, 4 insertions(+), 7 deletions(-) (limited to 'libraries/Bridge/Process.h') diff --git a/libraries/Bridge/Process.h b/libraries/Bridge/Process.h index 2877545..cf950d4 100644 --- a/libraries/Bridge/Process.h +++ b/libraries/Bridge/Process.h @@ -23,16 +23,13 @@ class Process : public Stream { public: - // Default constructor uses global Bridge instance - Process() : bridge(Bridge), started(false), buffered(0), readPos(0) { } // Constructor with a user provided BridgeClass instance - Process(BridgeClass &_b) : bridge(_b), started(false), buffered(0), readPos(0) { } + Process(BridgeClass &_b = Bridge) : + bridge(_b), started(false), buffered(0), readPos(0) { } ~Process(); - void begin(String &command); - void begin(const char *command); - void addParameter(String ¶m); - void addParameter(const char *param); + void begin(const String &command); + void addParameter(const String ¶m); unsigned int run(); void runAsynchronously(); boolean running(); -- cgit v1.2.3-18-g5258