PulseView  unreleased development snapshot
A Qt-based sigrok GUI
pv::data::decode::Decoder Class Reference

#include <decoder.hpp>

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

Signals

void annotation_visibility_changed ()
 

Public Member Functions

 Decoder (const srd_decoder *const dec, uint8_t stack_level)
 
virtual ~Decoder ()
 
const srd_decoder * get_srd_decoder () const
 
uint8_t get_stack_level () const
 
const char * name () const
 
bool visible () const
 
void set_visible (bool visible)
 
const vector< DecodeChannel * > & channels () const
 
void set_channels (vector< DecodeChannel * > channels)
 
const map< string, GVariant * > & options () const
 
void set_option (const char *id, GVariant *value)
 
void apply_all_options ()
 
bool have_required_channels () const
 
srd_decoder_inst * create_decoder_inst (srd_session *session)
 
void invalidate_decoder_inst ()
 
vector< Row * > get_rows ()
 
Rowget_row_by_id (size_t id)
 
vector< const AnnotationClass * > ann_classes () const
 
vector< AnnotationClass * > ann_classes ()
 
AnnotationClassget_ann_class_by_id (size_t id)
 
const AnnotationClassget_ann_class_by_id (size_t id) const
 
uint32_t get_binary_class_count () const
 
const DecodeBinaryClassInfoget_binary_class (uint32_t id) const
 
bool has_logic_output () const
 
const vector< DecoderLogicOutputChannellogic_output_channels () const
 

Private Slots

void on_row_visibility_changed ()
 
void on_class_visibility_changed ()
 

Private Attributes

const srd_decoder *const srd_decoder_
 
uint8_t stack_level_
 
bool visible_
 
vector< DecodeChannel * > channels_
 
deque< Rowrows_
 
deque< AnnotationClassann_classes_
 
vector< DecodeBinaryClassInfobin_classes_
 
map< string, GVariant * > options_
 
srd_decoder_inst * decoder_inst_
 

Detailed Description

Definition at line 106 of file decoder.hpp.

Constructor & Destructor Documentation

pv::data::decode::Decoder::Decoder ( const srd_decoder *const  dec,
uint8_t  stack_level 
)

Definition at line 61 of file decoder.cpp.

Here is the call graph for this function:

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

Definition at line 116 of file decoder.cpp.

Here is the call graph for this function:

Member Function Documentation

vector< const AnnotationClass * > pv::data::decode::Decoder::ann_classes ( ) const

Definition at line 274 of file decoder.cpp.

Here is the caller graph for this function:

vector< AnnotationClass * > pv::data::decode::Decoder::ann_classes ( )

Definition at line 284 of file decoder.cpp.

void pv::data::decode::Decoder::annotation_visibility_changed ( )
signal

Definition at line 243 of file moc_decoder.cpp.

Here is the caller graph for this function:

void pv::data::decode::Decoder::apply_all_options ( )

Definition at line 174 of file decoder.cpp.

Here is the call graph for this function:

Here is the caller graph for this function:

const vector< DecodeChannel * > & pv::data::decode::Decoder::channels ( ) const

Definition at line 149 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)

Definition at line 201 of file decoder.cpp.

Here is the call graph for this function:

AnnotationClass * pv::data::decode::Decoder::get_ann_class_by_id ( size_t  id)

Definition at line 294 of file decoder.cpp.

Here is the caller graph for this function:

const AnnotationClass * pv::data::decode::Decoder::get_ann_class_by_id ( size_t  id) const

Definition at line 302 of file decoder.cpp.

const DecodeBinaryClassInfo * pv::data::decode::Decoder::get_binary_class ( uint32_t  id) const

Definition at line 315 of file decoder.cpp.

Here is the caller graph for this function:

uint32_t pv::data::decode::Decoder::get_binary_class_count ( ) const

Definition at line 310 of file decoder.cpp.

Here is the caller graph for this function:

Row * pv::data::decode::Decoder::get_row_by_id ( size_t  id)

Definition at line 266 of file decoder.cpp.

Here is the caller graph for this function:

vector< Row * > pv::data::decode::Decoder::get_rows ( )

Definition at line 256 of file decoder.cpp.

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

Definition at line 122 of file decoder.cpp.

Here is the caller graph for this function:

uint8_t pv::data::decode::Decoder::get_stack_level ( ) const

Definition at line 127 of file decoder.cpp.

Here is the caller graph for this function:

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

Definition at line 330 of file decoder.cpp.

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

Definition at line 192 of file decoder.cpp.

void pv::data::decode::Decoder::invalidate_decoder_inst ( )

Definition at line 251 of file decoder.cpp.

const vector< DecoderLogicOutputChannel > pv::data::decode::Decoder::logic_output_channels ( ) const

Definition at line 335 of file decoder.cpp.

const char * pv::data::decode::Decoder::name ( ) const

Definition at line 132 of file decoder.cpp.

Here is the caller graph for this function:

void pv::data::decode::Decoder::on_class_visibility_changed ( )
privateslot

Definition at line 325 of file decoder.cpp.

Here is the caller graph for this function:

void pv::data::decode::Decoder::on_row_visibility_changed ( )
privateslot

Definition at line 320 of file decoder.cpp.

Here is the caller graph for this function:

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

Definition at line 159 of file decoder.cpp.

void pv::data::decode::Decoder::set_channels ( vector< DecodeChannel * >  channels)

Definition at line 154 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 164 of file decoder.cpp.

Here is the call graph for this function:

void pv::data::decode::Decoder::set_visible ( bool  visible)

Definition at line 142 of file decoder.cpp.

Here is the call graph for this function:

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

Definition at line 137 of file decoder.cpp.

Here is the caller graph for this function:

Member Data Documentation

deque<AnnotationClass> pv::data::decode::Decoder::ann_classes_
private

Definition at line 166 of file decoder.hpp.

vector<DecodeBinaryClassInfo> pv::data::decode::Decoder::bin_classes_
private

Definition at line 167 of file decoder.hpp.

vector<DecodeChannel*> pv::data::decode::Decoder::channels_
private

Definition at line 164 of file decoder.hpp.

srd_decoder_inst* pv::data::decode::Decoder::decoder_inst_
private

Definition at line 169 of file decoder.hpp.

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

Definition at line 168 of file decoder.hpp.

deque<Row> pv::data::decode::Decoder::rows_
private

Definition at line 165 of file decoder.hpp.

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

Definition at line 159 of file decoder.hpp.

uint8_t pv::data::decode::Decoder::stack_level_
private

Definition at line 160 of file decoder.hpp.

bool pv::data::decode::Decoder::visible_
private

Definition at line 162 of file decoder.hpp.


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