ESP  0.1
The Example-based Sensor Predictions (ESP) system tries to bring machine learning to the maker community.
Tuneable Class Reference

#include <tuneable.h>

Public Types

enum  Type { SET, INT_RANGE, DOUBLE_RANGE, BOOL }
 

Public Member Functions

 Tuneable (int *value, int min, int max, const string &title, const string &description, std::function< void(int)> cb)
 
 Tuneable (double *value, double min, double max, const string &title, const string &description, std::function< void(double)> cb)
 
 Tuneable (bool *value, const string &title, const string &description, std::function< void(bool)> cb)
 
void addToGUI (ofxDatGui &gui)
 
std::string toString ()
 
bool fromString (std::string str)
 
void * getUIAddress () const
 
void * getDataAddress () const
 
Type getType () const
 

Member Enumeration Documentation

Enumerator
SET 
INT_RANGE 
DOUBLE_RANGE 
BOOL 

Constructor & Destructor Documentation

Tuneable::Tuneable ( int *  value,
int  min,
int  max,
const string &  title,
const string &  description,
std::function< void(int)>  cb 
)
inline
Tuneable::Tuneable ( double *  value,
double  min,
double  max,
const string &  title,
const string &  description,
std::function< void(double)>  cb 
)
inline
Tuneable::Tuneable ( bool *  value,
const string &  title,
const string &  description,
std::function< void(bool)>  cb 
)
inline

Member Function Documentation

void Tuneable::addToGUI ( ofxDatGui &  gui)
inline
bool Tuneable::fromString ( std::string  str)
inline
void* Tuneable::getDataAddress ( ) const
inline
Type Tuneable::getType ( ) const
inline
void* Tuneable::getUIAddress ( ) const
inline
std::string Tuneable::toString ( )
inline

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