Open SCAP Library
Loading...
Searching...
No Matches
Public Member Functions | Data Fields
oval_variable_model Struct Reference

The OVAL variable model facilitates access to external variable value bindings used to to constrain the evaluation of OVAL objects. More...

#include <oval_types.h>

Collaboration diagram for oval_variable_model:
[legend]

Public Member Functions

OSCAP_API struct oval_variable_modeloval_variable_model_new (void)
 Create a new empty OVAL variable model.
 
OSCAP_API struct oval_variable_modeloval_variable_model_import_source (struct oscap_source *source)
 Import the content from the oscap_source into a new oval_variable_model.
 
OSCAP_API struct oval_variable_modeloval_variable_model_clone (struct oval_variable_model *)
 Clone an OVAL variable model.
 
OSCAP_API void oval_variable_model_free (struct oval_variable_model *)
 Free memory allocated to a specified oval_variable_model.
 
OSCAP_API int oval_variable_model_export (struct oval_variable_model *, const char *file)
 Export the specified oval_variable_model into file.
 
Setters
OSCAP_API void oval_variable_model_add (struct oval_variable_model *model, char *varid, const char *comment, oval_datatype_t datatype, char *value)
 Get the values bound to a specified external variable.
 
Getters
OSCAP_API struct oval_string_iteratoroval_variable_model_get_variable_ids (struct oval_variable_model *)
 Get all external variables managed by a specified oval_variable_model.
 
OSCAP_API bool oval_variable_model_has_variable (struct oval_variable_model *model, const char *id)
 Return true if variable with ID is present in variable model, false otherwise.
 
OSCAP_API oval_datatype_t oval_variable_model_get_datatype (struct oval_variable_model *, char *)
 Get a specified external variable datatype.
 
OSCAP_API const char * oval_variable_model_get_comment (struct oval_variable_model *, char *)
 Get a specified external variable comment.
 
OSCAP_API struct oval_value_iteratoroval_variable_model_get_values (struct oval_variable_model *, char *)
 Get the values bound to a specified external variable.
 

Data Fields

struct oval_generatorgenerator
 
struct oval_string_map * varmap
 

Detailed Description

The OVAL variable model facilitates access to external variable value bindings used to to constrain the evaluation of OVAL objects.


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