Open SCAP Library
 All Data Structures Files Functions Variables Typedefs Enumerations Enumerator Macros Groups Pages
Public Member Functions | Data Fields
oval_definition_model Struct Reference

Detailed Description

Oval definition model.

#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_source (struct oscap_source *source)
 Import the content of the oscap_source into the oval_definition_model. More...
 
struct oval_definition_modeloval_definition_model_import (const char *file)
 Import the content from the file into an oval_definition_model. More...
 
int oval_definition_model_merge (struct oval_definition_model *model, const char *file)
 Merge the content from the file with specified oval_definition_model. More...
 
struct oval_definition_modeloval_definition_model_clone (struct oval_definition_model *)
 Copy an oval_definition_model. More...
 
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. More...
 
Getters
struct oval_definitionoval_definition_model_get_definition (struct oval_definition_model *, const char *id)
 Returns the appended oval_definition having the specified id. More...
 
struct oval_testoval_definition_model_get_test (struct oval_definition_model *model, const char *id)
 Get oval test by ID. More...
 
struct oval_objectoval_definition_model_get_object (struct oval_definition_model *model, const char *id)
 Get OVAL object by ID. More...
 
struct oval_stateoval_definition_model_get_state (struct oval_definition_model *model, const char *id)
 Get OVAL state by ID. More...
 
struct oval_variableoval_definition_model_get_variable (struct oval_definition_model *model, const char *id)
 Get OVAL variable by ID. More...
 
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. More...
 
struct oval_object_iteratoroval_definition_model_get_objects (struct oval_definition_model *model)
 Get OVAL objects. More...
 
struct oval_state_iteratoroval_definition_model_get_states (struct oval_definition_model *model)
 Get OVAL states. More...
 
struct oval_variable_iteratoroval_definition_model_get_variables (struct oval_definition_model *model)
 Get OVAL variables. More...
 
const char * oval_definition_model_supported (void)
 Get supported version of OVAL XML. More...
 
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. More...
 

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
 
char * schema
 
struct oval_string_map * vardef_map
 look-up table for efficient processing
 

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