PulseView  0.3.0
A Qt-based sigrok GUI
pv::data::decode::Decoder Class Reference

#include <decoder.hpp>

Collaboration diagram for pv::data::decode::Decoder:

Public Member Functions

 Decoder (const srd_decoder *const decoder)
 
virtual ~Decoder ()
 
const srd_decoder * decoder () const
 
bool shown () const
 
void show (bool show=true)
 
const std::map< const srd_channel *, std::shared_ptr< view::LogicSignal > > & channels () const
 
void set_channels (std::map< const srd_channel *, std::shared_ptr< view::LogicSignal > > channels)
 
const std::map< std::string, GVariant * > & options () const
 
void set_option (const char *id, GVariant *value)
 
bool have_required_channels () const
 
srd_decoder_inst * create_decoder_inst (srd_session *session) const
 
std::set< std::shared_ptr< pv::data::Logic > > get_data ()
 

Private Attributes

const srd_decoder *const decoder_
 
bool shown_
 
std::map< const srd_channel *, std::shared_ptr< pv::view::LogicSignal > > channels_
 
std::map< std::string, GVariant * > options_
 

Detailed Description

Definition at line 47 of file decoder.hpp.

Constructor & Destructor Documentation

pv::data::decode::Decoder::Decoder ( const srd_decoder *const  decoder)

Definition at line 39 of file decoder.cpp.

pv::data::decode::Decoder::~Decoder ( )
virtual

Definition at line 45 of file decoder.cpp.

Member Function Documentation

const map< const srd_channel *, shared_ptr< view::LogicSignal > > & pv::data::decode::Decoder::channels ( ) const

Definition at line 67 of file decoder.cpp.

Here is the caller graph for this function:

srd_decoder_inst * pv::data::decode::Decoder::create_decoder_inst ( srd_session *  session) const

Definition at line 114 of file decoder.cpp.

Here is the call graph for this function:

const srd_decoder * pv::data::decode::Decoder::decoder ( ) const

Definition at line 51 of file decoder.cpp.

set< shared_ptr< pv::data::Logic > > pv::data::decode::Decoder::get_data ( )

Definition at line 102 of file decoder.cpp.

bool pv::data::decode::Decoder::have_required_channels ( ) const

Definition at line 90 of file decoder.cpp.

const std::map< std::string, GVariant * > & pv::data::decode::Decoder::options ( ) const

Definition at line 78 of file decoder.cpp.

void pv::data::decode::Decoder::set_channels ( std::map< const srd_channel *, std::shared_ptr< view::LogicSignal > >  channels)

Definition at line 72 of file decoder.cpp.

Here is the call graph for this function:

void pv::data::decode::Decoder::set_option ( const char *  id,
GVariant *  value 
)

Definition at line 83 of file decoder.cpp.

void pv::data::decode::Decoder::show ( bool  show = true)

Definition at line 61 of file decoder.cpp.

bool pv::data::decode::Decoder::shown ( ) const

Definition at line 56 of file decoder.cpp.

Member Data Documentation

std::map<const srd_channel*, std::shared_ptr<pv::view::LogicSignal> > pv::data::decode::Decoder::channels_
private

Definition at line 81 of file decoder.hpp.

const srd_decoder* const pv::data::decode::Decoder::decoder_
private

Definition at line 76 of file decoder.hpp.

std::map<std::string, GVariant*> pv::data::decode::Decoder::options_
private

Definition at line 82 of file decoder.hpp.

bool pv::data::decode::Decoder::shown_
private

Definition at line 78 of file decoder.hpp.


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