OpenCPN Partial API docs
|
Filter storage routines. More...
Go to the source code of this file.
Functions | |
std::vector< std::string > | filters_on_disk::List (bool include_system=false) |
Return list of filters, possibly including also the system ones. | |
bool | filters_on_disk::Exists (const std::string &name) |
Return true iff filter with given name exists, either system or user defined. | |
bool | filters_on_disk::Remove (const std::string &name) |
Remove a filter, return ok if no errors. | |
bool | filters_on_disk::Write (const NavmsgFilter &filter, const std::string &name) |
Write contents for given filter to disk. | |
NavmsgFilter | filters_on_disk::Read (const std::string &name) |
Read filter with given name from disk. | |
bool | filters_on_disk::IsSystemFilter (std::string &name) |
Return true iff name refers to a read-only system filter. | |
Filter storage routines.
Handles both user defined filters and the readonly system ones shipped with application.
All methods uses plain names as arguments and return values, actual filenames and paths are hidden by the interface.
Definition in file filters_on_disk.h.
bool filters_on_disk::Exists | ( | const std::string & | name | ) |
Return true iff filter with given name exists, either system or user defined.
Definition at line 62 of file filters_on_disk.cpp.
bool filters_on_disk::IsSystemFilter | ( | std::string & | name | ) |
Return true iff name refers to a read-only system filter.
Definition at line 96 of file filters_on_disk.cpp.
std::vector< std::string > filters_on_disk::List | ( | bool | include_system | ) |
Return list of filters, possibly including also the system ones.
Definition at line 50 of file filters_on_disk.cpp.
NavmsgFilter filters_on_disk::Read | ( | const std::string & | name | ) |
Read filter with given name from disk.
Definition at line 85 of file filters_on_disk.cpp.
bool filters_on_disk::Remove | ( | const std::string & | name | ) |
Remove a filter, return ok if no errors.
Definition at line 68 of file filters_on_disk.cpp.
bool filters_on_disk::Write | ( | const NavmsgFilter & | filter, |
const std::string & | name | ||
) |
Write contents for given filter to disk.
Definition at line 75 of file filters_on_disk.cpp.