mirror of
https://gitlab.com/OpenMW/openmw.git
synced 2025-05-02 23:08:00 +03:00
Add command output string and client/server response.
This commit is contained in:
parent
d44f322b8a
commit
7cc27d9b66
8 changed files with 172 additions and 60 deletions
19
components/commandserver/command.hpp
Executable file
19
components/commandserver/command.hpp
Executable file
|
@ -0,0 +1,19 @@
|
|||
#ifndef COMMANDSERVER_COMMAND_HPP
|
||||
#define COMMANDSERVER_COMMAND_HPP
|
||||
|
||||
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;
|
||||
};
|
||||
}
|
||||
|
||||
#endif COMMANDSERVER_COMMAND_HPP
|
Loading…
Add table
Add a link
Reference in a new issue