Sara Ojeda / Mbed 2 deprecated prueba_hsens

Dependencies:   mbed

Embed: (wiki syntax)

« Back to documentation index

Show/hide line numbers Console.h Source File

Console.h

00001 #pragma once
00002 
00003 #include "mbed.h"
00004 
00005 #include "Command.h"
00006 #include "Reader.h"
00007 
00008 class Console
00009 {
00010 private:
00011     Console(Console const&);
00012     void operator=(Console const&);
00013 
00014     uint32_t timeout;
00015     Reader *reader;
00016 
00017     Command* parse(string command) const;
00018 
00019 public:
00020     explicit Console(uint32_t timeout = 120);
00021 
00022     void start();
00023     bool execute(Command* command);
00024     bool isFinishCommand(const string &command) const;
00025 };