Open SCAP Library
Loading...
Searching...
No Matches
Public Member Functions | Data Fields
cvrf_product_tree Struct Reference
Collaboration diagram for cvrf_product_tree:
[legend]

Public Member Functions

xmlNode * cvrf_product_tree_to_dom (struct cvrf_product_tree *tree)
 Parent: CVRF Model root node. More...
 
OSCAP_API struct cvrf_product_treecvrf_product_tree_new (void)
 New ProductTree structure. More...
 
OSCAP_API void cvrf_product_tree_free (struct cvrf_product_tree *tree)
 Deallocates memory for a ProductTree element and all its child Branches, Relationships, and FullProductNames, if they exist. More...
 
OSCAP_API struct cvrf_product_treecvrf_product_tree_clone (const struct cvrf_product_tree *tree)
 
OSCAP_API const char * get_cvrf_product_id_from_cpe (struct cvrf_product_tree *tree, const char *cpe)
 Find the unique ProductID for the given CPE by searching the branches of the ProductTree: find the ProductID attribute for the FullProductName element with the appropriate CPE. More...
 
OSCAP_API int cvrf_product_tree_filter_by_cpe (struct cvrf_product_tree *tree, const char *cpe)
 Use the CPE name to find the matching ProductID, then filter the tree by removing branches and relationship elements not related to that ProductID. More...
 
OSCAP_API bool cvrf_product_tree_add_product_name (struct cvrf_product_tree *tree, struct cvrf_product_name *full_name)
 
OSCAP_API struct cvrf_product_name_iterator * cvrf_product_tree_get_product_names (const struct cvrf_product_tree *tree)
 
OSCAP_API bool cvrf_product_tree_add_relationship (struct cvrf_product_tree *tree, struct cvrf_relationship *relation)
 
OSCAP_API struct cvrf_relationship_iterator * cvrf_product_tree_get_relationships (const struct cvrf_product_tree *tree)
 
OSCAP_API bool cvrf_product_tree_add_group (struct cvrf_product_tree *tree, struct cvrf_group *group)
 
OSCAP_API struct cvrf_group_iterator * cvrf_product_tree_get_product_groups (const struct cvrf_product_tree *tree)
 

Data Fields

struct oscap_listproduct_names
 
struct oscap_listbranches
 
struct oscap_listrelationships
 
struct oscap_listproduct_groups
 

Member Function Documentation

◆ cvrf_product_tree_to_dom()

xmlNode * cvrf_product_tree_to_dom ( struct cvrf_product_tree tree)

Parent: CVRF Model root node.

Parameters
treeCVRF ProductTree structure to be exported to XML
Returns
xmlNode representing ProductTree element

The documentation for this struct was generated from the following files: