Line data Source code
1 : #include "config.hpp" 2 : 3 : 4 5 : ConfigToFlxToFile::ConfigToFlxToFile() : ConfigToFlx(), ConfigFile() 5 : { 6 5 : resource.use_file = true; 7 5 : resource.toflx = true; 8 5 : } 9 : 10 10 : ConfigToFlxToFile::~ConfigToFlxToFile() { } 11 : 12 : 13 0 : std::ostream& ConfigToFlxToFile::format(std::ostream& os) const { 14 0 : os << "ConfigToFlxToFile" << std::endl; 15 0 : os << std::endl; 16 0 : return ConfigToFlx::format(ConfigFile::format(os)); 17 : } 18 : 19 : 20 0 : std::ostream& operator<<(std::ostream& os, const ConfigToFlxToFile& c) { 21 0 : return c.format(os); 22 : } 23 : 24 : 25 5 : std::string ConfigToFlxToFile::usage() { 26 5 : return 27 5 : R"(felix-toflx2file - FELIX central data acquisition application 28 : 29 : Usage: 30 : felix-toflx2file [options --device=<device>... --cid=<cid>... --elink=DMAID:LID...] FILE 31 : )"; 32 : } 33 : 34 : 35 5 : std::string ConfigToFlxToFile::options() { 36 10 : return ConfigToFlx::options() + ConfigFile::options(); 37 : } 38 : 39 : 40 5 : void ConfigToFlxToFile::handle_cmd_line(std::map<std::string, docopt::value> args) { 41 5 : ConfigToFlx::handle_cmd_line(args); 42 5 : ConfigFile::handle_cmd_line(args); 43 : 44 5 : }