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

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

#include <oval_definitions.h>

Public Member Functions

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

Detailed Description

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


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