11 #include <unordered_set> 12 #include <unordered_map> 18 #include <boost/algorithm/string.hpp> 19 #include <boost/range/algorithm/remove_if.hpp> 20 #include <boost/algorithm/string/trim.hpp> 35 std::vector<std::pair<std::string, std::string>>
59 std::vector<std::pair<std::string, std::string>>
101 typedef void (
Command::*insertInstruction)(
const int&,
123 const std::unordered_map<std::string,
124 std::shared_ptr<CommandOptions>>& options);
133 void generateCommand(
const Parameter::ParameterMap& inputParams,
148 void generateCommand(
const Parameter::ParameterMap& inputParams,
149 const std::vector<std::string>& options,
162 const bool verifyResponse(
const Parameter::ParameterMap& inputParams,
163 const std::string& responseOrig,
164 Parameter::ParameterMap& outputParams);
181 const bool verifyResponse(
const Parameter::ParameterMap& inputParams,
182 const std::vector<std::string>& options,
183 const std::string& responseOrig,
184 Parameter::ParameterMap& outputParams);
189 const std::string& getName()
const;
197 std::unordered_map<std::string, std::shared_ptr<CommandOptions>>
options;
203 std::unordered_set<std::string>
205 std::vector<std::string>
211 std::vector<std::pair<int, insertInstruction>>
219 std::vector<std::pair<std::string, bool>>
232 void insertCmdKeyword(
const int& index,
const Parameter::ParameterMap& input,
242 void insertCmdParameter(
const int& index,
243 const Parameter::ParameterMap& input,
std::vector< std::string > cmdKeyWords
std::vector< std::string > cmdParameter
std::unordered_set< std::string > cmdParameterSet
The Parameter::ParameterMap class provides a map functionality for Parameter::Parameter objects conta...
The CommandOptions class serves as a data struct to inform Command objects about all modifiers that c...
std::string simpleResponse
std::unordered_map< std::string, std::string > parameterTypes
std::unordered_map< std::string, std::shared_ptr< CommandOptions > > options
std::vector< std::pair< int, insertInstruction > > commandTemplate
std::vector< std::pair< std::string, bool > > responseTemplate
std::shared_ptr< Syntax > syntax
std::vector< std::pair< std::string, std::string > > params
The CommandParams class serves as a data struct to configure Command objects.
std::vector< std::pair< std::string, std::string > > params
The Command class builds the syntactic template for a specific command defined in a CommandParams str...
Header file for the Syntax struct.
Header file for the Parameter::Parameter, Parameter::GenericParameter and Parameter::ParameterMap cla...