Oval_component
[OVAL Definitions interface]

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

Data Structures

struct  oval_component
 OVAL variable component. More...

Modules

 setters
 

Oval_component set methods.


 Getters
 

Oval_component get methods.


 Iterators
 

Oval_component iterator methods.


 Evaluators
 

Oval_component evaluator methods


Functions

struct oval_componentoval_component_new (struct oval_definition_model *, oval_component_type_t type)
 Construct new intance of Oval_component.
struct oval_componentoval_component_clone (struct oval_definition_model *new_model, struct oval_component *old_component)
 Clone instance of Oval_component.
void oval_component_free (struct oval_component *)
 Free instance of Oval_component.

Detailed Description

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


Function Documentation

struct oval_component* oval_component_new ( struct oval_definition_model ,
oval_component_type_t  type 
) [read]

Construct new intance of Oval_component.

Attribute values shall be initialized:

  • type -- initialized to the value of the type parameter.
  • If type == OVAL_FUNCTION_CONCAT
    • components -- initialized to empty iterator
  • If type == OVAL_FUNCTION_ESCAPE_REGEX
    • components -- initialized to empty iterator
  • If type == OVAL_FUNCTION_ARITHMETIC
    • arithmetic_operation -- initialized to OVAL_ARITHMETIC_UNKNOWN
    • components -- initialized to empty iterator
  • If type == OVAL_FUNCTION_BEGIN
    • prefix -- initialized to NULL
    • components -- initialized to empty iterator
  • If type == OVAL_FUNCTION_END
    • suffix -- initialized to NULL
    • components -- initialized to empty iterator
  • If type == OVAL_FUNCTION_SPLIT
    • delimiter -- initialized to NULL
    • components -- initialized to empty iterator
  • If type == OVAL_FUNCTION_SUBSTRING
    • start, length -- initialized to zero
    • components -- initialized to empty iterator
  • If type == OVAL_FUNCTION_TIMEDIF
    • timedif_format_1, timedif_format_2 -- initialized to OVAL_DATETIME_UNKNOWN
    • components -- initialized to empty iterator
  • If type == OVAL_FUNCTION_REGEX_CAPTURE
    • pattern -- initialized to NULL
    • components -- initialized to empty iterator
  • If type == OVAL_COMPONENT_LITERAL
    • literal -- initialized to NULL
  • If type == OVAL_COMPONENT_OBJECTREF
    • object -- initialized to NULL
    • object_field -- initialized to NULL
  • If type == OVAL_COMPONENT_VARREF
    • variable -- initialized to NULL

This method shall not construct a new instance of Oval_object and shall return NULL if the type parameter is entered as OVAL_COMPONENT_UNKNOWN.

Parameters:
type - the required component type.

Generated on 4 Jan 2010 for Open SCAP Library by  doxygen 1.6.1