|
static void | VuoTree_freeXmlDoc (void *value) |
| Frees an xmlDoc .
|
|
static void | VuoTree_freeJsonObject (void *value) |
| Releases a json_object .
|
|
static VuoTree | VuoTree_makeFromXmlNode (xmlNode *node) |
| Returns a tree whose root is node.
|
|
static VuoTree | VuoTree_makeFromXmlDoc (xmlDoc *doc) |
| Returns a tree whose root is the root node of doc.
|
|
static xmlNodePtr | VuoTree_boilDownPropertyList (xmlNodePtr plist) |
| Converts Apple's weird double-encoded Property List XML format into a straightforward XML document.
|
|
static VuoTree | VuoTree_parseXml (const char *xmlString, bool includeWhitespace) |
| Converts an XML string to a VuoTree.
|
|
static xmlChar * | VuoTree_serializeXmlNodeAsXml (VuoTree tree, bool indent, int level) |
| Converts the tree's root XML node and children to an XML string.
|
|
|
Returns a new XML node with name as its name if it's a valid element name, otherwise
|
static xmlNode * | createXmlNode (const char *name) |
| Converts a JSON string to a VuoTree.
|
|
static VuoTree | VuoTree_parseJson (const char *jsonString) |
| Converts a JSON string to a VuoTree.
|
|
static json_object * | createJsonString (const char *s) |
| Helper for VuoTree_serializeXmlNodeAsJson() .
|
|
static void | addToContainer (json_object *container, const char *key, json_object *value) |
| Helper for VuoTree_serializeXmlNodeAsJson() .
|
|
static json_object * | VuoTree_serializeXmlNodeAsJson (VuoTree tree, bool atRoot) |
| Converts an xmlNode partway to a JSON-formatted string.
|
|
VuoTree | VuoTree_makeFromJson (struct json_object *js) |
| Decodes the JSON object js to create a new value.
|
|
struct json_object * | VuoTree_getJson (const VuoTree value) |
| Encodes value as a JSON object that can only be decoded in the same process.
|
|
struct json_object * | VuoTree_getInterprocessJson (const VuoTree value) |
| Encodes value as a JSON object that can be decoded in a separate process.
|
|
char * | VuoTree_getSummary (const VuoTree value) |
| Returns a human-readable description of value.
|
|
VuoTree | VuoTree_makeEmpty (void) |
| Returns a tree with nothing in it.
|
|
VuoTree | VuoTree_make (VuoText name, VuoDictionary_VuoText_VuoText attributes, VuoText content, VuoList_VuoTree children) |
| Returns a tree that consists of the given components.
|
|
VuoTree | VuoTree_makeFromJsonText (VuoText json) |
| Returns a tree parsed from json.
|
|
VuoTree | VuoTree_makeFromXmlText (VuoText xml, bool includeWhitespace) |
| Returns a tree parsed from xml.
|
|
VuoText | VuoTree_serializeAsXml (VuoTree tree, bool indent) |
| Returns an XML-formatted string representation of a tree.
|
|
VuoText | VuoTree_serializeAsJson (VuoTree tree, bool indent) |
| Returns an JSON-formatted string representation of a tree.
|
|
void | VuoTree_retain (VuoTree value) |
| Replaces the auto-generated function.
|
|
void | VuoTree_release (VuoTree value) |
| Replaces the auto-generated function.
|
|
VuoText | VuoTree_getName (VuoTree tree) |
| Returns the name of the tree's root item.
|
|
VuoDictionary_VuoText_VuoText | VuoTree_getAttributes (VuoTree tree) |
| Returns the attributes of the tree's root item.
|
|
VuoText | VuoTree_getAttribute (VuoTree tree, VuoText attribute) |
| Returns the value of the attribute with the given name in the tree's root item, or an empty text if not found.
|
|
static xmlChar * | VuoTree_getContentOfXmlNode (xmlNode *node) |
| Returns the content of node, not including content of descendants.
|
|
VuoText | VuoTree_getContent (VuoTree tree, bool includeDescendants) |
| Returns the content of the tree's root item and, optionally, of its descendants.
|
|
VuoList_VuoTree | VuoTree_getChildren (VuoTree tree) |
| Returns a list of the subtrees that are direct descendants of the tree's root item.
|
|
struct json_object * | VuoTree_getContainedValue (VuoTree tree) |
| Interprets the content and children of the tree as a JSON representation of a Vuo data type value.
|
|
VuoList_VuoTree | VuoTree_findItemsUsingXpath (VuoTree tree, VuoText xpath) |
| Returns the subtrees found by searching tree with XPath expression xpath, or an empty list if there's an error.
|
|
static bool | compareName (xmlNode *node, VuoText name, VuoTextComparison comparison, VuoText unused) |
| Returns true if the subtree's name matches name.
|
|
static bool | compareAttribute (xmlNode *node, VuoText value, VuoTextComparison comparison, VuoText attribute) |
| Returns true if the subtree has an attribute called attribute and its value matches value.
|
|
static bool | compareContent (xmlNode *node, VuoText content, VuoTextComparison comparison, VuoText unused) |
| Returns true if the subtree's content matches content.
|
|
static VuoList_VuoTree | VuoTree_findItems (VuoTree tree, bool(*compare)(xmlNode *node, VuoText, VuoTextComparison, VuoText), VuoText targetText, VuoTextComparison comparison, VuoText attribute, bool includeDescendants, bool atFindRoot) |
| Helper function for the VuoTree_findItemsWith* functions.
|
|
VuoList_VuoTree | VuoTree_findItemsWithName (VuoTree tree, VuoText name, VuoTextComparison comparison, bool includeDescendants) |
| Searches tree for subtrees whose name matches name.
|
|
VuoList_VuoTree | VuoTree_findItemsWithAttribute (VuoTree tree, VuoText attribute, VuoText value, VuoTextComparison valueComparison, bool includeDescendants) |
| Searches tree for subtrees that have an attribute called attribute (exact match) and its value matches value (based on valueComparison).
|
|
VuoList_VuoTree | VuoTree_findItemsWithContent (VuoTree tree, VuoText content, VuoTextComparison comparison, bool includeDescendants) |
| Searches tree for subtrees whose content matches name.
|
|