cpe_dict_model Struct Reference
[CPE Dictionary]

Structure representing a CPE dictionary. More...

#include <cpedict_priv.h>

Public Member Functions

void cpe_dict_model_free (struct cpe_dict_model *dict)
struct cpe_dict_model * cpe_dict_model_new (void)
void cpe_dict_model_export (const struct cpe_dict_model *dict, const char *file)
 Write the dict_model to a file.
struct cpe_dict_model * cpe_dict_model_import (const char *file)
 Load new CPE dictionary from file.
Getters

Return value is pointer to structure's member.

Do not free unless you null the pointer in the structure. Use remove function otherwise.



struct cpe_item_iterator * cpe_dict_model_get_items (const struct cpe_dict_model *item)
 cpe_dict_model functions to get CPE items
struct cpe_vendor_iterator * cpe_dict_model_get_vendors (const struct cpe_dict_model *item)
 cpe_dict_model functions to get vendors
struct xml_metadata_iterator * cpe_dict_model_get_xmlns (const struct cpe_dict_model *model)
 Get XML namespace from CPE dict model.
Setters

For lists use add functions.

Parameters of set functions are duplicated in memory and need to be freed by caller.



bool cpe_dict_model_add_vendor (struct cpe_dict_model *dict, struct cpe_vendor *new_vendor)
bool cpe_dict_model_add_xml (struct cpe_dict_model *model, struct xml_metadata *xml)
 Add XML namespace to CPE dict model.
Evaluators



const char * cpe_dict_model_supported (void)
 Get supported version of CPE dictionary XML.
bool cpe_name_match_dict (struct cpe_name *cpe, struct cpe_dict_model *dict)
 Verify wether given CPE is known according to specified dictionary.
bool cpe_name_match_dict_str (const char *cpe, struct cpe_dict_model *dict)
 Verify if CPE given by string is known according to specified dictionary.

Data Fields

struct oscap_list * xmlns
struct xml_metadata xml
struct oscap_list * items
struct oscap_list * vendors
struct cpe_generator * generator

Detailed Description

Structure representing a CPE dictionary.


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

Generated on 30 Jun 2010 for Open SCAP Library by  doxygen 1.6.1