Commit 284af791 authored by louiz’'s avatar louiz’
Browse files

Provide a “var” map in AdhocSession objects, to save values between each step

parent 6a7cd5ee
......@@ -5,6 +5,7 @@
#include <functional>
#include <string>
#include <map>
class XmppComponent;
......@@ -75,6 +76,15 @@ private:
size_t current_step;
bool terminated;
* 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;
AdhocSession(const AdhocSession&) = delete;
AdhocSession(AdhocSession&&) = delete;
AdhocSession& operator=(const AdhocSession&) = delete;
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