Kea  2.3.5-git
command_interpreter.cc File Reference
#include <config.h>
#include <exceptions/exceptions.h>
#include <cc/command_interpreter.h>
#include <cc/data.h>
#include <string>
#include <set>
+ Include dependency graph for command_interpreter.cc:

Go to the source code of this file.

Namespaces

 isc
 Defines the logger used by the top-level component of kea-lfc.
 
 isc::config
 

Functions

std::string isc::config::answerToText (const ConstElementPtr &msg)
 
ConstElementPtr isc::config::combineCommandsLists (const ConstElementPtr &response1, const ConstElementPtr &response2)
 
ConstElementPtr isc::config::createAnswer (const int status_code, const std::string &text, const ConstElementPtr &arg)
 
ConstElementPtr isc::config::createAnswer ()
 Creates a standard config/command level success answer message (i.e. More...
 
ConstElementPtr isc::config::createAnswer (const int status_code, const std::string &status_text)
 Creates a standard config/command level answer message (i.e. More...
 
ConstElementPtr isc::config::createAnswer (const int status_code, const ConstElementPtr &arg)
 
ConstElementPtr isc::config::createCommand (const std::string &command)
 Creates a standard command message with no argument (of the form { "command": "my_command" }) More...
 
ConstElementPtr isc::config::createCommand (const std::string &command, ConstElementPtr arg)
 
ConstElementPtr isc::config::createCommand (const std::string &command, const std::string &service)
 Creates a standard config/command command message with no argument and with the given service (of the form { "command": "my_command", "service": [ service ] }) More...
 
ConstElementPtr isc::config::createCommand (const std::string &command, ConstElementPtr arg, const std::string &service)
 
ConstElementPtr isc::config::parseAnswer (int &rcode, const ConstElementPtr &msg)
 
std::string isc::config::parseCommand (ConstElementPtr &arg, ConstElementPtr command)
 
std::string isc::config::parseCommandWithArgs (ConstElementPtr &arg, ConstElementPtr command)
 

Variables

const char * isc::config::CONTROL_ARGUMENTS = "arguments"
 String used for arguments map ("arguments") More...
 
const char * isc::config::CONTROL_COMMAND = "command"
 String used for commands ("command") More...
 
const char * isc::config::CONTROL_REMOTE_ADDRESS = "remote-address"
 String used for remote address ("remote-address") More...
 
const char * isc::config::CONTROL_RESULT = "result"
 String used for result, i.e. integer status ("result") More...
 
const char * isc::config::CONTROL_SERVICE = "service"
 String used for service list ("service") More...
 
const char * isc::config::CONTROL_TEXT = "text"
 String used for storing textual description ("text") More...