Main Page   Namespace List   Class Hierarchy   Compound List   File List   Namespace Members   Compound Members   Related Pages  

pdf::font::CProgStream Class Reference

a stream for font program files. More...

#include <ProgStream.hh>

Inheritance diagram for pdf::font::CProgStream:

Inheritance graph
[legend]
Collaboration diagram for pdf::font::CProgStream:

Collaboration graph
[legend]
List of all members.

Public Methods

Private Methods


Detailed Description

a stream for font program files.

this class is used to represent font program streams. it will read the file and put the font program file data into the stream content. it will also add the required fields to the stream dictionary.


Constructor & Destructor Documentation

pdf::font::CProgStream::CProgStream const std::string &    filename
 

given the filename of a font program file, construct a stream. it will read the file and put the file content into our stream content. it will also add the uncompress length of the stream to the stream dictionary.

Parameters:
filename  filename of the font program file

00043 {
00044     using namespace std ;
00045     
00046     // open the font program file
00047     ifstream program( filename.c_str( ) ) ;
00048     
00049     // read the file by istreambuf iterator
00050     Assign( istreambuf_iterator<char>( program ),
00051             istreambuf_iterator<char>( ), 9 ) ;
00052 }


Member Function Documentation

core::CObject * pdf::font::CProgStream::Dup   const [virtual]
 

virtual copy constructor. will return new *this (or the like)

Implements pdf::core::CObject.

00063 {
00064     return new CProgStream( *this ) ;
00065 }


The documentation for this class was generated from the following files:
Generated on Sun Feb 2 09:17:20 2003 for libpdf++ by doxygen1.2.16