Provide a “var” map in AdhocSession objects, to save values between each step
This commit is contained in:
@@ -5,6 +5,7 @@
|
|||||||
|
|
||||||
#include <functional>
|
#include <functional>
|
||||||
#include <string>
|
#include <string>
|
||||||
|
#include <map>
|
||||||
|
|
||||||
class XmppComponent;
|
class XmppComponent;
|
||||||
|
|
||||||
@@ -75,6 +76,15 @@ private:
|
|||||||
size_t current_step;
|
size_t current_step;
|
||||||
bool terminated;
|
bool terminated;
|
||||||
|
|
||||||
|
public:
|
||||||
|
/**
|
||||||
|
* A map to store various things that we may want to remember between two
|
||||||
|
* steps of the same session. A step can insert any value associated to
|
||||||
|
* any key in there.
|
||||||
|
*/
|
||||||
|
std::map<std::string, std::string> vars;
|
||||||
|
|
||||||
|
private:
|
||||||
AdhocSession(const AdhocSession&) = delete;
|
AdhocSession(const AdhocSession&) = delete;
|
||||||
AdhocSession(AdhocSession&&) = delete;
|
AdhocSession(AdhocSession&&) = delete;
|
||||||
AdhocSession& operator=(const AdhocSession&) = delete;
|
AdhocSession& operator=(const AdhocSession&) = delete;
|
||||||
|
|||||||
Reference in New Issue
Block a user