WSF
wizard::CacheSourceProvider Class Reference

Provides sources to the WsfParser from the TextSourceCache instead of the files directly. More...

#include <TextSourceCache.hpp>

Inheritance diagram for wizard::CacheSourceProvider:
Collaboration diagram for wizard::CacheSourceProvider:

Public Member Functions

 CacheSourceProvider (TextSourceCache *aCachePtr)
UtTextDocument * FindSource (const UtPath &aPath, bool aReadAccess) override
UtTextDocument * CreateSource (const UtPath &aPath) override
Public Member Functions inherited from WsfParseSourceProvider
virtual ~WsfParseSourceProvider ()

Public Attributes

bool mAllowNewSources
TextSourceCachemCachePtr

Detailed Description

Provides sources to the WsfParser from the TextSourceCache instead of the files directly.

Constructor & Destructor Documentation

◆ CacheSourceProvider()

wizard::CacheSourceProvider::CacheSourceProvider ( TextSourceCache * aCachePtr)
inlineexplicit

References mAllowNewSources, and mCachePtr.

Member Function Documentation

◆ CreateSource()

UtTextDocument * wizard::CacheSourceProvider::CreateSource ( const UtPath & aPath)
overridevirtual

Reimplemented from WsfParseSourceProvider.

References mCachePtr.

◆ FindSource()

UtTextDocument * wizard::CacheSourceProvider::FindSource ( const UtPath & aPath,
bool aReadAccess )
overridevirtual

Derived classes should override this method to return a source if it exists at aPath

Implements WsfParseSourceProvider.

References wizard::TextSource::GetSource(), wizard::TextSource::IsDeleted(), mAllowNewSources, mCachePtr, and wizard::TextSource::ReadSource().

Member Data Documentation

◆ mAllowNewSources

bool wizard::CacheSourceProvider::mAllowNewSources

Referenced by CacheSourceProvider(), and FindSource().

◆ mCachePtr

TextSourceCache* wizard::CacheSourceProvider::mCachePtr

The documentation for this class was generated from the following files:
Copyrights Multiple, All Rights Reserved