#ifndef LibloSource_hxx #define LibloSource_hxx #include #include #include #include #include #include "lo/lo.h" #ifdef GetClassName // windows.h introduces that #undef GetClassName #endif namespace CLAM { class LibloSourceConfig : public CLAM::ProcessingConfig { DYNAMIC_TYPE_USING_INTERFACE( LibloSourceConfig, 3, ProcessingConfig ); DYN_ATTRIBUTE( 0, public, std::string, OscPath); DYN_ATTRIBUTE( 1, public, std::string, ServerPort); DYN_ATTRIBUTE( 2, public, CLAM::TData, NumberOfArguments); //TODO number of arguments/ports protected: void DefaultInit() { AddAll(); UpdateData(); SetNumberOfArguments(3); SetOscPath("/clam/target"); SetServerPort(""); }; }; class LibloSource : public CLAM::Processing { typedef LibloSourceConfig Config; public: LibloSource(const Config& config = Config()) : _serverThread(0) { _serverThreadIsRunning=false; Configure( config ); } ~LibloSource() { if (_serverThreadIsRunning) { std::cout <<"LibloSource: Shutting down the server..."<