cpe_lang_model Struct Reference
[CPE Language]

CPE platform specification. More...

#include <cpelang_priv.h>

Data Fields

struct xml_metadata xml
char * ns_href
char * ns_prefix
struct oscap_listplatforms
struct oscap_htableitem

Related Functions

(Note that these are not member functions.)



struct cpe_lang_modelcpe_lang_model_parse_xml (const struct oscap_import_source *source)
 Function for parsing XML CPE language file.
struct cpe_lang_modelcpe_lang_model_parse (xmlTextReaderPtr reader)
 Parse function for CPE Lang model.
void cpe_lang_model_export_xml (struct cpe_lang_model *spec, struct oscap_export_target *target)
 Function for export CPE language model to XML.
void cpe_lang_export (const struct cpe_lang_model *spec, xmlTextWriterPtr writer)
 Function for export CPE language top element.
struct cpe_lang_modelcpe_lang_model_import (const struct oscap_import_source *source)
 Load CPE language model from a XML document.
void cpe_lang_model_export (struct cpe_lang_model *spec, struct oscap_export_target *target)
 Write the lang_model to a file.
const char * cpe_lang_model_get_ns_href (const struct cpe_lang_model *item)
 cpe_lang_model function to get namespace href
const char * cpe_lang_model_get_ns_prefix (const struct cpe_lang_model *item)
 cpe_lang_model function to get namespace prefix
struct cpe_platform_iteratorcpe_lang_model_get_platforms (const struct cpe_lang_model *item)
 cpe_lang_model function to get CPE platforms
struct cpe_platformcpe_lang_model_get_item (const struct cpe_lang_model *item, const char *key)
 cpe_lang_model function to get CPE items
bool cpe_lang_model_add_item (struct cpe_lang_model *lang, struct cpe_platform *platform)
 Add platform to CPE lang model.
struct cpe_lang_modelcpe_lang_model_new (void)
 Constructor of CPE Language model.
void cpe_lang_model_free (struct cpe_lang_model *platformspec)
 Free function of CPE test expression.
bool cpe_lang_model_set_ns_href (struct cpe_lang_model *model, const char *new_href)
 Set / add functions.
bool cpe_lang_model_set_ns_prefix (struct cpe_lang_model *model, const char *new_prefix)

Detailed Description

CPE platform specification.


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

Generated on 12 Nov 2009 for Open SCAP Library by  doxygen 1.6.1