cpe_generator Struct Reference
[Private membersCPE Dictionary]

Structure with information about document. More...

#include <cpedict_priv.h>

Data Fields

struct xml_metadata xml
char * product_name
char * product_version
char * schema_version
char * timestamp

Related Functions

(Note that these are not member functions.)



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_generatorcpe_generator_parse (xmlTextReaderPtr reader)
 Parse generator part of CPE dictionary XML file.
Export functions

Functions for export structures to XML by XML writer.

Exported structures need to be freed by the caller.



void cpe_generator_export (const struct cpe_generator *generator, xmlTextWriterPtr writer)
 Exporting function for CPE generator - information of XML document.
Get functions

Functions for getting attributes from CVE model structures.

Return value is pointer to structure's member. Do not free unless you null the pointer in the structure. Use remove function otherwise.



const char * cpe_generator_get_product_name (const struct cpe_generator *item)
 cpe_generator functions to get product name
const char * cpe_generator_get_product_version (const struct cpe_generator *item)
 cpe_generator functions to get product version
const char * cpe_generator_get_schema_version (const struct cpe_generator *item)
 cpe_generator functions to get document schema version
const char * cpe_generator_get_timestamp (const struct cpe_generator *item)
 cpe_generator functions to get timestamp from generator
struct cpe_generatorcpe_dict_model_get_generator (const struct cpe_dict_model *item)
 cpe_dict_model functions to get generator from CPE dictionary model
Free functions

Destructors of CVE model structures.

Functions free structures with all members recursively. For simple deletion of entity use remove functions.



void cpe_generator_free (struct cpe_generator *generator)
New functions

Constructors of CVE model structures.

Free function returns new empty allocated structure. If returns non NULL it need to be freed by the caller.



struct cpe_generatorcpe_generator_new (void)
Set functions

Set functions assign values to members of structures except lists.

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



bool cpe_generator_set_product_name (struct cpe_generator *generator, const char *new_product_name)
bool cpe_generator_set_product_version (struct cpe_generator *generator, const char *new_product_version)
bool cpe_generator_set_schema_version (struct cpe_generator *generator, const char *new_schema_version)
bool cpe_generator_set_timestamp (struct cpe_generator *generator, const char *new_timestamp)

Detailed Description

Structure with information about document.


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

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