KiCad PCB EDA Suite
|
Implementations of LIB_TABLE_IO for file-based I/O. More...
#include <lib_table_base.h>
Public Member Functions | |
FILE_LIB_TABLE_IO ()=default | |
std::unique_ptr< LINE_READER > | GetReader (const wxString &aURI) const override |
Create a reader for the given URI. | |
bool | CanSaveToUri (const wxString &aURI) const override |
Check if the given URI is writable. | |
bool | UrisAreEquivalent (const wxString &aURI1, const wxString &aURI2) const override |
Compare two URIs for equivalence. | |
std::unique_ptr< OUTPUTFORMATTER > | GetWriter (const wxString &aURI) const override |
Save the given table to the given URI. | |
Implementations of LIB_TABLE_IO for file-based I/O.
This is the default implementation for real usage.
Definition at line 105 of file lib_table_base.h.
|
default |
|
overridevirtual |
Check if the given URI is writable.
Implements LIB_TABLE_IO.
Definition at line 53 of file lib_table_base.cpp.
|
overridevirtual |
Create a reader for the given URI.
This can return nullptr, for example if the URI is not a file or is not readable.
Implements LIB_TABLE_IO.
Definition at line 43 of file lib_table_base.cpp.
|
overridevirtual |
Save the given table to the given URI.
Implements LIB_TABLE_IO.
Definition at line 85 of file lib_table_base.cpp.
|
overridevirtual |
Compare two URIs for equivalence.
For example, two URIs that point to the same file should be considered equivalent, even if they are not string-wise equal (e.g. symlinks)
Implements LIB_TABLE_IO.
Definition at line 63 of file lib_table_base.cpp.