Mercurial > hg > vamp-plugin-sdk
comparison vamp-sdk/PluginBase.h @ 49:aa64a46320d4
* Rename "name" and "description" to "identifier" and "name"; add new
"description" that actually contains a description
author | cannam |
---|---|
date | Mon, 26 Feb 2007 18:08:48 +0000 |
parents | be8fdfe25693 |
children | b907557b2fb9 |
comparison
equal
deleted
inserted
replaced
48:f46bf5e0fa42 | 49:aa64a46320d4 |
---|---|
67 * This is the authoritative way for a program to identify a | 67 * This is the authoritative way for a program to identify a |
68 * plugin within a given library. | 68 * plugin within a given library. |
69 * | 69 * |
70 * This text may be visible to the user, but it should not be the | 70 * This text may be visible to the user, but it should not be the |
71 * main text used to identify a plugin to the user (that will be | 71 * main text used to identify a plugin to the user (that will be |
72 * the description, below). | 72 * the name, below). |
73 */ | 73 * |
74 virtual std::string getName() const = 0; | 74 * Example: "zero_crossings" |
75 | 75 */ |
76 /** | 76 virtual std::string getIdentifier() const = 0; |
77 * Get a human-readable description or title of the plugin. This | 77 |
78 /** | |
79 * Get a human-readable name or title of the plugin. This | |
78 * should be brief and self-contained, as it may be used to | 80 * should be brief and self-contained, as it may be used to |
79 * identify the plugin to the user in isolation (i.e. without also | 81 * identify the plugin to the user in isolation (i.e. without also |
80 * showing the plugin's "name"). | 82 * showing the plugin's "identifier"). |
83 * | |
84 * Example: "Zero Crossings" | |
85 */ | |
86 virtual std::string getName() const = 0; | |
87 | |
88 /** | |
89 * Get a human-readable description for the plugin, typically | |
90 * a line of text that may optionally be displayed in addition | |
91 * to the plugin's "name". May be empty if the name has said | |
92 * it all already. | |
93 * | |
94 * Example: "Detect and count zero crossing points" | |
81 */ | 95 */ |
82 virtual std::string getDescription() const = 0; | 96 virtual std::string getDescription() const = 0; |
83 | 97 |
84 /** | 98 /** |
85 * Get the name of the author or vendor of the plugin in | 99 * Get the name of the author or vendor of the plugin in |
107 /** | 121 /** |
108 * The name of the parameter, in computer-usable form. Should | 122 * The name of the parameter, in computer-usable form. Should |
109 * be reasonably short, and may only contain the characters | 123 * be reasonably short, and may only contain the characters |
110 * [a-zA-Z0-9_]. | 124 * [a-zA-Z0-9_]. |
111 */ | 125 */ |
126 std::string identifier; | |
127 | |
128 /** | |
129 * The human-readable name of the parameter. | |
130 */ | |
112 std::string name; | 131 std::string name; |
113 | 132 |
114 /** | 133 /** |
115 * The human-readable name of the parameter. | 134 * A human-readable short text describing the parameter. May be |
135 * empty if the name has said it all already. | |
116 */ | 136 */ |
117 std::string description; | 137 std::string description; |
118 | 138 |
119 /** | 139 /** |
120 * The unit of the parameter, in human-readable form. | 140 * The unit of the parameter, in human-readable form. |
174 virtual ParameterList getParameterDescriptors() const { | 194 virtual ParameterList getParameterDescriptors() const { |
175 return ParameterList(); | 195 return ParameterList(); |
176 } | 196 } |
177 | 197 |
178 /** | 198 /** |
179 * Get the value of a named parameter. The argument is the name | 199 * Get the value of a named parameter. The argument is the identifier |
180 * field from that parameter's descriptor. | 200 * field from that parameter's descriptor. |
181 */ | 201 */ |
182 virtual float getParameter(std::string) const { return 0.0; } | 202 virtual float getParameter(std::string) const { return 0.0; } |
183 | 203 |
184 /** | 204 /** |
185 * Set a named parameter. The first argument is the name field | 205 * Set a named parameter. The first argument is the identifier field |
186 * from that parameter's descriptor. | 206 * from that parameter's descriptor. |
187 */ | 207 */ |
188 virtual void setParameter(std::string, float) { } | 208 virtual void setParameter(std::string, float) { } |
189 | 209 |
190 | 210 |