|
Falcon
|
Public Member Functions | |
| CommandHandler (GlobalContext &context) | |
| void | addSource (CommandSource &source) |
| bool | HandleCommand (std::deque< std::string > &command, std::deque< std::string > &reply) |
| bool | DelegateGraphCommand (std::deque< std::string > &command, std::deque< std::string > &reply) |
| bool | DelegateResourcesCommand (std::deque< std::string > &command, std::deque< std::string > &reply) |
| void | start () |
|
inline |
Add a source to receive commands from it (example: cloud/zmq, command line, keyboard)
| source | class defining the source of commands derived from CommandSource |
| bool CommandHandler::DelegateGraphCommand | ( | std::deque< std::string > & | command, |
| std::deque< std::string > & | reply ) |
Send commands to the graph thread via it graph socket
| command | keyword send to the graph thread |
| reply | buffer for the answer from the graph socket |
| bool CommandHandler::DelegateResourcesCommand | ( | std::deque< std::string > & | command, |
| std::deque< std::string > & | reply ) |
Manage sub-command for the resources command
| sub-command | keyword |
| reply | buffer for the answer from the graph socket |
| bool CommandHandler::HandleCommand | ( | std::deque< std::string > & | command, |
| std::deque< std::string > & | reply ) |
Receive commands and delegate to the graph thread in case of a graph command or handle it directly
| command | |
| reply | buffer for the answer from the graph socket |
| void CommandHandler::start | ( | ) |
Once start is launched the main thread is busy only listening, processing and replying to messages coming from listed sources