libsigrokcxx  0.4.0
C++ bindings for libsigrok
Public Member Functions | List of all members
sigrok::OutputFormat Class Reference

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< Outputcreate_output (shared_ptr< Device > device, map< string, Glib::VariantBase > options=map< string, Glib::VariantBase >())
 Create an output using this format. More...
 
shared_ptr< Outputcreate_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...
 

Detailed Description

An output format supported by the library.

Definition at line 884 of file libsigrokcxx.hpp.

Member Function Documentation

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.

Note
This list is a recommendation only.
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.

Parameters
deviceDevice to output for.
optionsMapping 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.

Parameters
filenameName of destination file.
deviceDevice to output for.
optionsMapping of (option name, value) pairs.
bool sigrok::OutputFormat::test_flag ( const OutputFlag flag) const

Checks whether a given flag is set.

Parameters
flagFlag to check
Returns
true if flag is set for this module
See also
sr_output_flags

The documentation for this class was generated from the following file: