Logo Search packages:      
Sourcecode: libpodofo version File versions  Download package

PdfObject * PoDoFo::PdfNamesTree::GetValue ( const PdfName tree,
const PdfString key 
) const

Get the object referenced by a string key in one of the dictionaries of the name tree.

treename of the tree to search for the key.
keythe key to search for
the value of the key or NULL if the key was not found. if the value is a reference, the object referenced by this reference is returned.

Definition at line 344 of file PdfNamesTree.cpp.

References GetKeyValue(), PoDoFo::PdfVecObjects::GetObject(), PoDoFo::PdfElement::GetObject(), PoDoFo::PdfObject::GetOwner(), PoDoFo::PdfVariant::GetReference(), GetRootNode(), and PoDoFo::PdfVariant::IsReference().

Referenced by HasValue(), and PoDoFo::PdfDestination::PdfDestination().

    PdfObject* pObject = this->GetRootNode( tree );
    PdfObject* pResult = NULL;

    if( pObject )
        pResult = this->GetKeyValue( pObject, key );
        if( pResult && pResult->IsReference() )
            pResult = this->GetObject()->GetOwner()->GetObject( pResult->GetReference() );

    return pResult;

Here is the call graph for this function:

Here is the caller graph for this function:

Generated by  Doxygen 1.6.0   Back to index