libsigrokcxx
0.4.0
C++ bindings for libsigrok
|
An output format supported by the library. More...
#include <libsigrokcxx/libsigrokcxx.hpp>
Inherits sigrok::ParentOwned< Class, Parent >.
Public Member Functions | |
string | name () const |
Name of this output format. More... | |
string | description () const |
Description of this output format. More... | |
vector< string > | extensions () const |
A list of preferred file name extensions for this file format. More... | |
map< string, shared_ptr< Option > > | options () |
Options supported by this output format. More... | |
shared_ptr< Output > | create_output (shared_ptr< Device > device, map< string, Glib::VariantBase > options=map< string, Glib::VariantBase >()) |
Create an output using this format. More... | |
shared_ptr< Output > | create_output (string filename, shared_ptr< Device > device, map< string, Glib::VariantBase > options=map< string, Glib::VariantBase >()) |
Create an output using this format. More... | |
bool | test_flag (const OutputFlag *flag) const |
Checks whether a given flag is set. More... | |
An output format supported by the library.
Definition at line 884 of file libsigrokcxx.hpp.
string sigrok::OutputFormat::name | ( | ) | const |
Name of this output format.
string sigrok::OutputFormat::description | ( | ) | const |
Description of this output format.
vector<string> sigrok::OutputFormat::extensions | ( | ) | const |
A list of preferred file name extensions for this file format.
map<string, shared_ptr<Option> > sigrok::OutputFormat::options | ( | ) |
Options supported by this output format.
shared_ptr<Output> sigrok::OutputFormat::create_output | ( | shared_ptr< Device > | device, |
map< string, Glib::VariantBase > | options = map< string, Glib::VariantBase >() |
||
) |
Create an output using this format.
device | Device to output for. |
options | Mapping of (option name, value) pairs. |
shared_ptr<Output> sigrok::OutputFormat::create_output | ( | string | filename, |
shared_ptr< Device > | device, | ||
map< string, Glib::VariantBase > | options = map< string, Glib::VariantBase >() |
||
) |
Create an output using this format.
filename | Name of destination file. |
device | Device to output for. |
options | Mapping of (option name, value) pairs. |
bool sigrok::OutputFormat::test_flag | ( | const OutputFlag * | flag | ) | const |
Checks whether a given flag is set.
flag | Flag to check |