Function Index | |
| int | getCountList (SDOLIST l) |
| Returns the length of the argument SDOLIST. More... | |
| void | setList (DATAOBJECT pdo, SDOPROPERTY p, SDOLIST list) |
| Sets the value(s) of the supplied property to the members of the supplied list. More... | |
| DATAOBJECT | getDataObjectList (SDOLIST l, int index) |
| Returns the dataobject at the specified index in the supplied SDOLIST. More... | |
| void | appendDataObjectList (SDOLIST list, DATAOBJECT pdo) |
| Appends the argument dataobject to the supplied SDOLIST. More... | |
| char * | getStringList (SDOLIST list, int index) |
| Returns the string at the specified index in the supplied SDOLIST of string values. | |
| void | appendStringList (SDOLIST list, char *str) |
| Appends the argument string to the supplied SDOLIST. More... | |
| SDOTYPE | getTypeList (SDOLIST plist, int index) |
| Returns the SDOTYPE at the specified index in the supplied SDOLIST of SDOTYPE objects. | |
| SDOLIST | listAlloc () |
| Extension function for creating a list. More... | |
| int getCountList | ( | SDOLIST | l | ) |
Returns the length of the argument SDOLIST.
| l | SDOLIST to return length for |
| void setList | ( | DATAOBJECT | pdo, |
| SDOPROPERTY | p, | ||
| SDOLIST | list | ||
| ) |
Sets the value(s) of the supplied property to the members of the supplied list.
| pdo | dataobject to set value(s) for |
| p | SDOPROPERTY to set values(s) for |
| list | SDOLIST of values to set |
| DATAOBJECT getDataObjectList | ( | SDOLIST | l, |
| int | index | ||
| ) |
Returns the dataobject at the specified index in the supplied SDOLIST.
| l | SDOLIST containing dataobject to return |
| index | of dataobject on l to return |
| void appendDataObjectList | ( | SDOLIST | list, |
| DATAOBJECT | pdo | ||
| ) |
Appends the argument dataobject to the supplied SDOLIST.
TODO: re-check/test case
| l | SDOLIST to append to |
| pdo | dataobject to append |
| void appendStringList | ( | SDOLIST | list, |
| char * | str | ||
| ) |
Appends the argument string to the supplied SDOLIST.
Note that a list of strings is internally represented as a list of dataobjects with string simple type.
| list | list obtained by a prior call to getList() |
| str | string value to append as list item |
| SDOLIST listAlloc | ( | ) |
Extension function for creating a list.
TODO: SDO API doesn't have a list constructor/assumes SDOLIST is allocated statically (and extended dynamically)