8#include "nlohmann/json.hpp"
56 unsigned long rlevel = 10,
57 const std::vector<std::string> *rclasses =
nullptr);
61 bool multi_value, nlohmann::json &attributes) {
65 attributes[name] = value;
67 std::vector<T> value_vector;
68 obj.get(name, value_vector);
69 attributes[name] = nlohmann::json(value_vector);
80 for (
auto const *as : app->get_exposes_service()) {
81 if (as->UID().ends_with(
"_control")) {
83 throw DuplicatedControlService(
ERS_HERE, as->UID());
88 if (control_service ==
nullptr)
89 throw NoControlServiceDefined(
ERS_HERE, app->UID());
91 const std::string control_uri = control_service->
get_protocol() +
"://" +
92 app->get_runs_on()->get_runs_on()->UID() +
94 std::to_string(control_service->
get_port());
105 "--configurationService",
Defines base class for cache of template objects.
const std::string & get_impl_spec() const noexcept
const std::string & get_protocol() const
Get "protocol" attribute value.
uint16_t get_port() const
Get "port" attribute value.
const std::vector< std::string > construct_commandline_parameters_appfwk(const T *app, const conffwk::Configuration &confdb, const dunedaq::confmodel::Session *session)
const dunedaq::confmodel::Session * get_session(dunedaq::conffwk::Configuration &conf, const std::string &name, unsigned long rlevel=10, const std::vector< std::string > *rclasses=nullptr)
Get session object.
void add_json_value(conffwk::ConfigObject &obj, std::string &name, bool multi_value, nlohmann::json &attributes)