Public Member Functions | Private Slots | Private Attributes | List of all members
UDP_Server Class Reference

#include <udp_server.h>

Inheritance diagram for UDP_Server:
Inheritance graph
[legend]

Public Member Functions

virtual bool isDebugPlugin () override
 
virtual bool isRunning () const override
 isRunning More...
 
virtual const char * name () const override
 Name of the plugin type, NOT the particular instance. More...
 
virtual void shutdown () override
 shutdown Stop streaming More...
 
virtual bool start (QStringList *) override
 start streaming. More...
 
 UDP_Server ()
 
virtual ~UDP_Server () override
 
- Public Member Functions inherited from PJ::DataStreamer
PlotDataMapRefdataMap ()
 
const PlotDataMapRefdataMap () const
 
 DataStreamer ()=default
 
std::mutex & mutex ()
 
virtual std::pair< QAction *, int > notificationAction ()
 Gets the action to execute when clicking the 'notifications' button and the current number of outstanding notifications. More...
 
const ParserFactoriesparserFactories () const
 
void setMaximumRangeX (double range)
 
void setParserFactories (ParserFactories *parsers)
 
virtual ~DataStreamer ()=default
 
- Public Member Functions inherited from PJ::PlotJugglerPlugin
virtual const std::vector< QAction * > & availableActions ()
 
virtual QWidget * optionsWidget ()
 optionsWidget pointer to a persistent widget used to set the plugin options . More...
 
 PlotJugglerPlugin ()=default
 
virtual bool xmlLoadState (const QDomElement &parent_element)
 Override this method to load the status of the plugin from XML. More...
 
QDomElement xmlSaveState (QDomDocument &doc) const
 
virtual bool xmlSaveState (QDomDocument &doc, QDomElement &parent_element) const
 Override this method to save the status of the plugin to XML. More...
 

Private Slots

void processMessage ()
 

Private Attributes

PJ::MessageParserPtr _parser
 
bool _running
 
QUdpSocket * _udp_socket
 

Additional Inherited Members

- Signals inherited from PJ::DataStreamer
void clearBuffers ()
 Request the main application to clear previous data points. More...
 
void closed ()
 
void dataReceived ()
 
void notificationsChanged (int active_notification_count)
 
void removeGroup (std::string group_name)
 All the series which share this group, will be deleted. More...
 

Detailed Description

Definition at line 27 of file udp_server.h.

Constructor & Destructor Documentation

◆ UDP_Server()

UDP_Server::UDP_Server ( )

Definition at line 59 of file udp_server.cpp.

◆ ~UDP_Server()

UDP_Server::~UDP_Server ( )
overridevirtual

Definition at line 63 of file udp_server.cpp.

Member Function Documentation

◆ isDebugPlugin()

virtual bool UDP_Server::isDebugPlugin ( )
inlineoverridevirtual

Override this to return true, if you want this plugin to be loaded only when the command line option [-t] is used.

Reimplemented from PJ::PlotJugglerPlugin.

Definition at line 52 of file udp_server.h.

◆ isRunning()

virtual bool UDP_Server::isRunning ( ) const
inlineoverridevirtual

isRunning

Returns
true if start() called, false after shutwodn()

Implements PJ::DataStreamer.

Definition at line 40 of file udp_server.h.

◆ name()

virtual const char* UDP_Server::name ( ) const
inlineoverridevirtual

Name of the plugin type, NOT the particular instance.

Implements PJ::PlotJugglerPlugin.

Definition at line 47 of file udp_server.h.

◆ processMessage

void UDP_Server::processMessage ( )
privateslot

Definition at line 211 of file udp_server.cpp.

◆ shutdown()

void UDP_Server::shutdown ( )
overridevirtual

shutdown Stop streaming

Implements PJ::DataStreamer.

Definition at line 202 of file udp_server.cpp.

◆ start()

bool UDP_Server::start ( QStringList *  pre_selected_sources)
overridevirtual

start streaming.

Parameters
optionallist of pre selected sources.
Returns
true if started correctly.

Implements PJ::DataStreamer.

Definition at line 68 of file udp_server.cpp.

Member Data Documentation

◆ _parser

PJ::MessageParserPtr UDP_Server::_parser
private

Definition at line 60 of file udp_server.h.

◆ _running

bool UDP_Server::_running
private

Definition at line 58 of file udp_server.h.

◆ _udp_socket

QUdpSocket* UDP_Server::_udp_socket
private

Definition at line 59 of file udp_server.h.


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


plotjuggler
Author(s): Davide Faconti
autogenerated on Mon Nov 11 2024 03:23:51