Tellurium Plugin C API
1.0.0
Plugin Framework for Tellurium
|
Plugins Property related functions. More...
Functions | |
TELHandle | tpCreateProperty (const char *label, const char *type, const char *hint, void *value) |
Create a property of type "type". More... | |
TELHandle | tpCreatePropertyList (void) |
Create a PropertyList, i.e. an object of type Properties. More... | |
bool | tpFreeProperties (TELHandle propertiesH) |
Free a list of properties. More... | |
bool | tpFreeProperty (TELHandle property) |
Free the memory created by a property. More... | |
bool | tpAddPropertyToList (TELHandle handle, TELHandle property) |
Add a property to a properties container, from a property pointer. More... | |
bool | tpSetPropertyByString (TELHandle handle, const char *value) |
Set a property value by a string. More... | |
bool | tpGetBoolProperty (TELHandle handle, bool *value) |
Get a boolean property. More... | |
bool | tpSetBoolProperty (TELHandle handle, bool value) |
Set a boolean property. More... | |
bool | tpSetIntProperty (TELHandle handle, int value) |
Set an int property. More... | |
bool | tpGetIntProperty (TELHandle handle, int *value) |
Get the value of an int property. More... | |
bool | tpSetDoubleProperty (TELHandle handle, double value) |
Set a double property. More... | |
bool | tpGetDoubleProperty (TELHandle handle, double *value) |
Get the value of a double property. More... | |
bool | tpSetStringProperty (TELHandle handle, char *value) |
Set a string (char*) property. More... | |
bool | tpGetStringProperty (TELHandle handle, const char *(*value)) |
Get the value of a string (char*) property. More... | |
bool | tpSetListProperty (TELHandle handle, void *value) |
Set a listOfProperties (Properties) property. More... | |
bool | tpGetListProperty (TELHandle handle, void *value) |
Get the value of a listOfProperties (Properties) property. More... | |
bool | tpSetTelluriumDataProperty (TELHandle handle, void *value) |
Set a telluriumDataProperty property. More... | |
bool | tpGetTelluriumDataProperty (TELHandle handle, void *value) |
Get the value of a telluriumDataProperty property. More... | |
char * | tpGetPropertyInfo (TELHandle handle) |
Get a property's info. More... | |
char * | tpGetPropertyValueAsString (TELHandle handle) |
Get a property's value as char*. More... | |
void * | tpGetPropertyValueHandle (TELHandle handle) |
Get a handle to a property's value. More... | |
char * | tpGetPropertyName (TELHandle handle) |
Get a property's name. More... | |
char * | tpGetPropertyHint (TELHandle handle) |
Get a property's hint. More... | |
bool | tpSetPropertyHint (TELHandle handle, const char *value) |
Set a property's hint. More... | |
char * | tpGetPropertyDescription (TELHandle handle) |
Get a property's description. More... | |
bool | tpSetPropertyDescription (TELHandle handle, const char *value) |
Set a property's Description. More... | |
char * | tpGetPropertyType (TELHandle handle) |
Get a property's type. More... | |
TELHandle | tpGetFirstProperty (TELHandle handle) |
Get a property containers 'first' property. More... | |
TELHandle | tpGetNextProperty (TELHandle handle) |
Get a property containers 'next' property. More... | |
TELHandle | tpGetPreviousProperty (TELHandle handle) |
Get a property containers 'previous' property. More... | |
TELHandle | tpGetCurrentProperty (TELHandle handle) |
Get a property containers 'current' property. More... | |
Plugins Property related functions.
Add a property to a properties container, from a property pointer.
handle | Handle to a RoadRunner instance |
property | Handle to a roadrunner property |
TELHandle tpCreateProperty | ( | const char * | label, |
const char * | type, | ||
const char * | hint, | ||
void * | value | ||
) |
Create a property of type "type".
label | The property's label as a string |
type | The property's type as string. Possible values can be 'double', 'int', 'char*' etc, |
hint | The property's hint as string. |
value | The property's initial value casted to a (void*) pointer |
TELHandle tpCreatePropertyList | ( | void | ) |
Create a PropertyList, i.e. an object of type Properties.
bool tpFreeProperties | ( | TELHandle | propertiesH) |
Free a list of properties.
propertiesH | A handle a list of properties |
bool tpFreeProperty | ( | TELHandle | property) |
Free the memory created by a property.
property | A handle to the property |
bool tpGetBoolProperty | ( | TELHandle | handle, |
bool * | value | ||
) |
Get a boolean property.
handle | to a Property instance |
value | to assign to the property. |
Get a property containers 'current' property.
handle | Handle to a Properties (container for properties) instance |
bool tpGetDoubleProperty | ( | TELHandle | handle, |
double * | value | ||
) |
Get the value of a double property.
handle | to a Property instance |
value | to assign to the property. |
Get a property containers 'first' property.
handle | Handle to a Properties (container for properties) instance |
bool tpGetIntProperty | ( | TELHandle | handle, |
int * | value | ||
) |
Get the value of an int property.
handle | to a Property instance |
value | to assign to the property. |
bool tpGetListProperty | ( | TELHandle | handle, |
void * | value | ||
) |
Get the value of a listOfProperties (Properties) property.
handle | to a Property instance |
value | to assign to the property. |
Get a property containers 'next' property.
handle | Handle to a Properties (container for properties) instance |
Get a property containers 'previous' property.
handle | Handle to a Properties (container for properties) instance |
char* tpGetPropertyDescription | ( | TELHandle | handle) |
Get a property's description.
handle | to a Property instance |
char* tpGetPropertyHint | ( | TELHandle | handle) |
Get a property's hint.
handle | to a Property instance |
char* tpGetPropertyInfo | ( | TELHandle | handle) |
Get a property's info.
handle | Handle to a property instance |
char* tpGetPropertyName | ( | TELHandle | handle) |
Get a property's name.
handle | to a Property instance |
char* tpGetPropertyType | ( | TELHandle | handle) |
Get a property's type.
handle | Handle to a Property instance |
char* tpGetPropertyValueAsString | ( | TELHandle | handle) |
Get a property's value as char*.
handle | to a Property instance |
void* tpGetPropertyValueHandle | ( | TELHandle | handle) |
Get a handle to a property's value.
handle | to a Property instance |
bool tpGetStringProperty | ( | TELHandle | handle, |
const char ** | value | ||
) |
Get the value of a string (char*) property.
handle | to a Property instance |
value | to assign to the property. |
bool tpGetTelluriumDataProperty | ( | TELHandle | handle, |
void * | value | ||
) |
Get the value of a telluriumDataProperty property.
handle | to a Property instance |
value | to assign to the property. |
bool tpSetBoolProperty | ( | TELHandle | handle, |
bool | value | ||
) |
Set a boolean property.
handle | to a Property instance |
value | to assign to the property. |
bool tpSetDoubleProperty | ( | TELHandle | handle, |
double | value | ||
) |
Set a double property.
handle | to a Property instance |
value | to assign to the property. |
bool tpSetIntProperty | ( | TELHandle | handle, |
int | value | ||
) |
Set an int property.
handle | to a Property instance |
value | to assign to the property. |
bool tpSetListProperty | ( | TELHandle | handle, |
void * | value | ||
) |
Set a listOfProperties (Properties) property.
handle | to a Property instance |
value | to assign to the property. |
bool tpSetPropertyByString | ( | TELHandle | handle, |
const char * | value | ||
) |
Set a property value by a string.
handle | to a Property instance |
value | Pointer to string holding the value to assign to the property, e.g. "0.01" to set a double to 0.01 |
bool tpSetPropertyDescription | ( | TELHandle | handle, |
const char * | value | ||
) |
Set a property's Description.
handle | to a Property instance |
value | The property description as a string |
bool tpSetPropertyHint | ( | TELHandle | handle, |
const char * | value | ||
) |
Set a property's hint.
handle | to a Property instance |
value | The property hint as a string |
bool tpSetStringProperty | ( | TELHandle | handle, |
char * | value | ||
) |
Set a string (char*) property.
handle | to a Property instance |
value | to assign to the property. |
bool tpSetTelluriumDataProperty | ( | TELHandle | handle, |
void * | value | ||
) |
Set a telluriumDataProperty property.
handle | to a Property instance |
value | to assign to the property. |