Allolib  1.0
C++ Components For Interactive Multimedia
al::HtmlInterfaceServer Class Reference

The HtmlInterfaceServer class runs an interface.simpleserver.js server and builds the html interface for the registered set of controllers and presets. More...

#include <C:/Users/Andres/source/repos/casm_viewer/external/tinc/external/allolib/include/al/ui/al_HtmlInterfaceServer.hpp>

Public Member Functions

 HtmlInterfaceServer (std::string pathToInterfaceJs="../interface.js", bool autorun=true)
 
HtmlInterfaceServeraddParameter (Parameter &param, std::string interfaceName="")
 
HtmlInterfaceServeraddParameterServer (ParameterServer &paramServer, std::string interfaceName="")
 
HtmlInterfaceServeraddPresetServer (PresetServer &presetServer, std::string interfaceName="")
 
HtmlInterfaceServeroperator<< (Parameter &param)
 
HtmlInterfaceServeroperator<< (ParameterServer &paramServer)
 
HtmlInterfaceServeroperator<< (PresetServer &presetServer)
 
void runInterfaceJs ()
 

Detailed Description

The HtmlInterfaceServer class runs an interface.simpleserver.js server and builds the html interface for the registered set of controllers and presets.

The HtmlInterfaceServer class runs an html service that provides a GUI for Parameter objects. It runs interface.js in the background, so it relies on an existing working installation of interface.js and interface.simpleserver.js in particular. The class generates the html file for interface.js from the registered parameters. Because it uses Parameter obejcts, the HTML GUI can be kept in sync with other control interfaces like ParameterGUI and other devices that set the parameters via OSC.

Definition at line 84 of file al_HtmlInterfaceServer.hpp.


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