cpe_lang_model Struct Reference
[CPE Language]

CPE platform specification. More...

#include <cpelang_priv.h>

Public Member Functions

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.
struct cpe_lang_modelcpe_lang_model_import (const char *file)
 Load CPE language model from a XML document.
void cpe_lang_model_export (const struct cpe_lang_model *spec, const char *file)
 Write the lang_model to a 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.



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 platforms
struct xml_metadata_iteratorcpe_lang_model_get_xmlns (const struct cpe_lang_model *item)
 cpe_lang_model function to get xmlns attribute
Setters

Get XML namespace from CPE lang model

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



bool cpe_lang_model_add_platform (struct cpe_lang_model *lang, struct cpe_platform *platform)
 Add platform to CPE lang model.
bool cpe_lang_model_add_xml (struct cpe_lang_model *lang, struct xml_metadata *xml)
 Add xml metadata to CPE lang model.
bool cpe_lang_model_set_ns_prefix (struct cpe_lang_model *model, const char *new_prefix)
 Set ns_prefix to CPE lang model.
Evaluators



const char * cpe_lang_model_supported (void)
 Get supported version of CPE language XML.

Data Fields

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

Detailed Description

CPE platform specification.


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

Generated on 14 Jul 2010 for Open SCAP Library by  doxygen 1.6.1