Oval_criteria_node
[OVAL Definitions interface]

Specify Oval_definition_dependencies. More...

Data Structures

struct  oval_criteria_node
 Handle: Oval_criteria_node. More...
struct  oval_criteria_node_iterator
 Handle: Oval_criteria_node_iterator. More...

Modules

 Setters
 

Oval_criteria_node set methods.


 Getters
 

Oval_criteria_node get methods.


 Iterators
 

Oval_criteria_node iterator methods.


 Evaluators
 

Oval_criteria_node evaluator methods


Functions

struct oval_criteria_nodeoval_criteria_node_new (struct oval_definition_model *, oval_criteria_node_type_t type)
 Construct an instance of Oval_criteria_node.
struct oval_criteria_nodeoval_criteria_node_clone (struct oval_definition_model *new_model, struct oval_criteria_node *old_node)
 Clone an instance of Oval_criteria_node.
void oval_criteria_node_free (struct oval_criteria_node *)
 Free an instance of Oval_criteria_node.

Detailed Description

Specify Oval_definition_dependencies.

An Oval_criteria_node specifies Oval_definition dependencies as follows:


Function Documentation

struct oval_criteria_node* oval_criteria_node_new ( struct oval_definition_model ,
oval_criteria_node_type_t  type 
) [read]

Construct an instance of Oval_criteria_node.

Initialized attribute values are:

  • type initialized to value of type parameter.
  • negate -- initialized to false
  • comment -- initialized to NULL
  • If type == OVAL_NODETYPE_CRITERIA (Oval_criteria):
    • operator -- initialized to OVAL_OPERATOR_UNKNOWN
    • subnodes -- initialized to empty iterator
  • If type == OVAL_NODETYPE_CRITERION (Oval_criterion):
    • test -- initialized to NULL
  • If type == OVAL_NODETYPE_EXTENDDEF (Oval_extends):
    • definition -- initialized to NULL Careful ! Calling this function with inappropriate number of arguments will cause undefined behavior !

If the type parameter is entered as OVAL_NODETYPE_UNKNOWN, no instance shall be constructed and the method shall return NULL.

Parameters:
type - the required node type.

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