Rapid-Mix API  v2.2.0
A simple library for machine learning & signal processing
PiPoHost Class Reference

#include <rapidPiPoHost.h>

Inheritance diagram for PiPoHost:
Inheritance graph
Collaboration diagram for PiPoHost:
Collaboration graph

Public Member Functions

 PiPoHost ()
 
 ~PiPoHost ()
 
virtual bool setGraph (std::string name)
 
virtual void clearGraph ()
 
virtual void onNewFrameOut (double time, std::vector< PiPoValue > &frame)
 
virtual std::vector< PiPoValue > getLastFrameOut ()
 
virtual int setInputStreamAttributes (pipoStreamAttributes &sa, bool propagate=true)
 
virtual pipoStreamAttributes getOutputStreamAttributes ()
 
virtual int frames (double time, double weight, PiPoValue *values, unsigned int size, unsigned int num)
 
virtual bool setAttr (const std::string &attrName, double value)
 
virtual bool setAttr (const std::string &attrName, const std::vector< double > &values)
 
virtual bool setAttr (const std::string &attrName, const std::string &value)
 
virtual std::vector< std::string > getAttrNames ()
 
virtual double getDoubleAttr (const std::string &attrName)
 
virtual std::vector< double > getDoubleArrayAttr (const std::string &attrName)
 
virtual std::string getEnumAttr (const std::string &attrName)
 
virtual std::string getJSON ()
 
virtual void writeJSON (const std::string &filepath)
 
virtual bool putJSON (const std::string &jsonMessage)
 
virtual bool readJSON (const std::string &filepath)
 

Protected Member Functions

Json::Value toJSON ()
 
bool fromJSON (Json::Value &jv)
 

Friends

class PiPoOut
 

Constructor & Destructor Documentation

§ PiPoHost()

PiPoHost::PiPoHost ( )

§ ~PiPoHost()

PiPoHost::~PiPoHost ( )

Member Function Documentation

§ clearGraph()

void PiPoHost::clearGraph ( )
virtual

§ frames()

int PiPoHost::frames ( double  time,
double  weight,
PiPoValue *  values,
unsigned int  size,
unsigned int  num 
)
virtual

§ fromJSON()

bool PiPoHost::fromJSON ( Json::Value &  jv)
protected

§ getAttrNames()

std::vector< std::string > PiPoHost::getAttrNames ( )
virtual

§ getDoubleArrayAttr()

std::vector< double > PiPoHost::getDoubleArrayAttr ( const std::string &  attrName)
virtual

§ getDoubleAttr()

double PiPoHost::getDoubleAttr ( const std::string &  attrName)
virtual

§ getEnumAttr()

std::string PiPoHost::getEnumAttr ( const std::string &  attrName)
virtual

§ getJSON()

std::string PiPoHost::getJSON ( )
virtual

Get a JSON representation of the model in the form of a styled string

§ getLastFrameOut()

std::vector< PiPoValue > PiPoHost::getLastFrameOut ( )
virtual

§ getOutputStreamAttributes()

pipoStreamAttributes PiPoHost::getOutputStreamAttributes ( )
virtual

§ onNewFrameOut()

void PiPoHost::onNewFrameOut ( double  time,
std::vector< PiPoValue > &  frame 
)
virtual

§ putJSON()

bool PiPoHost::putJSON ( const std::string &  jsonMessage)
virtual

configure empty model with string. See getJSON()

§ readJSON()

bool PiPoHost::readJSON ( const std::string &  filepath)
virtual

read a JSON file at file path and build a modelSet from it

§ setAttr() [1/3]

bool PiPoHost::setAttr ( const std::string &  attrName,
double  value 
)
virtual

§ setAttr() [2/3]

bool PiPoHost::setAttr ( const std::string &  attrName,
const std::vector< double > &  values 
)
virtual

§ setAttr() [3/3]

bool PiPoHost::setAttr ( const std::string &  attrName,
const std::string &  value 
)
virtual

§ setGraph()

bool PiPoHost::setGraph ( std::string  name)
virtual

§ setInputStreamAttributes()

int PiPoHost::setInputStreamAttributes ( pipoStreamAttributes sa,
bool  propagate = true 
)
virtual

§ toJSON()

Json::Value PiPoHost::toJSON ( )
protected

§ writeJSON()

void PiPoHost::writeJSON ( const std::string &  filepath)
virtual

Write a JSON model description to specified file path

Friends And Related Function Documentation

§ PiPoOut

friend class PiPoOut
friend

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