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

Dv::Util::opstream Class Reference

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

#include <pstream.h>

List of all members.

Public Member Functions

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

 ~opstream () 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,"w").

Definition at line 33 of file pstream.h.


Constructor & Destructor Documentation

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

Constructor.

Create an output stream for data to send to a process.

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

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

Destructor.

Also flushes the stream.

Exceptions:
std::runtime_error if anything goes wrong.


Member Function Documentation

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

Definition at line 46 of file pstream.h.

References command_.


Member Data Documentation

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

Definition at line 48 of file pstream.h.

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

Definition at line 49 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]