|
WSF
|
#include <TextSourceCache.hpp>

Public Types | |
| typedef std::map< std::string, TextSource *, wizard::UtilFileStringCompare > | SourceMap |
Public Member Functions | |
| TextSourceCache (wizard::ProjectWorkspace *aWorkspacePtr) | |
| ~TextSourceCache () | |
| TextSource * | GetSource (const UtPath &aPath, bool aRead=true) |
| TextSource * | FindSource (const UtPath &aPath, bool aRead=true) |
| TextSource * | FindSource (const std::string &aPath, bool aRead=true) |
| TextSource * | FindSource (UtTextDocument *aParseSourcePtr) |
| const SourceMap & | GetSources () const |
| void | DeleteSource (TextSource *aSourcePtr) |
| void | Clear () |
Public Attributes | |
| std::set< TextSource * > | mNewSources |
Protected Attributes | |
| wizard::ProjectWorkspace * | mWorkspacePtr |
| SourceMap | mSources |
The source cache provides in-memory access to all files referenced in the project. This improves speed, and allows us to react to changes without saving to the file.
| typedef std::map<std::string, TextSource*, wizard::UtilFileStringCompare> wizard::TextSourceCache::SourceMap |
|
explicit |
References mWorkspacePtr.
| wizard::TextSourceCache::~TextSourceCache | ( | ) |
References Clear().
| void wizard::TextSourceCache::Clear | ( | ) |
References GetSources(), mNewSources, and mSources.
Referenced by ~TextSourceCache().
| void wizard::TextSourceCache::DeleteSource | ( | TextSource * | aSourcePtr | ) |
References wizard::TextSource::GetSystemPath(), mNewSources, and mSources.
| wizard::TextSource * wizard::TextSourceCache::FindSource | ( | const std::string & | aPath, |
| bool | aRead = true ) |
References wizard::TextSource::IsLoaded(), wizard::TextSource::Load(), and mSources.
| wizard::TextSource * wizard::TextSourceCache::FindSource | ( | const UtPath & | aPath, |
| bool | aRead = true ) |
References FindSource().
Referenced by FindSource(), GetSource(), and wizard::RenameFileDialog::OkClick().
| wizard::TextSource * wizard::TextSourceCache::FindSource | ( | UtTextDocument * | aParseSourcePtr | ) |
| wizard::TextSource * wizard::TextSourceCache::GetSource | ( | const UtPath & | aPath, |
| bool | aRead = true ) |
|
inline |
| std::set<TextSource*> wizard::TextSourceCache::mNewSources |
Referenced by Clear(), DeleteSource(), and GetSource().
|
protected |
Referenced by Clear(), DeleteSource(), FindSource(), GetSource(), and GetSources().
|
protected |
Referenced by GetSource(), and TextSourceCache().