Sirikata
Namespaces | Typedefs | Functions
libcore/include/sirikata/core/command/Command.hpp File Reference
#include <sirikata/core/util/Platform.hpp>
#include <json_spirit/json_spirit.h>
Include dependency graph for Command.hpp:
This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Namespaces

namespace  Sirikata
 

Note: All the classes provided in this file are thin wrappers around the corresponding classes in ASIO.


namespace  Sirikata::Command
 

The Command namespace contains classes for handling external command requests, allowing external tools to interact with a live Sirikata process.


Typedefs

typedef String Sirikata::Command::CommandKey
 A CommandKey is a name for a command.
typedef uint32 Sirikata::Command::CommandID
 Unique ID for a command request.
typedef json_spirit::Value Sirikata::Command::Command
 Commands take the form of JSON trees.
typedef json_spirit::Value::String Sirikata::Command::String
typedef json_spirit::Array Sirikata::Command::Array
typedef json_spirit::Object Sirikata::Command::Object
typedef json_spirit::Value Sirikata::Command::Result
 Results are returned by executing a command.
typedef std::tr1::function
< void(const Command
&, Commander *, CommandID) 
Sirikata::Command::CommandHandler )
 CommandHandlers actually process Commands and return a Result to be forwarded to the requestor.

Functions

bool SIRIKATA_FUNCTION_EXPORT Sirikata::Command::CommandIsValid (const Command &cmd)
void SIRIKATA_FUNCTION_EXPORT Sirikata::Command::CommandSetName (Command &cmd, const String &name)
Result Sirikata::Command::EmptyResult ()