22#ifndef _SCH_LIB_PLUGIN_CACHE_H_
23#define _SCH_LIB_PLUGIN_CACHE_H_
28#include <wx/filename.h>
63 virtual void Save(
const std::optional<bool>& aOpt = std::nullopt );
78 bool IsFile(
const wxString& aFullPathAndFileName )
const;
Define a library symbol object.
A base cache assistant implementation for the symbol library portion of the SCH_PLUGIN API.
bool IsFile(const wxString &aFullPathAndFileName) const
virtual ~SCH_LIB_PLUGIN_CACHE()
virtual void DeleteSymbol(const wxString &aName)=0
wxString GetFileName() const
std::mutex m_modHashMutex
LIB_SYMBOL * removeSymbol(LIB_SYMBOL *aAlias)
wxString GetLogicalName() const
virtual LIB_SYMBOL * GetSymbol(const wxString &aName)
bool IsFileChanged() const
wxFileName GetRealFile() const
const LIB_SYMBOL_MAP & GetSymbolMap() const
void SetFileName(const wxString &aFileName)
void IncrementModifyHash()
wxDateTime GetLibModificationTime()
virtual void AddSymbol(const LIB_SYMBOL *aSymbol)
void SetModified(bool aModified=true)
virtual void Save(const std::optional< bool > &aOpt=std::nullopt)
Save the entire library to file m_libFileName;.
std::map< wxString, LIB_SYMBOL *, LibSymbolMapSort > LIB_SYMBOL_MAP