48 for (
int i = 0; i < cmdline.size(); ++i)
53 name = cmdline[i].remove(0, 2);
54 if (i + 1 < cmdline.size())
70 if (args.count(
"type"))
79 reportError(
"Failed to create sender based on type: "+type);
83 streamer->initialize(args);
104 for (
unsigned i=0; i< mCommandLineStreamers.size(); ++i)
105 retval << mCommandLineStreamers[i]->getType();
111 for (
unsigned i=0; i< mCommandLineStreamers.size(); ++i)
112 if (mCommandLineStreamers[i]->getType()==type)
114 return QStringList();
119 for (
unsigned i=0; i< mCommandLineStreamers.size(); ++i)
120 if (mCommandLineStreamers[i]->getType()==type)
121 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.