Private members
[CPE Dictionary]

Data Structures

struct  cpe_check
 Structure representing single CPE check. More...
struct  cpe_reference
 CPE dictionary item reference. More...
struct  cpe_item
 Structure representing single CPE dictionary item. More...
struct  cpe_dict_model
 Structure representing a CPE dictionary. More...
struct  cpe_item_metadata
 Structure representing metadata of CPE item. More...
struct  cpe_generator
 Structure with information about document. More...
struct  cpe_vendor
 Structure with information about vendor. More...
struct  cpe_product
 Product of some vendor. More...
struct  cpe_version
 Version of product. More...
struct  cpe_update
 Update of product version. More...
struct  cpe_edition
 Edition of product update. More...
struct  cpe_language
 Language of product edition. More...

Parse functions

Functions for parsing structures from XML.

Return value is new structure filled by content of XML file represented by XML reader or import source structure. Structure needs to be freed by the caller.



struct cpe_dict_modelcpe_dict_model::cpe_dict_model_parse_xml (const struct oscap_import_source *source)
 Function to parse XML to CPE dictionary model.
struct cpe_generatorcpe_generator::cpe_generator_parse (xmlTextReaderPtr reader)
 Parse generator part of CPE dictionary XML file.
struct cpe_itemcpe_item::cpe_item_parse (xmlTextReaderPtr reader)
 New dictionary item from XML.
struct cpe_vendorcpe_vendor::cpe_vendor_parse (xmlTextReaderPtr reader)
 Parsing function to parse vendors of CPE dictionary.
struct cpe_dict_modelcpe_dict_model::cpe_dict_model_parse (xmlTextReaderPtr reader)
 Load new CPE dictionary from XML node.

Export functions

Functions for export structures to XML by XML writer.

Exported structures need to be freed by the caller.



void cpe_dict_model::cpe_dict_model_export_xml (const struct cpe_dict_model *dict, const struct oscap_export_target *target)
 Export function for CPE dictionary model.
void cpe_dict_model::cpe_dict_export (const struct cpe_dict_model *dict, xmlTextWriterPtr writer)
 Internal export function for CPE dictionary model.
void cpe_generator::cpe_generator_export (const struct cpe_generator *generator, xmlTextWriterPtr writer)
 Exporting function for CPE generator - information of XML document.
void cpe_item::cpe_item_export (const struct cpe_item *item, xmlTextWriterPtr writer)
 Exporting function for CPE item.
void cpe_vendor::cpe_vendor_export (const struct cpe_vendor *vendor, xmlTextWriterPtr writer)
 Exporting function for CPE vendor.

Function Documentation

void cpe_dict_export ( const struct cpe_dict_model dict,
xmlTextWriterPtr  writer 
) [related, inherited]

Internal export function for CPE dictionary model.

Parameters:
dict CPE dictionary
writer xmlTextWriterPtr representing XML model
void cpe_dict_model_export_xml ( const struct cpe_dict_model dict,
const struct oscap_export_target *  target 
) [related, inherited]

Export function for CPE dictionary model.

Parameters:
dict CPE dictionary structure
target OSCAP exporting target
struct cpe_dict_model * cpe_dict_model_parse ( xmlTextReaderPtr  reader  )  [related, inherited]

Load new CPE dictionary from XML node.

Parameters:
node file name of dictionary to import
Returns:
new dictionary
Return values:
NULL on failure
struct cpe_dict_model * cpe_dict_model_parse_xml ( const struct oscap_import_source source  )  [related, inherited]

Function to parse XML to CPE dictionary model.

Parameters:
source Structure of name and encoding of importing XML file
void cpe_generator_export ( const struct cpe_generator generator,
xmlTextWriterPtr  writer 
) [related, inherited]

Exporting function for CPE generator - information of XML document.

Parameters:
generator CPE generator structure
writer xmlTextWriterPtr representing XML model
struct cpe_generator * cpe_generator_parse ( xmlTextReaderPtr  reader  )  [related, inherited]

Parse generator part of CPE dictionary XML file.

Parameters:
reader xmlTextReaderPtr representing XML model
Returns:
new structure cpe_generator
void cpe_item_export ( const struct cpe_item item,
xmlTextWriterPtr  writer 
) [related, inherited]

Exporting function for CPE item.

Parameters:
item CPE item structure
writer xmlTextWriterPtr representing XML model
struct cpe_item * cpe_item_parse ( xmlTextReaderPtr  reader  )  [related, inherited]

New dictionary item from XML.

Parameters:
node cpe-item node
Returns:
new dictionary item
Return values:
NULL on failure
void cpe_vendor_export ( const struct cpe_vendor vendor,
xmlTextWriterPtr  writer 
) [related, inherited]

Exporting function for CPE vendor.

Parameters:
vendor CPE vendor structure
writer xmlTextWriterPtr representing XML model
struct cpe_vendor * cpe_vendor_parse ( xmlTextReaderPtr  reader  )  [related, inherited]

Parsing function to parse vendors of CPE dictionary.

Parameters:
reader xmlTextReaderPtr representing XML model
Returns:
new structure cpe_vendor

Generated on 4 Jan 2010 for Open SCAP Library by  doxygen 1.6.1