27 for (
int i = 0; i < cmdline.size(); ++i)
32 name = cmdline[i].remove(0, 2);
33 if (i + 1 < cmdline.size())
49 if (args.count(
"type"))
58 reportError(
"Failed to create sender based on type: "+type);
62 streamer->initialize(args);
83 for (
unsigned i=0; i< mCommandLineStreamers.size(); ++i)
84 retval << mCommandLineStreamers[i]->getType();
90 for (
unsigned i=0; i< mCommandLineStreamers.size(); ++i)
91 if (mCommandLineStreamers[i]->getType()==type)
98 for (
unsigned i=0; i< mCommandLineStreamers.size(); ++i)
99 if (mCommandLineStreamers[i]->getType()==type)
100 return mCommandLineStreamers[i];
void reportError(QString msg)
StreamerPtr getFromArguments(StringMap args)
QStringList getSenderTypes() const
all available sender types
CommandLineStreamerPtr getImageSender(QString type)
std::map< QString, QString > StringMap
CommandlineImageStreamerFactory()
void reportSuccess(QString msg)
QStringList getArgumentDescription(QString type) const
arguments for one streamer
bool startsWith(std::string const &s, std::string const &prefix)
StringMap extractCommandlineOptions(QStringList cmdline)
boost::shared_ptr< class DummyImageStreamer > DummyImageStreamerPtr
boost::shared_ptr< CommandLineStreamer > CommandLineStreamerPtr
QString getDefaultSenderType() const
boost::shared_ptr< class Streamer > StreamerPtr
Namespace for all CustusX production code.