Oval_variable
[OVAL Definitions interface]

An oval variable resolves an Oval_value stream which specifies constraints for Oval_objects and Oval_states. More...

Data Structures

struct  oval_variable
 Handle: Oval_variable. More...
struct  oval_variable_iterator
 Handle: Oval_variable iterator. More...

Modules

 Setters
 

Oval_variable set methods.


 Getters
 

Oval_variable get methods.


 Iterators
 

Oval_variable iterator methods.


 Evaluators
 

Oval_variable evaluator methods


Functions

struct oval_variableoval_variable_new (struct oval_definition_model *model, char *id, oval_variable_type_t type)
 Construct new instance of Oval_variable.
void oval_variable_free (struct oval_variable *)
 Free instance of Oval_variable.

Detailed Description

An oval variable resolves an Oval_value stream which specifies constraints for Oval_objects and Oval_states.


Function Documentation

struct oval_variable* oval_variable_new ( struct oval_definition_model model,
char *  id,
oval_variable_type_t  type 
) [read]

Construct new instance of Oval_variable.

Attribute values shall be initialized:

  • id -- initialized to a copy of the id parameter
  • type -- initialized to the type parameter
  • version -- initialized to zero
  • deprecated -- initialized to false
  • comment -- initialized to NULL
  • datatype -- initialzed to OVAL_DATATYPE_UNKNOWN
  • If type == OVAL_VARIABLE_CONSTANT
    • values -- initialized to empty iterator
  • If type == OVAL_VARIABLE_EXTERNAL
    • values -- initialized to NULL
  • If type == OVAL_VARIABLE_LOCAL
    • component -- initialized to NULL

This method shall not construct a new instance of Oval_variable and shall return NULL

  • if the text of the id parameter is not matched by the regular expression ^oval:[\.A-Za-z0-9_\-]+:var:[1-9][0-9]*$.
  • if the value of the type parameter is OVAL_VARIABLE_UNKNOWN.
Parameters:
id - (Not NULL) the text of the required variable id.
type - (Not OVAL_VARIABLE_UNKNOWN) the required type.

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