oval_definition_model Struct Reference
[OVAL Definitions]

Oval definition model. More...

#include <oval_definitions.h>

Public Member Functions

struct oval_definition_modeloval_definition_model_new (void)
 Create an empty oval_definition_model.
struct oval_definition_modeloval_definition_model_import (const char *file)
 Import the content from the file into an oval_definition_model.
int oval_definition_model_merge (struct oval_definition_model *model, const char *file)
 Merge the content from the file with specified oval_definition_model.
struct oval_definition_modeloval_definition_model_clone (struct oval_definition_model *)
 Copy an oval_definition_model.
int oval_definition_model_export (struct oval_definition_model *, const char *file)
 Export an oval_definition_model into file.
void oval_definition_model_free (struct oval_definition_model *model)
 Free OVAL object model and all binded variable models.
Setters



int oval_definition_model_bind_variable_model (struct oval_definition_model *, struct oval_variable_model *)
 Bind an oval_variable_model to the specified oval_definition_model.
Getters



struct oval_definitionoval_definition_model_get_definition (struct oval_definition_model *, const char *id)
 Returns the appended oval_definition having the specified id.
struct oval_testoval_definition_model_get_test (struct oval_definition_model *model, const char *id)
 Get oval test by ID.
struct oval_objectoval_definition_model_get_object (struct oval_definition_model *model, const char *id)
 Get OVAL object by ID.
struct oval_stateoval_definition_model_get_state (struct oval_definition_model *model, const char *id)
 Get OVAL state by ID.
struct oval_variableoval_definition_model_get_variable (struct oval_definition_model *model, const char *id)
 Get OVAL variable by ID.
struct oval_definition_iteratoroval_definition_model_get_definitions (struct oval_definition_model *model)
 Returns all appended oval_definition instances.
struct oval_test_iteratoroval_definition_model_get_tests (struct oval_definition_model *model)
 Get OVAL tests.
struct oval_object_iteratoroval_definition_model_get_objects (struct oval_definition_model *model)
 Get OVAL objects.
struct oval_state_iteratoroval_definition_model_get_states (struct oval_definition_model *model)
 Get OVAL states.
struct oval_variable_iteratoroval_definition_model_get_variables (struct oval_definition_model *model)
 Get OVAL variables.
const char * oval_definition_model_supported (void)
 Get supported version of OVAL XML.
struct
oval_variable_model_iterator
oval_definition_model_get_variable_models (struct oval_definition_model *)
 Return the list of variable models bound to the specified oval_definition_model.

Data Fields

struct oval_generatorgenerator
struct oval_string_map * definition_map
struct oval_string_map * test_map
struct oval_string_map * object_map
struct oval_string_map * state_map
struct oval_string_map * variable_map
struct oval_collectionbound_variable_models
xmlDoc * metadata_doc
char * schema

Detailed Description

Oval definition model.


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

Generated on 30 Mar 2012 for Open SCAP Library by  doxygen 1.6.1