From f3e7dda9239512192cb649e453adb6bb45febb53 Mon Sep 17 00:00:00 2001 From: "Ruben S. Montero" Date: Thu, 16 May 2013 21:54:56 +0200 Subject: [PATCH] feature #2009: Fix constness of Mad protocol interface (cherry picked from commit b44788399f369fd46e0cbfa21eaf758994424606) --- include/AuthManagerDriver.h | 3 +- include/HookManagerDriver.h | 9 ++--- include/ImageManagerDriver.h | 10 ++--- include/InformationManagerDriver.h | 2 +- include/Mad.h | 33 ++++++++--------- include/TransferManagerDriver.h | 3 +- include/VirtualMachineManagerDriver.h | 3 +- src/authm/AuthManagerDriver.cc | 9 ++--- src/hm/HookManagerDriver.cc | 51 +++++++++++++------------- src/im/InformationManagerDriver.cc | 3 +- src/image/ImageManagerDriver.cc | 3 +- src/tm/TransferManagerDriver.cc | 3 +- src/vmm/VirtualMachineManagerDriver.cc | 3 +- 13 files changed, 62 insertions(+), 73 deletions(-) diff --git a/include/AuthManagerDriver.h b/include/AuthManagerDriver.h index 723f24d9f3..f018808ba6 100644 --- a/include/AuthManagerDriver.h +++ b/include/AuthManagerDriver.h @@ -50,8 +50,7 @@ public: * Implements the VM Manager driver protocol. * @param message the string read from the driver */ - void protocol( - string& message); + void protocol(const string& message) const; /** * Re-starts the driver diff --git a/include/HookManagerDriver.h b/include/HookManagerDriver.h index 164eff6670..af0d8c6fef 100644 --- a/include/HookManagerDriver.h +++ b/include/HookManagerDriver.h @@ -29,7 +29,7 @@ using namespace std; /** * HookManagerDriver provides a base class to implement Hook (Execution) * Drivers. This class implements the protocol and recover functions - * from the Mad interface. This class may be used to further specialize + * from the Mad interface. This class may be used to further specialize * the Execution driver. */ class HookManagerDriver : public Mad @@ -49,14 +49,13 @@ public: * Implements the Hook driver protocol. * @param message the string read from the driver */ - void protocol( - string& message); + void protocol(const string& message) const; /** * TODO: What do we need here? just poll the Hosts to recover.. */ void recover(); - + /**