OVAL System Characteristics model. More...
#include <oval_system_characteristics.h>
Public Member Functions | |
| struct oval_syschar_model * | oval_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_model * | oval_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_model * | oval_syschar_model_get_definition_model (struct oval_syschar_model *model) |
| Return related oval_definition_model from an oval_syschar_model. | |
| struct oval_syschar_iterator * | oval_syschar_model_get_syschars (struct oval_syschar_model *model) |
| Return an iterator over the oval_sychar objects persisted by this model. | |
| struct oval_sysinfo * | oval_syschar_model_get_sysinfo (struct oval_syschar_model *model) |
| Return default sysinfo bound to syschar model. | |
| struct oval_syschar * | oval_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_sysdata * | oval_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
| |
Data Fields | |
| struct oval_sysinfo * | sysinfo |
| struct oval_definition_model * | definition_model |
| struct oval_string_map * | syschar_map |
| struct oval_string_map * | sysdata_map |
| struct oval_string_map * | variable_binding_map |
| bool | is_locked |
| char * | schema |
OVAL System Characteristics model.
Object model holds OVAL system characteristics structure instances.
1.6.1