28 std::cout <<
"\n" << controller->
UID() <<
"\n";
29 for (
auto const& CLA: controller->construct_commandline_parameters(*db,
session))
30 std::cout <<
"CLA: " << CLA <<
"\n";
33 std::cout <<
"\n" << app->UID() <<
"\n";
34 std::vector<std::string> CLAs;
35 if (app->castable(
"SmartDaqApplication")) {
37 CLAs = sdapp->construct_commandline_parameters(*db,
session);
38 }
else if (app->castable(
"DaqApplication")) {
40 CLAs = dapp->construct_commandline_parameters(*db,
session);
42 CLAs = app->get_commandline_parameters();
45 for (
auto const& CLA: CLAs)
46 std::cout <<
"CLA: " << CLA <<
"\n";
55int main(
int argc,
char* argv[]) {
58 std::cout <<
"Usage: " << argv[0] <<
" session database-file\n";
62 std::string sessionName(argv[1]);
65 std::string confimpl =
"oksconflibs:" + std::string(argv[2]);
70 std::cerr <<
"Session " << sessionName <<
" not found in database\n";
const std::string & UID() const noexcept
const std::vector< const dunedaq::confmodel::Segment * > & get_segments() const
Get "segments" relationship value. Nested list of Segments that form part of this Segment.
const std::vector< const dunedaq::confmodel::Application * > & get_applications() const
Get "applications" relationship value. List of Applications that run in this Segment.
const dunedaq::confmodel::RCApplication * get_controller() const
Get "controller" relationship value. This Segment's run controller.
static void setup(const std::string &session, const std::string &application)
Setup the Logger service Currently no args.
int main(int argc, char *argv[])
void print_segment_application_commandline(const dunedaq::confmodel::Segment *segment, const dunedaq::confmodel::Session *session, conffwk::Configuration *db)