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

pdf::core::CString Class Reference

the PDF string class More...

#include <Object.hh>

Inheritance diagram for pdf::core::CString:

Inheritance graph
Collaboration diagram for pdf::core::CString:

Collaboration graph
List of all members.

Public Methods

Private Attributes

Detailed Description

the PDF string class

a class to wrap up a normal string to a PDF string

Constructor & Destructor Documentation

pdf::core::CString::CString const std::string &    str = std::string( ) [inline, explicit]

constructor to initialize the string

00173         : m_string( str ) { }

pdf::core::CString::~CString   [inline]

destructor do nothing

00175 { }

Member Function Documentation

std::ostream & pdf::core::CString::Write std::ostream &    os const [virtual]

write out the string. according to the PDF spec, there should be backets.

Implements pdf::core::CObject.

00127 {
00128     return os << '(' << m_string << ')' ;
00129 }

CObject * pdf::core::CString::Dup   const [virtual]

dynamic clone

Implements pdf::core::CObject.

00134 {
00135     return new CString( m_string ) ;
00136 }

Member Data Documentation

std::string pdf::core::CString::m_string [private]

the wrapped string

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