#include <CommandParseContext.h>
◆ CscCommandParseContext()
| conscience_core::bridging::commands::CscCommandParseContext::CscCommandParseContext |
( |
optional< int > |
knowledgeId, |
|
|
const vector< string > & |
arguments, |
|
|
const string & |
originalCommandString, |
|
|
const ConscienceEncoder & |
conscienceEncoder, |
|
|
CscEntityModelsRepository & |
entityModelRepository, |
|
|
CscEntityReflexions & |
entityReflexions |
|
) |
| |
◆ ~CscCommandParseContext()
| conscience_core::bridging::commands::CscCommandParseContext::~CscCommandParseContext |
( |
| ) |
|
◆ extractAdditionalParams()
| map< string, string > conscience_core::bridging::commands::CscCommandParseContext::extractAdditionalParams |
( |
int |
fromIndex = 0 | ) |
|
extract parameters of form "name=value" (keep them in the vector)
- Parameters
-
| fromIndex | use this to skip indices on which there cannot be additional params - index is inclusive |
◆ getCurrentStateFromArguments()
Retrieves state from arguments (argument at STATE_ARGUMENT_INDEX)
◆ getEntityModelFromArguments()
| CscEntityModel * conscience_core::bridging::commands::CscCommandParseContext::getEntityModelFromArguments |
( |
| ) |
const |
◆ getEntityReflexionFromParameter()
| ptr< CscEntityReflexion > conscience_core::bridging::commands::CscCommandParseContext::getEntityReflexionFromParameter |
( |
int |
index = 0 | ) |
|
Returns entity reflexion from serial number in parameters at given index OR nullptr if entity reflexion is not found
◆ getEntityReflexionFromParameterOrThrow()
| ptr< CscEntityReflexion > conscience_core::bridging::commands::CscCommandParseContext::getEntityReflexionFromParameterOrThrow |
( |
int |
index = 0 | ) |
|
|
noexcept |
Returns entity reflexion from serial number in parameters at given index OR throw an exception if not found
◆ getParameter()
| string conscience_core::bridging::commands::CscCommandParseContext::getParameter |
( |
int |
index | ) |
|
◆ getParameters()
| const vector< string > & conscience_core::bridging::commands::CscCommandParseContext::getParameters |
( |
| ) |
|
A specific list of parameters for a specific Conscience Environment Interaction Command (Compared to arguments, it's a sublist of arguments, specific to the command). NOTE: caller is in charge of deleting the returned pointer
◆ arguments
| const vector<string>& conscience_core::bridging::commands::CscCommandParseContext::arguments |
◆ encoder
| const ConscienceEncoder& conscience_core::bridging::commands::CscCommandParseContext::encoder |
◆ entityModelRepository
◆ entityReflexions
| CscEntityReflexions& conscience_core::bridging::commands::CscCommandParseContext::entityReflexions |
◆ knowledgeId
| const optional<int> conscience_core::bridging::commands::CscCommandParseContext::knowledgeId |
◆ originalCommandString
| const string& conscience_core::bridging::commands::CscCommandParseContext::originalCommandString |
The documentation for this struct was generated from the following files: