phyphox BLE
Plot your Arduino's data in the phyphox app and control the board from the phone
Loading...
Searching...
No Matches
PhyphoxBleExperiment::Element Class Reference

Base of every view element. Holds the plain data the serializer reads. More...

#include <phyphoxBleExperiment.h>

Inheritance diagram for PhyphoxBleExperiment::Element:

Public Member Functions

 Element (const Element &)=delete
 
Element & operator= (const Element &)=delete
 
virtual ~Element ()
 
virtual void setLabel (const char *)
 
void setXMLAttribute (const char *)
 Raw attribute text appended verbatim to the element's start tag, e.g.
 
void setVisibility (int inputChannel)
 Show the element only while the last value in that input channel is > 0 (a toggle's channel, typically).
 
phyphox::ElementData & data ()
 
const phyphox::ElementData & data () const
 
virtual bool isExportData () const
 

Public Attributes

Element * next = nullptr
 intrusive list link, set by View::addElement()
 
View * owner = nullptr
 the view whose list holds this object (set by addElement)
 
const Element * aliasOf = nullptr
 An element added to a second view is represented there by a small heap-allocated alias that points back at the original — the store reads the original's data.
 

Protected Member Functions

 Element (phyphox::ElementType t)
 

Protected Attributes

phyphox::ElementData data_
 

Detailed Description

Base of every view element. Holds the plain data the serializer reads.

Constructor & Destructor Documentation

◆ Element() [1/2]

PhyphoxBleExperiment::Element::Element ( const Element &  )
delete

◆ ~Element()

virtual PhyphoxBleExperiment::Element::~Element ( )
inlinevirtual

◆ Element() [2/2]

PhyphoxBleExperiment::Element::Element ( phyphox::ElementType  t)
inlineexplicitprotected

Member Function Documentation

◆ data() [1/2]

phyphox::ElementData & PhyphoxBleExperiment::Element::data ( )
inline

◆ data() [2/2]

const phyphox::ElementData & PhyphoxBleExperiment::Element::data ( ) const
inline

◆ isExportData()

virtual bool PhyphoxBleExperiment::Element::isExportData ( ) const
inlinevirtual

◆ operator=()

Element & PhyphoxBleExperiment::Element::operator= ( const Element &  )
delete

◆ setLabel()

virtual void PhyphoxBleExperiment::Element::setLabel ( const char *  )
virtual

◆ setVisibility()

void PhyphoxBleExperiment::Element::setVisibility ( int  inputChannel)

Show the element only while the last value in that input channel is > 0 (a toggle's channel, typically).

Format 1.20.

◆ setXMLAttribute()

void PhyphoxBleExperiment::Element::setXMLAttribute ( const char *  )

Raw attribute text appended verbatim to the element's start tag, e.g.

setXMLAttribute("logY=\"true\""). The escape hatch for anything the API lacks; the library does not validate it.

Member Data Documentation

◆ aliasOf

const Element* PhyphoxBleExperiment::Element::aliasOf = nullptr

An element added to a second view is represented there by a small heap-allocated alias that points back at the original — the store reads the original's data.

(1.x copied the XML at addElement(), so the same Graph in two views was normal.)

◆ data_

phyphox::ElementData PhyphoxBleExperiment::Element::data_
protected

◆ next

Element* PhyphoxBleExperiment::Element::next = nullptr

intrusive list link, set by View::addElement()

◆ owner

View* PhyphoxBleExperiment::Element::owner = nullptr

the view whose list holds this object (set by addElement)


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