12#ifndef TEXTSOURCECACHE_HPP
13#define TEXTSOURCECACHE_HPP
43 typedef std::map<std::string, TextSource*, wizard::UtilFileStringCompare>
SourceMap;
67 UtTextDocument*
FindSource(
const UtPath& aPath,
bool aReadAccess)
override;
68 UtTextDocument*
CreateSource(
const UtPath& aPath)
override;
#define VI_EXPORT
Definition ViExport.hpp:38
Definition WsfParseNode.hpp:61
Interface providing source files to the WsfParser.
Definition WsfParseSourceProvider.hpp:24
UtTextDocument * CreateSource(const UtPath &aPath) override
Definition TextSourceCache.cpp:141
UtTextDocument * FindSource(const UtPath &aPath, bool aReadAccess) override
Definition TextSourceCache.cpp:108
bool mAllowNewSources
Definition TextSourceCache.hpp:65
CacheSourceProvider(TextSourceCache *aCachePtr)
Definition TextSourceCache.hpp:59
TextSourceCache * mCachePtr
Definition TextSourceCache.hpp:66
Definition ProjectWorkspace.hpp:48
Definition TextSourceCache.hpp:35
TextSource * GetSource(const UtPath &aPath, bool aRead=true)
Definition TextSourceCache.cpp:31
TextSource * FindSource(const UtPath &aPath, bool aRead=true)
Definition TextSourceCache.cpp:79
wizard::ProjectWorkspace * mWorkspacePtr
Definition TextSourceCache.hpp:51
SourceMap mSources
Definition TextSourceCache.hpp:52
std::set< TextSource * > mNewSources
Definition TextSourceCache.hpp:48
const SourceMap & GetSources() const
Definition TextSourceCache.hpp:44
std::map< std::string, TextSource *, wizard::UtilFileStringCompare > SourceMap
Definition TextSourceCache.hpp:43
TextSourceCache(wizard::ProjectWorkspace *aWorkspacePtr)
Definition TextSourceCache.cpp:21
Definition TextSource.hpp:48