Go to the documentation of this file.
12 #ifndef ZYPP_PLUGINSCRIPT_H
13 #define ZYPP_PLUGINSCRIPT_H
197 #endif // ZYPP_PLUGINSCRIPT_H
std::vector< std::string > Arguments
Commandline arguments passed to a script on open.
long receiveTimeout() const
Local default timeout (sec.) when receiving data.
int close()
Close any open connection.
RW_pointer< Impl > _pimpl
Pointer to implementation.
int lastReturn() const
Remembers a scripts return value after close until next open.
friend std::ostream & operator<<(std::ostream &str, const PluginScript &obj)
void timeout(long newval_r)
Set local default timeout (sec.) (both: send and receive).
PluginScript()
Default ctor.
bool isOpen() const
Whether we are connected to a script.
Easy-to use interface to the ZYPP dependency resolver.
Command frame for communication with PluginScript.
const Arguments & args() const
Return the script arguments if set.
static const pid_t NotConnected
pid_t(-1) constant indicating no connection.
static long defaultReceiveTimeout()
Global default timeout (sec.) when receiving data.
std::ostream & operator<<(std::ostream &str, const Exception &obj)
void send(const PluginFrame &frame_r) const
Send a PluginFrame.
const Pathname & script() const
Return the script path if set.
static void defaultTimeout(long newval_r)
Set global default timeout (sec.) (both: send and receive).
PluginFrame receive() const
Receive a PluginFrame.
const std::string & lastExecError() const
Remembers a scripts execError string after close until next open.
String related utilities and Regular expression matching.
long sendTimeout() const
Local default timeout (sec.) when sending data.
static long defaultSendTimeout()
Global default timeout (sec.) when sending data.
pid_t getPid() const
Return a connected scripts pid or NotConnected.
Interface to plugin scripts using a Stomp inspired communication protocol.
void open()
Setup connection and execute script.