libRoadRunner Plugin C API  1.0.0
Plugin Framework for libRoadRunner
 All Data Structures Files Functions Variables Typedefs Groups Pages
rrp_parameter_api.h
Go to the documentation of this file.
1 
42 #ifndef rrp_parameter_apiH
43 #define rrp_parameter_apiH
44 #include "rrp_exporter.h"
45 #include "rrp_types.h"
46 //---------------------------------------------------------------------------
47 
48 #if defined(__cplusplus)
49 namespace rrp { extern "C" {
50 #endif
51 
64 RRP_DECLSPEC RRParameterHandle rrp_cc createParameter(const char* label, const char* type, const char* hint, void* value);
65 
71 RRP_DECLSPEC bool rrp_cc freeParameter(RRParameterHandle para);
72 
73 
80 RRP_DECLSPEC bool rrp_cc addParameterToList(RRParametersHandle handle, RRParameterHandle para);
81 
88 RRP_DECLSPEC bool rrp_cc setParameterByString(RRParameterHandle handle, const char* value);
89 
96 RRP_DECLSPEC bool rrp_cc getBoolParameter(RRParameterHandle handle, bool* value);
97 
104 RRP_DECLSPEC bool rrp_cc setBoolParameter(RRParameterHandle handle, bool value);
105 
112 RRP_DECLSPEC bool rrp_cc setIntParameter(RRParameterHandle handle, int value);
113 
120 RRP_DECLSPEC bool rrp_cc getIntParameter(RRParameterHandle handle, int *value);
121 
128 RRP_DECLSPEC bool rrp_cc setDoubleParameter(RRParameterHandle handle, double value);
129 
136 RRP_DECLSPEC bool rrp_cc getDoubleParameter(RRParameterHandle handle, double *value);
137 
144 RRP_DECLSPEC bool rrp_cc setStringParameter(RRParameterHandle handle, char* value);
145 
152 RRP_DECLSPEC bool rrp_cc getStringParameter(RRParameterHandle handle, const char* (*value));
153 
160 RRP_DECLSPEC bool rrp_cc setListParameter(RRParameterHandle handle, void* (value));
161 
168 RRP_DECLSPEC bool rrp_cc getListParameter(RRParameterHandle handle, void* (value));
169 
170 
177 RRP_DECLSPEC bool rrp_cc setRoadRunnerDataParameter(RRParameterHandle handle, void* value);
178 
185 RRP_DECLSPEC bool rrp_cc getRoadRunnerDataParameter(RRParameterHandle handle, void* value);
186 
192 RRP_DECLSPEC char* rrp_cc getParameterInfo(RRParameterHandle handle);
193 
199 RRP_DECLSPEC char* rrp_cc getParameterValueAsString(RRParameterHandle handle);
200 
206 RRP_DECLSPEC void* rrp_cc getParameterValueHandle(RRParameterHandle handle);
207 
213 RRP_DECLSPEC char* rrp_cc getParameterName(RRParameterHandle handle);
214 
220 RRP_DECLSPEC char* rrp_cc getParameterHint(RRParameterHandle handle);
221 
228 RRP_DECLSPEC bool rrp_cc setParameterHint(RRParameterHandle handle, const char* value);
229 
235 RRP_DECLSPEC char* rrp_cc getParameterDescription(RRParameterHandle handle);
236 
243 RRP_DECLSPEC bool rrp_cc setParameterDescription(RRParameterHandle handle, const char* value);
244 
250 RRP_DECLSPEC char* rrp_cc getParameterType(RRParameterHandle handle);
251 
252 
253 RRP_DECLSPEC RRParameterHandle rrp_cc getFirstParameter(RRParametersHandle handle);
254 RRP_DECLSPEC RRParameterHandle rrp_cc getNextParameter(RRParametersHandle handle);
255 RRP_DECLSPEC RRParameterHandle rrp_cc getPreviousParameter(RRParametersHandle handle);
256 RRP_DECLSPEC RRParameterHandle rrp_cc getCurrentParameter(RRParametersHandle handle);
257 
264 RRP_DECLSPEC char* rrp_cc getNamesFromParameterList(RRParametersHandle handle);
265 
272 RRP_DECLSPEC bool rrp_cc clearParameterList(RRParametersHandle handle);
273 
276 #if defined(__cplusplus)
277 }} //rrc namespace
278 #endif
279 
280 
281 #endif
char * getParameterValueAsString(RRParameterHandle handle)
Get a parameters value as char*.
Definition: rrp_parameter_api.cpp:311
bool setParameterHint(RRParameterHandle handle, const char *value)
Set a parameters hint.
Definition: rrp_parameter_api.cpp:180
char * getNamesFromParameterList(RRParametersHandle handle)
Get a list of names for a plugins parameters.
Definition: rrp_parameter_api.cpp:392
void * RRParametersHandle
Void pointer to a RRParameters instance (Container for parameters)
Definition: rrp_types.h:66
Plugins API Types Header.
bool getBoolParameter(RRParameterHandle handle, bool *value)
Get a boolean parameter.
Definition: rrp_parameter_api.cpp:207
libRoadRunner Plugins C API 2012-2013
void * getParameterValueHandle(RRParameterHandle handle)
Get a handle to a parameters value.
Definition: rrp_parameter_api.cpp:320
bool getIntParameter(RRParameterHandle handle, int *value)
Get the value of an int parameter.
Definition: rrp_parameter_api.cpp:226
bool setRoadRunnerDataParameter(RRParameterHandle handle, void *value)
Set a roadRunnerDataParameter parameter.
Definition: rrp_parameter_api.cpp:292
bool setListParameter(RRParameterHandle handle, void *(value))
Set a listOfParameters (Parameters) parameter.
bool setIntParameter(RRParameterHandle handle, int value)
Set an int parameter.
Definition: rrp_parameter_api.cpp:217
bool clearParameterList(RRParametersHandle handle)
Clear a list of parameters.
Definition: rrp_parameter_api.cpp:384
bool addParameterToList(RRParametersHandle handle, RRParameterHandle para)
Add a parameter to a parameters container, from a parameter pointer.
Definition: rrp_parameter_api.cpp:151
bool setParameterByString(RRParameterHandle handle, const char *value)
Set a parameter by a string.
Definition: rrp_parameter_api.cpp:189
void * RRParameterHandle
Void pointer to a Parameter instance.
Definition: rrp_types.h:63
bool getRoadRunnerDataParameter(RRParameterHandle handle, void *value)
Get the value of a roadRunnerDataParameter parameter.
Definition: rrp_parameter_api.cpp:301
bool getStringParameter(RRParameterHandle handle, const char *(*value))
Get the value of a string (char*) parameter.
Definition: rrp_parameter_api.cpp:262
bool getDoubleParameter(RRParameterHandle handle, double *value)
Get the value of a double parameter.
Definition: rrp_parameter_api.cpp:244
bool setParameterDescription(RRParameterHandle handle, const char *value)
Set a parameters Description.
Definition: rrp_parameter_api.cpp:171
char * getParameterType(RRParameterHandle handle)
Get a parameters type.
Definition: rrp_parameter_api.cpp:344
bool freeParameter(RRParameterHandle para)
Free the memory created by a parameter.
Definition: rrp_parameter_api.cpp:142
bool getListParameter(RRParameterHandle handle, void *(value))
Get the value of a listOfParameters (Parameters) parameter.
Definition: rrp_parameter_api.cpp:281
char * getParameterHint(RRParameterHandle handle)
Get a parameters hint.
Definition: rrp_parameter_api.cpp:336
bool setBoolParameter(RRParameterHandle handle, bool value)
Set a boolean parameter.
Definition: rrp_parameter_api.cpp:198
char * getParameterDescription(RRParameterHandle handle)
Get a parameters description.
char * getParameterName(RRParameterHandle handle)
Get a parameters name.
Definition: rrp_parameter_api.cpp:328
char * getParameterInfo(RRParameterHandle handle)
Get a parameters info.
Definition: rrp_parameter_api.cpp:161
bool setDoubleParameter(RRParameterHandle handle, double value)
Set a double parameter.
Definition: rrp_parameter_api.cpp:235
bool setStringParameter(RRParameterHandle handle, char *value)
Set a string (char*) parameter.
Definition: rrp_parameter_api.cpp:253
RRParameterHandle createParameter(const char *label, const char *type, const char *hint, void *value)
Create a parameter of type "type".
Definition: rrp_parameter_api.cpp:21