Main Page   Namespace List   Class Hierarchy   Alphabetical List   Compound List   File List   Namespace Members   Compound Members   File Members  

Dv::Util::ipstream Class Reference

A wrapper that makes a stream of popen(command,"r"). More...

#include <pstream.h>

List of all members.

Public Member Functions

 ipstream (const std::string &command) throw (std::runtime_error)
 Constructor.

 ~ipstream () throw (std::runtime_error)
 Destructor.

const std::string & command () const

Private Attributes

void * file_
const std::string & command_


Detailed Description

A wrapper that makes a stream of popen(command,"r").

Definition at line 13 of file pstream.h.


Constructor & Destructor Documentation

Dv::Util::ipstream::ipstream const std::string &  command  )  throw (std::runtime_error)
 

Constructor.

Create an input stream for data produced by a command.

Parameters:
command see popen(3)
Exceptions:
std::runtime_error if anything goes wrong.

Dv::Util::ipstream::~ipstream  )  throw (std::runtime_error)
 

Destructor.

Exceptions:
std::runtime_error if anything goes wrong.


Member Function Documentation

const std::string& Dv::Util::ipstream::command  )  const [inline]
 

Definition at line 26 of file pstream.h.

References command_.


Member Data Documentation

void* Dv::Util::ipstream::file_ [private]
 

Definition at line 28 of file pstream.h.

const std::string& Dv::Util::ipstream::command_ [private]
 

Definition at line 29 of file pstream.h.

Referenced by command().


The documentation for this class was generated from the following file:
dvutil-0.13.9 [17 August, 2003]