Characteristics bound to an Oval_object. More...
#include <oval_system_characteristics.h>
Public Member Functions | |
struct oval_syschar * | oval_syschar_new (struct oval_syschar_model *, struct oval_object *) |
struct oval_syschar * | oval_syschar_clone (struct oval_syschar_model *new_model, struct oval_syschar *old_syschar) |
void | oval_syschar_free (struct oval_syschar *) |
Setters | |
void | oval_syschar_add_variable_binding (struct oval_syschar *, struct oval_variable_binding *) |
void | oval_syschar_set_flag (struct oval_syschar *model, oval_syschar_collection_flag_t flag) |
void | oval_syschar_set_object (struct oval_syschar *, struct oval_object *) |
void | oval_syschar_add_sysdata (struct oval_syschar *, struct oval_sysdata *) |
void | oval_syschar_add_message (struct oval_syschar *syschar, struct oval_message *message) |
Getters | |
oval_syschar_collection_flag_t | oval_syschar_get_flag (struct oval_syschar *) |
Get system characteristic flag. | |
struct oval_message_iterator * | oval_syschar_get_messages (struct oval_syschar *) |
Get messages bound to this system characteristic. | |
struct oval_object * | oval_syschar_get_object (struct oval_syschar *) |
Get object associated with this system characteristic. | |
struct oval_variable_binding_iterator * | oval_syschar_get_variable_bindings (struct oval_syschar *) |
Get system characteristic variable bindings. | |
struct oval_sysdata_iterator * | oval_syschar_get_sysdata (struct oval_syschar *) |
Get system characteristic data. | |
bool | oval_syschar_is_locked (struct oval_syschar *syschar) |
Return true if the syschar instance is locked. | |
Evaluators | |
bool | oval_syschar_is_valid (struct oval_syschar *syschar) |
Return true if the syschar instance is valid An oval_syschar is valid if all the following are true
| |
Data Fields | |
struct oval_syschar_model * | model |
oval_syschar_collection_flag_t | flag |
struct oval_collection * | messages |
struct oval_object * | object |
struct oval_collection * | variable_bindings |
struct oval_collection * | sysdata |
Characteristics bound to an Oval_object.
Instances of Oval_syschar provide relate an Oval_object and Oval_sysdata instances.
If an OVAL Object does not exist on the system, then an object is still provided but with the flag attribute set to 'does not exist' and with no reference child elements. This shows that the object was looked for but not found on the system. If no object element is written in this case, users of the system characteristics file will not know whether the object was not found or no attempt was made to collect it.
The flag attribute holds information regarding the outcome of the data collection. For example, if there was an error looking for items that match the object specification, then the flag would be 'error'. Please refer to the description of FlagEnumeration for details about the different flag values.