Commit 821fb074 authored by Locatelli's avatar Locatelli

Add init method in command Read

parent fe775e0b
......@@ -22,6 +22,12 @@ namespace controller {
Read::Read(ExperimentController * controller) : Command(controller, "read", &Read::read, this) {}
Read::Read() : Command() {}
void Read::init(ExperimentController * controller) {
Command::init(controller, "read", &Read::read, this);
}
void Read::readCommand(bool logging) {
// second parameter indicates that AgentPolicy is used to block the call
// i.e. the call never blocks
......
......@@ -27,7 +27,9 @@ class Read : private Command {
public:
Read(ExperimentController * controller);
Read();
void init(ExperimentController * controller);
virtual void read() = 0;
void readCommand(bool logging = false);
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment