OpenCPN Partial API docs
Loading...
Searching...
No Matches
filters_on_disk.h
Go to the documentation of this file.
1
10#include <string>
11#include <vector>
12
13#include "model/navmsg_filter.h"
14
15namespace filters_on_disk {
16
18std::vector<std::string> List(bool include_system = false);
19
24bool Exists(const std::string& name);
25
27bool Remove(const std::string& name);
28
30bool Write(const NavmsgFilter& filter, const std::string& name);
31
33NavmsgFilter Read(const std::string& name);
34
36bool IsSystemFilter(std::string& name);
37
38} // namespace filters_on_disk
bool IsSystemFilter(std::string &name)
Return true iff name refers to a read-only system filter.
std::vector< std::string > List(bool include_system)
Return list of filters, possibly including also the system ones.
NavmsgFilter Read(const std::string &name)
Read filter with given name from disk.
bool Remove(const std::string &name)
Remove a filter, return ok if no errors.
bool Write(const NavmsgFilter &filter, const std::string &name)
Write contents for given filter to disk.
bool Exists(const std::string &name)
Return true iff filter with given name exists, either system or user defined.
Data monitor filter definitions.