Classes | Public Member Functions | Protected Member Functions | Protected Attributes | Private Slots | List of all members
ParserFactoryProtobuf Class Reference

#include <protobuf_factory.h>

Inheritance diagram for ParserFactoryProtobuf:
Inheritance graph
[legend]

Classes

struct  FileInfo
 

Public Member Functions

MessageParserPtr createParser (const std::string &topic_name, const std::string &type_name, const std::string &schema, PlotDataMapRef &data) override
 
const char * encoding () const override
 
const char * name () const override
 Name of the plugin type, NOT the particular instance. More...
 
QWidget * optionsWidget () override
 optionsWidget pointer to a persistent widget used to set the plugin options . More...
 
 ParserFactoryProtobuf ()
 
 ~ParserFactoryProtobuf () override
 
- Public Member Functions inherited from PJ::PlotJugglerPlugin
virtual const std::vector< QAction * > & availableActions ()
 
virtual bool isDebugPlugin ()
 
 PlotJugglerPlugin ()=default
 
virtual bool xmlLoadState (const QDomElement &parent_element)
 Override this method to load the status of the plugin from XML. More...
 
virtual bool xmlSaveState (QDomDocument &doc, QDomElement &parent_element) const
 Override this method to save the status of the plugin to XML. More...
 
QDomElement xmlSaveState (QDomDocument &doc) const
 

Protected Member Functions

void importFile (QString filename)
 
void loadSettings ()
 
void saveSettings ()
 
bool updateUI ()
 

Protected Attributes

std::unique_ptr< google::protobuf::compiler::Importer > _importer
 
FileInfo _loaded_file
 
google::protobuf::compiler::DiskSourceTree _source_tree
 
QWidget * _widget
 
Ui::ProtobufLoader * ui
 

Private Slots

void onComboChanged (const QString &text)
 
void onIncludeDirectory ()
 
void onLoadFile ()
 
void onRemoveInclude ()
 

Additional Inherited Members

- Public Types inherited from PJ::ParserFactoryPlugin
using Ptr = std::shared_ptr< ParserFactoryPlugin >
 

Detailed Description

Definition at line 9 of file protobuf_factory.h.

Constructor & Destructor Documentation

◆ ParserFactoryProtobuf()

ParserFactoryProtobuf::ParserFactoryProtobuf ( )

Definition at line 12 of file protobuf_factory.cpp.

◆ ~ParserFactoryProtobuf()

ParserFactoryProtobuf::~ParserFactoryProtobuf ( )
override

Definition at line 132 of file protobuf_factory.cpp.

Member Function Documentation

◆ createParser()

MessageParserPtr ParserFactoryProtobuf::createParser ( const std::string &  topic_name,
const std::string &  type_name,
const std::string &  schema,
PlotDataMapRef data 
)
overridevirtual

Implements PJ::ParserFactoryPlugin.

Definition at line 137 of file protobuf_factory.cpp.

◆ encoding()

const char* ParserFactoryProtobuf::encoding ( ) const
inlineoverridevirtual

Implements PJ::ParserFactoryPlugin.

Definition at line 24 of file protobuf_factory.h.

◆ importFile()

void ParserFactoryProtobuf::importFile ( QString  filename)
protected

Definition at line 43 of file protobuf_factory.cpp.

◆ loadSettings()

void ParserFactoryProtobuf::loadSettings ( )
protected

Definition at line 95 of file protobuf_factory.cpp.

◆ name()

const char* ParserFactoryProtobuf::name ( ) const
inlineoverridevirtual

Name of the plugin type, NOT the particular instance.

Implements PJ::PlotJugglerPlugin.

Definition at line 20 of file protobuf_factory.h.

◆ onComboChanged

void ParserFactoryProtobuf::onComboChanged ( const QString &  text)
privateslot

Definition at line 223 of file protobuf_factory.cpp.

◆ onIncludeDirectory

void ParserFactoryProtobuf::onIncludeDirectory ( )
privateslot

Definition at line 167 of file protobuf_factory.cpp.

◆ onLoadFile

void ParserFactoryProtobuf::onLoadFile ( )
privateslot

Definition at line 186 of file protobuf_factory.cpp.

◆ onRemoveInclude

void ParserFactoryProtobuf::onRemoveInclude ( )
privateslot

Definition at line 208 of file protobuf_factory.cpp.

◆ optionsWidget()

QWidget* ParserFactoryProtobuf::optionsWidget ( )
inlineoverridevirtual

optionsWidget pointer to a persistent widget used to set the plugin options .

Reimplemented from PJ::PlotJugglerPlugin.

Definition at line 34 of file protobuf_factory.h.

◆ saveSettings()

void ParserFactoryProtobuf::saveSettings ( )
protected

Definition at line 120 of file protobuf_factory.cpp.

◆ updateUI()

bool ParserFactoryProtobuf::updateUI ( )
protected

Member Data Documentation

◆ _importer

std::unique_ptr<google::protobuf::compiler::Importer> ParserFactoryProtobuf::_importer
protected

Definition at line 45 of file protobuf_factory.h.

◆ _loaded_file

FileInfo ParserFactoryProtobuf::_loaded_file
protected

Definition at line 54 of file protobuf_factory.h.

◆ _source_tree

google::protobuf::compiler::DiskSourceTree ParserFactoryProtobuf::_source_tree
protected

Definition at line 44 of file protobuf_factory.h.

◆ _widget

QWidget* ParserFactoryProtobuf::_widget
protected

Definition at line 42 of file protobuf_factory.h.

◆ ui

Ui::ProtobufLoader* ParserFactoryProtobuf::ui
protected

Definition at line 41 of file protobuf_factory.h.


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


plotjuggler
Author(s): Davide Faconti
autogenerated on Mon Jun 19 2023 03:12:54