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

PdfStream * PoDoFo::PdfObject::GetStream_NoDL (  ) [protected, inherited]

Same as GetStream() but won't trigger a delayed load, so it's safe for use while a delayed load is in progress.

This will set the dirty flag of this object.

See also:
IsDirty

Definition at line 243 of file PdfObject.cpp.

References PoDoFo::PdfVecObjects::CreateStream(), PoDoFo::ePdfDataType_Dictionary, PoDoFo::ePdfError_InvalidDataType, PoDoFo::ePdfError_InvalidHandle, PoDoFo::PdfVariant::GetDataType(), PoDoFo::PdfReference::IsIndirect(), PODOFO_RAISE_ERROR_INFO, and PoDoFo::PdfVariant::SetDirty().

Referenced by PoDoFo::PdfObject::GetStream(), and PoDoFo::PdfParserObject::ParseStream().

{
    if( !m_pStream )
    {
        if ( GetDataType() != ePdfDataType_Dictionary )
        {
            PODOFO_RAISE_ERROR_INFO( ePdfError_InvalidDataType, "Tried to get stream of non-dictionary object");
          }
        if ( !m_reference.IsIndirect() )
            {
            PODOFO_RAISE_ERROR_INFO( ePdfError_InvalidDataType, "Tried to get stream of non-indirect PdfObject");
            }
        if( !m_pOwner ) 
        {
            PODOFO_RAISE_ERROR_INFO( ePdfError_InvalidHandle, "Tried to create stream on PdfObject lacking owning document/PdfVecObjects" );
        }

        m_pStream = m_pOwner->CreateStream( this );
    }

    SetDirty( true );
    return m_pStream;
}

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