oval_definition_model Struct Reference
[OVALDEF]

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.
Setters



void 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.
void oval_definition_model_add_definition (struct oval_definition_model *, struct oval_definition *)
void oval_definition_model_add_test (struct oval_definition_model *, struct oval_test *)
void oval_definition_model_add_object (struct oval_definition_model *, struct oval_object *)
void oval_definition_model_add_state (struct oval_definition_model *, struct oval_state *)
void oval_definition_model_add_variable (struct oval_definition_model *, struct oval_variable *)
void oval_definition_model_lock (struct oval_definition_model *definition_model)
 Lock the definition_model instance.
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.
bool oval_definition_model_is_locked (struct oval_definition_model *definition_model)
 Return true if the definition_model instance is locked.
const char * oval_definition_model_supported (void)
 Get supported version of OVAL XML.
Evaluators



bool oval_definition_model_is_valid (struct oval_definition_model *definition_model)
 Return true if the definition_model instance is valid An oval_definition_model is valid if all the following are true

  • All included definitions are valid
  • All included tests are valid
  • All included objects are valid
  • All included states are valid
  • All included variables are valid.

Data Fields

struct oval_string_mapdefinition_map
struct oval_string_maptest_map
struct oval_string_mapobject_map
struct oval_string_mapstate_map
struct oval_string_mapvariable_map
bool is_locked
char * schema

Detailed Description

Oval definition model.


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