Commit e746e58a authored by Michal 'vorner' Vaner's avatar Michal 'vorner' Vaner
Browse files

[2861] Little bit of documentation

parent bc251297
......@@ -94,14 +94,23 @@ typedef boost::function<void ()> FinishedCallback;
/// This just holds the data items together, no logic or protection
/// is present here.
struct Command {
/// \brief Constructor
/// It just initializes the member variables of the same names
/// as the parameters.
Command(CommandID id, const data::ConstElementPtr& params,
const FinishedCallback& callback) :
/// \brief The command to execute
CommandID id;
/// \brief Argument of the command.
/// If the command takes no argument, it should be null pointer.
data::ConstElementPtr params;
/// \brief A callback to be called once the command finishes.
FinishedCallback callback;
Supports Markdown
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