Kea 2.7.5
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

namespace  isc
 Defines the logger used by the top-level component of kea-lfc.
 
namespace  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 ()
 Creates a standard config/command level success answer message (i.e.
 
ConstElementPtr isc::config::createAnswer (const int status_code, const ConstElementPtr &arg)
 
ConstElementPtr isc::config::createAnswer (const int status_code, const std::string &status_text)
 Creates a standard config/command level answer message (i.e.
 
ConstElementPtr isc::config::createAnswer (const int status_code, const std::string &text, 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" })
 
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 ] })
 
ConstElementPtr isc::config::createCommand (const std::string &command, ConstElementPtr arg)
 
ConstElementPtr isc::config::createCommand (const std::string &command, ConstElementPtr arg, const std::string &service)
 
ConstElementPtr isc::config::parseAnswer (int &rcode, const ConstElementPtr &msg)
 
ConstElementPtr isc::config::parseAnswerText (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")
 
const char * isc::config::CONTROL_COMMAND = "command"
 String used for commands ("command")
 
const char * isc::config::CONTROL_REMOTE_ADDRESS = "remote-address"
 String used for remote address ("remote-address")
 
const char * isc::config::CONTROL_RESULT = "result"
 String used for result, i.e. integer status ("result")
 
const char * isc::config::CONTROL_SERVICE = "service"
 String used for service list ("service")
 
const char * isc::config::CONTROL_TEXT = "text"
 String used for storing textual description ("text")