27 std::cout <<
"\n" << controller->
UID() <<
"\n";
28 for (
auto const& CLA: controller->construct_commandline_parameters(*db,
session))
29 std::cout <<
"CLA: " << CLA <<
"\n";
32 std::cout <<
"\n" << app->UID() <<
"\n";
33 std::vector<std::string> CLAs;
34 if (app->castable(
"SmartDaqApplication")) {
36 CLAs = sdapp->construct_commandline_parameters(*db,
session);
37 }
else if (app->castable(
"DaqApplication")) {
39 CLAs = dapp->construct_commandline_parameters(*db,
session);
41 CLAs = app->get_commandline_parameters();
44 for (
auto const& CLA: CLAs)
45 std::cout <<
"CLA: " << CLA <<
"\n";
54int main(
int argc,
char* argv[]) {
57 std::cout <<
"Usage: " << argv[0] <<
" session database-file\n";
61 std::string sessionName(argv[1]);
64 std::string confimpl =
"oksconflibs:" + std::string(argv[2]);
69 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)