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

Detailed Description

OVAL variable component Oval_component instances specify evaluation constraints on local variables (see oval_variable_get_type).

#include <oval_definitions.h>

Public Member Functions

struct oval_componentoval_component_new (struct oval_definition_model *, oval_component_type_t type)
 Construct new intance of Oval_component. More...
 
struct oval_componentoval_component_clone (struct oval_definition_model *new_model, struct oval_component *old_component)
 Clone instance of Oval_component. More...
 
void oval_component_free (struct oval_component *)
 Free instance of Oval_component.
 
Setters
void oval_component_set_type (struct oval_component *component, oval_component_type_t type)
 Set type of component Oval_component->type.
 
void oval_component_set_object (struct oval_component *, struct oval_object *object)
 set attribute Oval_component_object->object. More...
 
void oval_component_set_item_field (struct oval_component *, char *)
 set attribute Oval_component_object->item_field.
 
void oval_component_set_record_field (struct oval_component *, char *)
 set attribute Oval_component_object->record_field.
 
void oval_component_set_variable (struct oval_component *, struct oval_variable *variable)
 set attribute Oval_component_object->variable. More...
 
void oval_component_add_function_component (struct oval_component *, struct oval_component *)
 
void oval_component_set_arithmetic_operation (struct oval_component *, oval_arithmetic_operation_t)
 
void oval_component_set_prefix (struct oval_component *, char *)
 
void oval_component_set_suffix (struct oval_component *, char *)
 
void oval_component_set_split_delimiter (struct oval_component *, char *)
 
void oval_component_set_glob_to_regex_glob_noescape (struct oval_component *, bool)
 
void oval_component_set_substring_start (struct oval_component *, int)
 
void oval_component_set_substring_length (struct oval_component *, int)
 
void oval_component_set_timedif_format_1 (struct oval_component *, oval_datetime_format_t)
 
void oval_component_set_timedif_format_2 (struct oval_component *, oval_datetime_format_t)
 
void oval_component_set_regex_pattern (struct oval_component *, char *)
 
void oval_component_set_literal_value (struct oval_component *, struct oval_value *)
 
Getters
oval_component_type_t oval_component_get_type (struct oval_component *)
 Returns attribute Oval_component->type.
 
struct oval_objectoval_component_get_object (struct oval_component *)
 Returns attribute Oval_component_object->object. More...
 
char * oval_component_get_item_field (struct oval_component *)
 Returns attribute Oval_component_object->item_field. More...
 
char * oval_component_get_record_field (struct oval_component *)
 Returns attribute Oval_component_object->record_field. More...
 
struct oval_variableoval_component_get_variable (struct oval_component *)
 Returns attribute Oval_component_variable->variable. More...
 
struct oval_component_iteratoroval_component_get_function_components (struct oval_component *)
 Returns attribute Oval_function->components. More...
 
oval_arithmetic_operation_t oval_component_get_arithmetic_operation (struct oval_component *)
 Returns attribute Oval_function_ARITHMETIC->arithmetic_operation. More...
 
char * oval_component_get_prefix (struct oval_component *)
 Returns attribute Oval_function_BEGIN->prefix. More...
 
char * oval_component_get_suffix (struct oval_component *)
 Returns attribute Oval_function_END->suffix. More...
 
char * oval_component_get_split_delimiter (struct oval_component *)
 Returns attribute Oval_function_SPLIT->delimiter. More...
 
bool oval_component_get_glob_to_regex_glob_noescape (struct oval_component *)
 Returns attribute Oval_function_GLOB_TO_REGEX->glob_noescape. More...
 
int oval_component_get_substring_start (struct oval_component *)
 Returns attribute Oval_function_SUBSTRING->start. More...
 
int oval_component_get_substring_length (struct oval_component *)
 Returns attribute Oval_function_SUBSTRING->length. More...
 
oval_datetime_format_t oval_component_get_timedif_format_1 (struct oval_component *)
 Returns attribute Oval_function_TIMEDIF->timedif_format_1. More...
 
oval_datetime_format_t oval_component_get_timedif_format_2 (struct oval_component *)
 Returns attribute Oval_function_TIMEDIF->timedif_format_2. More...
 
char * oval_component_get_regex_pattern (struct oval_component *)
 Returns attribute Oval_function_REGEX_CAPTURE->pattern. More...
 
struct oval_valueoval_component_get_literal_value (struct oval_component *)
 Returns attribute Oval_literal->literal. More...
 

Data Fields

struct oval_definition_modelmodel
 
oval_component_type_t type
 

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