comparison vamp-sdk/PluginBase.h @ 24:e252b1ab423f

* add documentation to the C header
author cannam
date Tue, 25 Apr 2006 14:15:48 +0000
parents 68b8b32a2070
children ca1309b937b6
comparison
equal deleted inserted replaced
23:db01ce9e7657 24:e252b1ab423f
38 #define _VAMP_PLUGIN_BASE_H_ 38 #define _VAMP_PLUGIN_BASE_H_
39 39
40 #include <string> 40 #include <string>
41 #include <vector> 41 #include <vector>
42 42
43 #define VAMP_SDK_VERSION "0.2"
44
43 namespace Vamp { 45 namespace Vamp {
44 46
45 /** 47 /**
46 * A base class for plugins with optional configurable parameters, 48 * A base class for plugins with optional configurable parameters,
47 * programs, etc. 49 * programs, etc.
61 /** 63 /**
62 * Get the computer-usable name of the plugin. This should be 64 * Get the computer-usable name of the plugin. This should be
63 * reasonably short and contain no whitespace or punctuation 65 * reasonably short and contain no whitespace or punctuation
64 * characters. It may be shown to the user, but it won't be the 66 * characters. It may be shown to the user, but it won't be the
65 * main method for a user to identify a plugin (that will be the 67 * main method for a user to identify a plugin (that will be the
66 * description, below). 68 * description, below). This may only contain the characters
69 * [a-zA-Z0-9_].
67 */ 70 */
68 virtual std::string getName() const = 0; 71 virtual std::string getName() const = 0;
69 72
70 /** 73 /**
71 * Get a human-readable description of the plugin. This should be 74 * Get a human-readable description of the plugin. This should be
125 * The maximum value of the parameter. 128 * The maximum value of the parameter.
126 */ 129 */
127 float maxValue; 130 float maxValue;
128 131
129 /** 132 /**
130 * The default value of the parameter. 133 * The default value of the parameter. The plugin should
134 * ensure that parameters have this value on initialisation
135 * (i.e. the host is not required to explicitly set parameters
136 * if it wants to use their default values).
131 */ 137 */
132 float defaultValue; 138 float defaultValue;
133 139
134 /** 140 /**
135 * True if the parameter values are quantized to a particular 141 * True if the parameter values are quantized to a particular