flux sdk  v01.02.02-171-g49b3b33
Embedded C++ SDK
Loading...
Searching...
No Matches
flxFlux Class Reference

#include <flxFlux.h>

Inheritance diagram for flxFlux:
flxContainer< T >

Public Member Functions

bool start ()
 
bool loop (void)
 
void add (flxAction &theAction)
 
void add (flxAction *theAction)
 
bool contains (flxAction &theAction)
 
bool contains (flxAction *theAction)
 
bool insert_after (flxAction *theAction, flxAction *prevAction)
 
void add (flxDevice &theDevice)
 
void add (flxDevice *theDevice)
 
void remove (flxDevice &theDevice)
 
void remove (flxDevice *theDevice)
 
bool contains (flxDevice &theDevice)
 
bool contains (flxDevice *theDevice)
 
bool insert_after (flxDevice *theDevice, flxDevice *prevDevice)
 
 flxFlux (flxFlux const &)=delete
 
void operator= (flxFlux const &)=delete
 
bool save (flxStorage *pStorage)
 
bool restore (flxStorage *pStorage)
 
template<class T >
std::shared_ptr< std::vector< T * > > get ()
 
std::shared_ptr< std::vector< flxOperation * > > get (flxTypeID type)
 
template<class T >
bool isConnected ()
 
flxDeviceContainerconnectedDevices (void)
 
flxBusSPIspiDriver ()
 
flxBusI2Ci2cDriver ()
 
void setVersion (uint32_t major, uint32_t minor, uint32_t point, const char *desc, uint32_t build)
 
void versionString (char *buffer, size_t nbuffer, bool bFull=false)
 
uint32_t version ()
 
void version (uint32_t &major, uint32_t &minor, uint32_t &point)
 
uint32_t build (void)
 
void setAppClassID (const char *ID, char prefix[5])
 
const char * appClassID (void)
 
void writeBanner (void)
 
const char * deviceId (void)
 
void setLocalName (std::string name)
 
std::string localName (void)
 
void setApplication (flxApplication &theApp)
 
void setApplication (flxApplication *theApp)
 
flxApplicationapplication (void)
 
void setAppToken (const uint8_t *data, size_t len)
 
bool getAppToken (uint8_t token[32])
 
void setVerboseDevNames (bool bVerbose)
 
bool verboseDevNames (void)
 
void setAutoload (bool bAuto)
 
void setLoadSettings (bool bLoad)
 
void dumpDeviceAutoLoadTable (void)
 
bool initialized ()
 
- Public Member Functions inherited from flxContainer< T >
 flxContainer ()
 
auto size () -> decltype(_vector.size())
 
size_t n_children (void)
 
void push_back (T *value)
 
void push_back (T &value)
 
void pop_back (void)
 
void insert (typename std::vector< T * >::iterator it, T *value)
 
bool insert_after (T *value, T *prev)
 
auto back (void) -> decltype(_vector.back())
 
auto front () -> decltype(_vector.front())
 
T *& at (size_t pos)
 
auto cbegin () -> decltype(_vector.cbegin())
 
auto cend () -> decltype(_vector.cend())
 
auto begin () -> decltype(_vector.begin())
 
auto end () -> decltype(_vector.end())
 
auto rbegin () -> decltype(_vector.rbegin())
 
auto rend () -> decltype(_vector.rend())
 
auto empty () -> decltype(_vector.empty())
 
iterator erase (iterator pos)
 
void remove (T *value)
 
bool contains (T *value)
 
flxTypeID getType (void)
 
virtual bool save (flxStorage *pStorage)
 
virtual bool restore (flxStorage *pStorage)
 

Static Public Member Functions

static flxFluxget (void)
 
- Static Public Member Functions inherited from flxContainer< T >
static flxTypeID type (void)
 

Public Attributes

flxDeviceContainer Devices
 
flxActionContainer Actions
 

Additional Inherited Members

- Public Types inherited from flxContainer< T >
typedef std::vector< T * >::iterator iterator
 
- Protected Attributes inherited from flxContainer< T >
std::vector< T * > _vector
 

Constructor & Destructor Documentation

◆ flxFlux()

flxFlux::flxFlux ( flxFlux const &  )
delete

Member Function Documentation

◆ add() [1/4]

void flxFlux::add ( flxAction theAction)
inline

◆ add() [2/4]

void flxFlux::add ( flxAction theAction)

◆ add() [3/4]

