oval_syschar_model Struct Reference
[OVALSYS]

OVAL System Characteristics model. More...

#include <oval_system_characteristics.h>

Public Member Functions

struct oval_syschar_modeloval_syschar_model_new (struct oval_definition_model *definition_model)
 Create new oval_syschar_model.
int oval_syschar_model_import (struct oval_syschar_model *model, const char *file)
 Import the content from the file into an oval_syschar_model.
struct oval_syschar_modeloval_syschar_model_clone (struct oval_syschar_model *)
 Copy an oval_syschar_model.
int oval_syschar_model_export (struct oval_syschar_model *, const char *file)
 Export system characteristics into file.
void oval_syschar_model_free (struct oval_syschar_model *model)
 Free memory allocated to a specified syschar model.
Setters



void oval_syschar_model_bind_variable_model (struct oval_syschar_model *, struct oval_variable_model *)
 Bind a variable model to the definitions bound to the syschar model.
void oval_syschar_model_add_syschar (struct oval_syschar_model *model, struct oval_syschar *syschar)
void oval_syschar_model_add_sysdata (struct oval_syschar_model *model, struct oval_sysdata *sysdata)
void oval_syschar_model_set_sysinfo (struct oval_syschar_model *model, struct oval_sysinfo *sysinfo)
void oval_syschar_model_add_variable_binding (struct oval_syschar_model *model, struct oval_variable_binding *binding)
void oval_syschar_model_lock (struct oval_syschar_model *syschar_model)
 Lock the syschar_model instance.
Getters



struct oval_definition_modeloval_syschar_model_get_definition_model (struct oval_syschar_model *model)
 Return related oval_definition_model from an oval_syschar_model.
struct oval_syschar_iteratoroval_syschar_model_get_syschars (struct oval_syschar_model *model)
 Return an iterator over the oval_sychar objects persisted by this model.
struct oval_sysinfooval_syschar_model_get_sysinfo (struct oval_syschar_model *model)
 Return default sysinfo bound to syschar model.
struct oval_syscharoval_syschar_model_get_syschar (struct oval_syschar_model *model, const char *object_id)
 Return the oval_syschar bound to a specified object_id.
int oval_syschar_model_compute_variable (struct oval_syschar_model *, struct oval_variable *)
 Get the oval_values bound to a specified variable.
struct oval_sysdataoval_syschar_model_get_sysdata (struct oval_syschar_model *, const char *)
bool oval_syschar_model_is_locked (struct oval_syschar_model *syschar_model)
 Return true if the syschar_model instance is locked.
Evaluators



bool oval_syschar_model_is_valid (struct oval_syschar_model *syschar_model)
 Return true if the syschar_model instance is valid An oval_syschar_model is valid if all the following are true

  • The sysinfo attribute is valid
  • The associated oval_definition_model is valid
  • All included syschars are valid
  • All included variable_bindings are valid.

Data Fields

struct oval_sysinfosysinfo
struct oval_definition_modeldefinition_model
struct oval_string_mapsyschar_map
struct oval_string_mapsysdata_map
struct oval_string_mapvariable_binding_map
bool is_locked
char * schema

Detailed Description

OVAL System Characteristics model.

Object model holds OVAL system characteristics structure instances.


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