2010-07-02 07:05:57 +00:00
|
|
|
#ifndef COMMANDSERVER_COMMAND_HPP
|
|
|
|
#define COMMANDSERVER_COMMAND_HPP
|
|
|
|
|
2010-07-02 08:41:39 +00:00
|
|
|
#include <boost/function.hpp>
|
|
|
|
|
2010-07-02 07:05:57 +00:00
|
|
|
namespace OMW
|
|
|
|
{
|
|
|
|
///
|
|
|
|
/// A Command is currently defined as a string input that, when processed,
|
|
|
|
/// will generate a string output. The string output is passed to the
|
|
|
|
/// mReplyFunction as soon as the command has been processed.
|
|
|
|
///
|
|
|
|
class Command
|
|
|
|
{
|
|
|
|
public:
|
|
|
|
std::string mCommand;
|
|
|
|
boost::function1<void, std::string> mReplyFunction;
|
|
|
|
};
|
|
|
|
}
|
|
|
|
|
2010-07-02 08:41:39 +00:00
|
|
|
#endif //COMMANDSERVER_COMMAND_HPP
|