Public Member Functions | Protected Member Functions | Protected Attributes | Static Protected Attributes

IOStream Class Reference

Inheritance diagram for IOStream:
IOObject IOObj NamedObject CallBacker

List of all members.

Public Member Functions

 IOStream (const char *nm=0, const char *id=0, bool=false)
virtual ~IOStream ()
bool bad () const
StreamConn::Type type () const
void setType (StreamConn::Type t)
void copyFrom (const IOObj *)
const char * fullUserExpr (bool) const
const char * getExpandedName (bool forread, bool fillwildcard=true) const
void genDefaultImpl ()
const char * connType () const
bool slowOpen () const
ConngetConn (Conn::State) const
bool implExists (bool forread) const
bool implReadOnly () const
bool implRemove () const
bool implShouldRemove () const
bool implSetReadOnly (bool) const
bool implRename (const char *, const CallBack *cb=0)
bool multiConn () const
int connNr () const
bool toNextConnNr ()
int lastConnNr () const
int nextConnNr () const
void resetConnNr ()
void setConnNr (int nr)
const char * hostName () const
void setHostName (const char *hn)
const char * fileName () const
void setFileName (const char *)
void setExt (const char *ext)
void genFileName ()
const char * reader () const
const char * writer () const
void setReader (const char *)
void setWriter (const char *)
const char * devName () const
void setDevName (const char *)
int blockSize () const
void setBlockSize (int bs)
int skipFiles () const
void setSkipFiles (int sf)
void setRewind (bool yn_)
bool rewindTape () const
int zeroPadding () const
void setZeroPadding (int zp)
StepInterval< int > & fileNumbers ()
const StepInterval< int > & fileNumbers () const
StreamProviderstreamProvider (bool, bool fillwc=true) const
bool isMulti () const

Protected Member Functions

bool getFrom (ascistream &)
bool putTo (ascostream &) const
void getDev (ascistream &)
bool validNr () const
bool implDo (bool, bool) const

Protected Attributes

BufferString hostname
int nrfiles
FileNameString fname
BufferString extension
FileNameString * readcmd
FileNameString * writecmd
int blocksize
int skipfiles
bool rew
int padzeros
StepInterval< int > fnrs
int curfnr
int nrretries
int retrydelay
StreamConn::Type type_

Static Protected Attributes

static int prodid
 for factory implementation

Constructor & Destructor Documentation

IOStream::IOStream ( const char *  nm = 0,
const char *  id = 0,
bool  = false 
)
virtual IOStream::~IOStream (  )  [virtual]

Member Function Documentation

bool IOStream::bad (  )  const [virtual]

Implements IOObj.

int IOStream::blockSize (  )  const [inline]
int IOStream::connNr (  )  const [inline]
const char* IOStream::connType (  )  const [virtual]

Implements IOObj.

void IOStream::copyFrom ( const IOObj  )  [virtual]

Implements IOObj.

const char* IOStream::devName (  )  const
const char* IOStream::fileName (  )  const [inline]
StepInterval<int>& IOStream::fileNumbers (  )  [inline]
const StepInterval<int>& IOStream::fileNumbers (  )  const [inline]
const char* IOStream::fullUserExpr ( bool   )  const [virtual]

Implements IOObj.

void IOStream::genDefaultImpl (  )  [inline, virtual]

Reimplemented from IOObj.

void IOStream::genFileName (  ) 
Conn* IOStream::getConn ( Conn::State   )  const [virtual]

Implements IOObj.

void IOStream::getDev ( ascistream  )  [protected]
const char* IOStream::getExpandedName ( bool  forread,
bool  fillwildcard = true 
) const
bool IOStream::getFrom ( ascistream  )  [protected, virtual]

Implements IOObj.

const char* IOStream::hostName (  )  const [inline]
bool IOStream::implDo ( bool  ,
bool   
) const [protected]
bool IOStream::implExists ( bool  forread  )  const [virtual]

Implements IOObj.

bool IOStream::implReadOnly (  )  const [virtual]

Reimplemented from IOObj.

bool IOStream::implRemove (  )  const [virtual]

Reimplemented from IOObj.

bool IOStream::implRename ( const char *  ,
const CallBack cb = 0 
) [virtual]

Reimplemented from IOObj.

bool IOStream::implSetReadOnly ( bool   )  const [virtual]

Reimplemented from IOObj.

bool IOStream::implShouldRemove (  )  const [virtual]

Reimplemented from IOObj.

bool IOStream::isMulti (  )  const [inline]
int IOStream::lastConnNr (  )  const [inline]
bool IOStream::multiConn (  )  const [inline]
int IOStream::nextConnNr (  )  const [inline]
bool IOStream::putTo ( ascostream  )  const [protected, virtual]

Implements IOObj.

const char* IOStream::reader (  )  const [inline]
void IOStream::resetConnNr (  )  [inline]
bool IOStream::rewindTape (  )  const [inline]
void IOStream::setBlockSize ( int  bs  )  [inline]
void IOStream::setConnNr ( int  nr  )  [inline]
void IOStream::setDevName ( const char *   ) 
void IOStream::setExt ( const char *  ext  )  [inline]
void IOStream::setFileName ( const char *   ) 
void IOStream::setHostName ( const char *  hn  )  [inline]
void IOStream::setReader ( const char *   ) 
void IOStream::setRewind ( bool  yn_  )  [inline]
void IOStream::setSkipFiles ( int  sf  )  [inline]
void IOStream::setType ( StreamConn::Type  t  )  [inline]
void IOStream::setWriter ( const char *   ) 
void IOStream::setZeroPadding ( int  zp  )  [inline]
int IOStream::skipFiles (  )  const [inline]
bool IOStream::slowOpen (  )  const [inline, virtual]

Reimplemented from IOObj.

StreamProvider* IOStream::streamProvider ( bool  ,
bool  fillwc = true 
) const
bool IOStream::toNextConnNr (  )  [inline]
StreamConn::Type IOStream::type (  )  const [inline]
bool IOStream::validNr (  )  const [inline, protected]
const char* IOStream::writer (  )  const [inline]
int IOStream::zeroPadding (  )  const [inline]

Member Data Documentation

int IOStream::blocksize [protected]
int IOStream::curfnr [protected]
FileNameString IOStream::fname [protected]
StepInterval<int> IOStream::fnrs [protected]
int IOStream::nrfiles [protected]
int IOStream::nrretries [protected]
int IOStream::padzeros [protected]
int IOStream::prodid [static, protected]

for factory implementation

FileNameString* IOStream::readcmd [protected]
int IOStream::retrydelay [protected]
bool IOStream::rew [protected]
int IOStream::skipfiles [protected]
FileNameString* IOStream::writecmd [protected]