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

pdf::common::CResource Class Reference

the PDF resource base class More...

#include <Resource.hh>

Inheritance diagram for pdf::common::CResource:

Inheritance graph
[legend]
Collaboration diagram for pdf::common::CResource:

Collaboration graph
[legend]
List of all members.

Public Methods

Protected Methods

Private Attributes


Detailed Description

the PDF resource base class

this is the PDF CResource base class. it contains two properties: a PDF name and a sub type.


Constructor & Destructor Documentation

pdf::common::CResource::CResource const core::CName   type,
const core::CName   sub_type
[protected]
 

constructor to initalize the sub type. the font name must be initialized by the SetName() function before it is written.

00038     : m_type( type ), m_sub_type( sub_type )
00039 {
00040 }

pdf::common::CResource::~CResource   [virtual]
 

destructor do nothing

00045 {
00046 }


Member Function Documentation

const core::CName& pdf::common::CResource::Type   const [inline, protected]
 

get the type

00066 { return m_type ; }

const core::CName& pdf::common::CResource::SubType   const [inline, protected]
 

get the subtype

00069 { return m_sub_type ; }

const core::CName& pdf::common::CResource::Name   const [inline]
 

get the PDF name

00075 { return m_name ; }

void pdf::common::CResource::SetName const core::CName   name
 

set the PDF name

initialize the font name.

Parameters:
name  font name. must not be empty.

00053 {
00054     assert( m_name.empty( ) ) ;
00055     m_name = name ;
00056 }

virtual const core::CObjRef pdf::common::CResource::Write core::CFile   file const [pure virtual]
 

write the resource to the PDF file

Implemented in pdf::font::CStandard, pdf::font::CTrueType, pdf::graph::CImage, and pdf::graph::CJpegImage.


Member Data Documentation

core::CName pdf::common::CResource::m_name [private]
 

PDF resource name. auto-generated.

Reimplemented in pdf::font::CStandard.

core::CName pdf::common::CResource::m_type [private]
 

resource type

core::CName pdf::common::CResource::m_sub_type [private]
 

sub type


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