20 #define EXPORTIT __declspec(dllexport)
41 template <
typename Tout = std::vector<
double>>
44 Source() : _error(
"No error") , _blob_format(
"none") {}
55 virtual std::string
kind() = 0;
88 virtual std::map<std::string, std::string>
info() = 0;
97 std::string
error() {
return _error; }
110 static const int version = 2;
111 static const std::string server_name() {
return "SourceServer"; }
114 std::string _blob_format;
119 #include <pugg/Driver.h>
122 template <
typename Tout = std::vector<
double>>
123 class SourceDriver :
public pugg::Driver {
125 SourceDriver(std::string name,
int version)
126 : pugg::Driver(
Source<Tout>::server_name(), name, version) {}
Definition: source.hpp:42
std::string blob_format()
Definition: source.hpp:102
bool dummy
Definition: source.hpp:107
virtual std::map< std::string, std::string > info()=0
virtual void set_params(void *params)
Definition: source.hpp:78
virtual return_type get_output(Tout *out, std::vector< unsigned char > *blob=nullptr)=0
std::string error()
Definition: source.hpp:97
virtual std::string kind()=0
Common definitions for the pugg library.
return_type
The return type of common interface functions.
Definition: common.hpp:52