From 284af79128c4bae9fa76f2dd5916ebfd81ecf718 Mon Sep 17 00:00:00 2001 From: Florent Le Coz Date: Thu, 3 Dec 2015 21:08:04 +0100 Subject: =?UTF-8?q?Provide=20a=20=E2=80=9Cvar=E2=80=9D=20map=20in=20AdhocS?= =?UTF-8?q?ession=20objects,=20to=20save=20values=20between=20each=20step?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- louloulibs/xmpp/adhoc_session.hpp | 10 ++++++++++ 1 file changed, 10 insertions(+) diff --git a/louloulibs/xmpp/adhoc_session.hpp b/louloulibs/xmpp/adhoc_session.hpp index da7913f..05afc91 100644 --- a/louloulibs/xmpp/adhoc_session.hpp +++ b/louloulibs/xmpp/adhoc_session.hpp @@ -5,6 +5,7 @@ #include #include +#include class XmppComponent; @@ -75,6 +76,15 @@ private: size_t current_step; 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 vars; + +private: AdhocSession(const AdhocSession&) = delete; AdhocSession(AdhocSession&&) = delete; AdhocSession& operator=(const AdhocSession&) = delete; -- cgit v1.2.3