void flxFlux::add ( flxDevice theDevice)
inline

◆ add() [4/4]

void flxFlux::add ( flxDevice theDevice)

◆ appClassID()

const char * flxFlux::appClassID ( void  )
inline

◆ application()

flxApplication * flxFlux::application ( void  )
inline

◆ build()

uint32_t flxFlux::build ( void  )
inline

◆ connectedDevices()

flxDeviceContainer & flxFlux::connectedDevices ( void  )
inline

◆ contains() [1/4]

bool flxFlux::contains ( flxAction theAction)
inline

◆ contains() [2/4]

bool flxFlux::contains ( flxAction theAction)

◆ contains() [3/4]

bool flxFlux::contains ( flxDevice theDevice)
inline

◆ contains() [4/4]

bool flxFlux::contains ( flxDevice theDevice)

◆ deviceId()

const char * flxFlux::deviceId ( void  )

◆ dumpDeviceAutoLoadTable()

void flxFlux::dumpDeviceAutoLoadTable ( void  )
inline

◆ get() [1/3]

template<class T >
std::shared_ptr< std::vector< T * > > flxFlux::get ( )
inline

◆ get() [2/3]

std::shared_ptr< std::vector< flxOperation * > > flxFlux::get ( flxTypeID  type)
inline

◆ get() [3/3]

static flxFlux & flxFlux::get ( void  )
inlinestatic

◆ getAppToken()

bool flxFlux::getAppToken ( uint8_t  token[32])

◆ i2cDriver()

flxBusI2C & flxFlux::i2cDriver ( )
inline

◆ initialized()

bool flxFlux::initialized ( )

◆ insert_after() [1/2]

bool flxFlux::insert_after ( flxAction theAction,
flxAction prevAction 
)

◆ insert_after() [2/2]

bool flxFlux::insert_after ( flxDevice theDevice,
flxDevice prevDevice 
)

◆ isConnected()

template<class T >
bool flxFlux::isConnected ( )
inline

◆ localName()

std::string flxFlux::localName ( void  )
inline

◆ loop()

bool flxFlux::loop ( void  )

◆ operator=()

void flxFlux::operator= ( flxFlux const &  )
delete

◆ remove() [1/2]

void flxFlux::remove ( flxDevice theDevice)
inline

◆ remove() [2/2]

void flxFlux::remove ( flxDevice theDevice)

◆ restore()

bool flxFlux::restore ( flxStorage pStorage)
virtual

Reimplemented from flxContainer< T >.

◆ save()

bool flxFlux::save ( flxStorage pStorage)
virtual

Reimplemented from flxContainer< T >.

◆ setAppClassID()

void flxFlux::setAppClassID ( const char *  ID,
char  prefix[5] 
)
inline

◆ setApplication() [1/2]

void flxFlux::setApplication ( flxApplication theApp)
inline

◆ setApplication() [2/2]

void flxFlux::setApplication ( flxApplication theApp)
inline

◆ setAppToken()

void flxFlux::setAppToken ( const uint8_t *  data,
size_t  len 
)

◆ setAutoload()

void flxFlux::setAutoload ( bool  bAuto)
inline

◆ setLoadSettings()

void flxFlux::setLoadSettings ( bool  bLoad)
inline

◆ setLocalName()

void flxFlux::setLocalName ( std::string  name)
inline

◆ setVerboseDevNames()

void flxFlux::setVerboseDevNames ( bool  bVerbose)

◆ setVersion()

void flxFlux::setVersion ( uint32_t  major,
uint32_t  minor,
uint32_t  point,
const char *  desc,
uint32_t  build 
)
inline

◆ spiDriver()

flxBusSPI & flxFlux::spiDriver ( )
inline

◆ start()

bool flxFlux::start ( )

◆ verboseDevNames()

bool flxFlux::verboseDevNames ( void  )

◆ version() [1/2]

uint32_t flxFlux::version ( )
inline

◆ version() [2/2]

void flxFlux::version ( uint32_t &  major,
uint32_t &  minor,
uint32_t &  point 
)
inline

◆ versionString()

void flxFlux::versionString ( char *  buffer,
size_t  nbuffer,
bool  bFull = false 
)
inline

◆ writeBanner()

void flxFlux::writeBanner ( void  )
inline

Member Data Documentation

◆ Actions

flxActionContainer flxFlux::Actions

◆ Devices

flxDeviceContainer flxFlux::Devices

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