setvar.h
Go to the documentation of this file.00001
00002
00003
00004
00005
00006
00007
00008
00009
00010
00011
00012
00013
00014
00015
00016
00017
00018
00019
00020
00027 #ifndef ASTXX_MANAGER_ACTION_SETVAR_H
00028 #define ASTXX_MANAGER_ACTION_SETVAR_H
00029
00030 #include <astxx/manager/basic_action.h>
00031 #include <astxx/manager/message.h>
00032 #include <astxx/manager/action/error.h>
00033
00034 namespace astxx {
00035 namespace manager {
00036 namespace action {
00041 class setvar : public basic_action {
00042 public:
00048 setvar(const std::string& channel, const std::string& variable, const std::string& value) : channel(channel), variable(variable), value(value) {
00049 }
00050
00051 message::action action() const {
00052 message::action action("Setvar");
00053 action["Channel"] = channel;
00054 action["Variable"] = variable;
00055 action["Value"] = value;
00056 return action;
00057 }
00058
00059 private:
00060 std::string channel;
00061 std::string variable;
00062 std::string value;
00063 };
00064 }
00065 }
00066 }
00067
00068 #endif