22#ifndef _SCH_IO_LIB_CACHE_H_
23#define _SCH_IO_LIB_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_IO API.
bool IsFile(const wxString &aFullPathAndFileName) const
virtual LIB_SYMBOL * GetSymbol(const wxString &aName)
void SetFileName(const wxString &aFileName)
wxDateTime GetLibModificationTime()
virtual void AddSymbol(const LIB_SYMBOL *aSymbol)
virtual void DeleteSymbol(const wxString &aName)=0
wxFileName GetRealFile() const
bool IsFileChanged() const
std::mutex m_modHashMutex
virtual void Save(const std::optional< bool > &aOpt=std::nullopt)
Save the entire library to file m_libFileName;.
wxString GetFileName() const
const LIB_SYMBOL_MAP & GetSymbolMap() const
virtual ~SCH_IO_LIB_CACHE()
void IncrementModifyHash()
void SetModified(bool aModified=true)
LIB_SYMBOL * removeSymbol(LIB_SYMBOL *aAlias)
wxString GetLogicalName() const
std::map< wxString, LIB_SYMBOL *, LibSymbolMapSort > LIB_SYMBOL_MAP