Public Types | Public Member Functions | Private Attributes

cmtk::CompressedStream::Pipe Class Reference

Class for reader engine using pipe. More...

Inheritance diagram for cmtk::CompressedStream::Pipe:
Inheritance graph
[legend]
Collaboration diagram for cmtk::CompressedStream::Pipe:
Collaboration graph
[legend]

List of all members.

Public Types

typedef Pipe Self
 This class.
typedef SmartPointer< SelfSmartPtr
 Smart pointer to this class.

Public Member Functions

 Pipe (const char *filename, const char *command)
 Open new pipe from filename.
virtual void Close ()
 Close current file stream.
virtual void Rewind ()
 Reset read pointer to beginning of stream.
virtual size_t Read (void *data, size_t size, size_t count)
 Read block of data.
virtual bool Get (char &c)
 Read a single character from the stream.
virtual int Tell () const
 Return number of bytes read from stream.
virtual bool Feof () const
 Return 1 if and only if end of file reached.

Private Attributes

FILE * m_File
 File pointer.

Detailed Description

Class for reader engine using pipe.

Definition at line 301 of file cmtkCompressedStream.h.


Member Typedef Documentation

This class.

Reimplemented from cmtk::CompressedStream::ReaderBase.

Definition at line 306 of file cmtkCompressedStream.h.

Smart pointer to this class.

Reimplemented from cmtk::CompressedStream::ReaderBase.

Definition at line 309 of file cmtkCompressedStream.h.


Member Data Documentation

File pointer.

Definition at line 334 of file cmtkCompressedStream.h.


The documentation for this class was generated from the following files:
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Defines