oval_variable Struct Reference
[OVALDEF]

An oval variable resolves an oval_value stream which specifies constraints for oval_objects and oval_states. More...

#include <oval_definitions.h>

Public Member Functions

struct oval_variableoval_variable_new (struct oval_definition_model *model, const char *id, oval_variable_type_t type)
 Construct new instance of oval_variable.
struct oval_variableoval_variable_clone (struct oval_definition_model *new_model, struct oval_variable *old_variable)
 Clone instance of oval_variable and add it to the specified oval_definition_model.
void oval_variable_free (struct oval_variable *)
 Free instance of oval_variable.
Setters



void oval_variable_set_comment (struct oval_variable *, char *comment)
 set attribute oval_variable->comment.
void oval_variable_set_version (struct oval_variable *, int version)
 set attribute oval_variable->version.
void oval_variable_set_deprecated (struct oval_variable *, bool deprecated)
 set attribute oval_variable->deprecated.
void oval_variable_set_datatype (struct oval_variable *, oval_datatype_t)
 set attribute oval_variable->datatype.
void oval_variable_add_value (struct oval_variable *, struct oval_value *)
 Append an instance of Oval_value to the attribute Oval_constant->values.
void oval_variable_set_component (struct oval_variable *, struct oval_component *component)
 Bind an instance of Oval_component to the attribute Oval_local->component.
Getters



char * oval_variable_get_id (struct oval_variable *)
 Returns attribute oval_variable->id.
char * oval_variable_get_comment (struct oval_variable *)
 Returns attribute oval_variable->comment.
int oval_variable_get_version (struct oval_variable *)
 Returns attribute oval_variable->version.
bool oval_variable_get_deprecated (struct oval_variable *)
 Returns attribute oval_variable->deprecated.
oval_variable_type_t oval_variable_get_type (struct oval_variable *)
 Returns attribute oval_variable->type.
oval_datatype_t oval_variable_get_datatype (struct oval_variable *)
 Returns attribute oval_variable->datatype.
struct oval_value_iteratoroval_variable_get_values (struct oval_variable *)
 Returns attribute Oval_external/Oval_constant->values.
struct oval_componentoval_variable_get_component (struct oval_variable *)
 Returns attribute Oval_local->component.
const char * oval_component_type_get_text (oval_component_type_t type)
 Returns attribute Oval_component_type->text.
bool oval_variable_is_locked (struct oval_variable *variable)
 return true if the variable instance is locked.
Evaluators



bool oval_variable_is_valid (struct oval_variable *)
 Returns true if oval_variable is valid.

Data Fields

struct oval_definition_modelmodel
char * id
char * comment
int version
int deprecated
oval_variable_type_t type
oval_datatype_t datatype
oval_syschar_collection_flag_t flag
struct oval_collectionvalues

Detailed Description

An oval variable resolves an oval_value stream which specifies constraints for oval_objects and oval_states.


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

Generated on 14 Jul 2010 for Open SCAP Library by  doxygen 1.6.1