Model Railroad System  2.2.1
Public Member Functions | Protected Member Functions | Private Member Functions | Private Attributes | List of all members
FCFSupport::PDFFileStructures::PageLabelTree Class Reference

A tree of page label dictionaries. More...

#include <PDFPrinterSupport.h>

Inheritance diagram for FCFSupport::PDFFileStructures::PageLabelTree:
FCFSupport::PDFFileStructures::Dictionary FCFSupport::PDFFileStructures::IndirectObject

Public Member Functions

 PageLabelTree (unsigned long int objNum=0L, unsigned short int genNum=0, CrossReferenceTable *tab=NULL)
 Constructor. More...
 
 ~PageLabelTree ()
 Destructor. More...
 
void AddPageLabelTree (PageLabelTree *node)
 Add a page label tree node. More...
 
void AddPageLabelDictionary (int number, PageLabelDictionary *pld)
 Add a page label dictionary. More...
 
int Size () const
 Return the number of sub-nodes in this page label tree. More...
 
- Public Member Functions inherited from FCFSupport::PDFFileStructures::Dictionary
 Dictionary (unsigned long int objNum=0L, unsigned short int genNum=0, CrossReferenceTable *tab=NULL)
 Constructor. More...
 
virtual ~Dictionary ()
 Destructor. More...
 
virtual ostream & WriteDirect (ostream &stream) const
 Write an object directly. More...
 
- Public Member Functions inherited from FCFSupport::PDFFileStructures::IndirectObject
 IndirectObject (unsigned long int objNum=0L, unsigned short int genNum=0, CrossReferenceTable *tab=NULL)
 Constructor. More...
 
virtual ~IndirectObject ()
 Destructor. More...
 
ostream & WriteObjectToFile (ostream &stream)
 Write an object indirectly. More...
 
ostream & WriteIndirectReference (ostream &stream) const
 Write an object indirectly. More...
 
unsigned long int ObjectNumber () const
 Return this object's object number. More...
 
unsigned short int GenerationNumber () const
 Return this object's generation number. More...
 
streampos FileOffset () const
 Return this object's file offset. More...
 
bool HasOffset () const
 Does the object have a file offset? More...
 

Protected Member Functions

virtual ostream & WriteDictionaryElements (ostream &stream) const
 Write an object directly. More...
 

Private Member Functions

void GetKidLimits (int &lower, int &upper) const
 Get limits of the kids vector. More...
 

Private Attributes

bool isRoot
 Root flag. More...
 
PageLabelTreeKidVector kids
 Kid nodes. More...
 
PageLabelDictionaryNumMap nums
 Num nodes. More...
 

Detailed Description

A tree of page label dictionaries.

Author
Robert Heller <heller@deepsoft.com>

Constructor & Destructor Documentation

◆ PageLabelTree()

FCFSupport::PDFFileStructures::PageLabelTree::PageLabelTree ( unsigned long int  objNum = 0L,
unsigned short int  genNum = 0,
CrossReferenceTable tab = NULL 
)
inline

Constructor.

Create a new page label tree.

Parameters
objNumThe next object number.
genNumThe generation number.
tabThe cross reference table we are in.

References isRoot.

◆ ~PageLabelTree()

FCFSupport::PDFFileStructures::PageLabelTree::~PageLabelTree ( )
inline

Destructor.

Member Function Documentation

◆ AddPageLabelDictionary()

void FCFSupport::PDFFileStructures::PageLabelTree::AddPageLabelDictionary ( int  number,
PageLabelDictionary pld 
)
inline

Add a page label dictionary.

Parameters
numberThe page label dictionary start page number.
pldPage label dictionary pointer.

References nums.

Referenced by FCFSupport::PDFFileStructures::CatalogDictionary::AddPageLabelDictionary().

◆ AddPageLabelTree()

void FCFSupport::PDFFileStructures::PageLabelTree::AddPageLabelTree ( PageLabelTree node)
inline

Add a page label tree node.

Parameters
nodeThe page label tree node.

References isRoot, and kids.

Referenced by FCFSupport::PDFFileStructures::CatalogDictionary::AddPageLabelTree().

◆ GetKidLimits()

void FCFSupport::PDFFileStructures::PageLabelTree::GetKidLimits ( int &  lower,
int &  upper 
) const
private

Get limits of the kids vector.

Parameters
lowerLower end.
upperUpper end.

◆ Size()

int FCFSupport::PDFFileStructures::PageLabelTree::Size ( ) const
inline

Return the number of sub-nodes in this page label tree.

References kids, and nums.

◆ WriteDictionaryElements()

virtual ostream& FCFSupport::PDFFileStructures::PageLabelTree::WriteDictionaryElements ( ostream &  stream) const
protectedvirtual

Write an object directly.

Parameters
streamThe output stream to write to.

Reimplemented from FCFSupport::PDFFileStructures::Dictionary.

Member Data Documentation

◆ isRoot

bool FCFSupport::PDFFileStructures::PageLabelTree::isRoot
private

Root flag.

Referenced by AddPageLabelTree(), and PageLabelTree().

◆ kids

PageLabelTreeKidVector FCFSupport::PDFFileStructures::PageLabelTree::kids
private

Kid nodes.

Referenced by AddPageLabelTree(), and Size().

◆ nums

PageLabelDictionaryNumMap FCFSupport::PDFFileStructures::PageLabelTree::nums
private

Num nodes.

Referenced by AddPageLabelDictionary(), and Size().