Go to the documentation of this file.
12 #ifndef ZYPP_EXTERNALDATASOURCE_H
13 #define ZYPP_EXTERNALDATASOURCE_H
22 namespace externalprogram {
56 bool send(
const char *buffer,
size_t length );
62 bool send( std::string s );
70 size_t receive(
char *buffer,
size_t length );
129 #endif // ZYPP_EXTERNALDATASOURCE_H
virtual int close()
Close the input and output streams.
size_t receive(char *buffer, size_t length)
Read some data from the input stream.
virtual ~ExternalDataSource()
Implicitly close the connection.
bool send(const char *buffer, size_t length)
Send some data to the output stream.
std::string receiveUpto(char c)
Read characters into a string until delimiter c or EOF is read.
Easy-to use interface to the ZYPP dependency resolver.
FILE * outputFile() const
Return the output stream.
void setBlocking(bool mode)
Set the blocking mode of the input stream.
std::string receiveLine()
Read one line from the input stream.
Bidirectional stream to external data.
ExternalDataSource(FILE *inputfile=0, FILE *outputfile=0)
Create a new instance.
FILE * inputFile() const
Return the input stream.