xccdf_benchmark Struct Reference
[XCCDFXCCDF Benchmark]

XCCDF Benchmark. More...

#include <xccdf.h>

Public Member Functions

struct xccdf_benchmarkxccdf_benchmark_parse_xml (const char *filename)
 Create a new benmchmark from a benchmark XML file.
const char * xccdf_benchmark_get_id (const struct xccdf_benchmark *benchmark)
bool xccdf_benchmark_get_resolved (const struct xccdf_benchmark *benchmark)
struct oscap_text_iteratorxccdf_benchmark_get_title (const struct xccdf_benchmark *benchmark)
struct oscap_text_iteratorxccdf_benchmark_get_description (const struct xccdf_benchmark *benchmark)
const char * xccdf_benchmark_get_version (const struct xccdf_benchmark *benchmark)
const char * xccdf_benchmark_get_style (const struct xccdf_benchmark *benchmark)
const char * xccdf_benchmark_get_style_href (const struct xccdf_benchmark *benchmark)
struct oscap_text_iteratorxccdf_benchmark_get_front_matter (const struct xccdf_benchmark *benchmark)
struct oscap_text_iteratorxccdf_benchmark_get_rear_matter (const struct xccdf_benchmark *benchmark)
const char * xccdf_benchmark_get_metadata (const struct xccdf_benchmark *benchmark)
struct xccdf_status_iteratorxccdf_benchmark_get_statuses (const struct xccdf_benchmark *benchmark)
struct xccdf_reference_iteratorxccdf_benchmark_get_references (const struct xccdf_benchmark *benchmark)
struct oscap_string_iteratorxccdf_benchmark_get_platforms (const struct xccdf_benchmark *benchmark)
xccdf_status_type_t xccdf_benchmark_get_status_current (const struct xccdf_benchmark *benchmark)
void xccdf_benchmark_free (struct xccdf_benchmark *benchmark)
struct xccdf_itemxccdf_benchmark_to_item (struct xccdf_benchmark *item)
struct xccdf_result_iteratorxccdf_benchmark_get_results (const struct xccdf_benchmark *bench)
bool xccdf_benchmark_add_result (struct xccdf_benchmark *bench, struct xccdf_result *result)
bool xccdf_benchmark_add_description (struct xccdf_benchmark *item, struct oscap_text *newval)
bool xccdf_benchmark_add_platform (struct xccdf_benchmark *item, const char *newval)
bool xccdf_benchmark_add_reference (struct xccdf_benchmark *item, struct xccdf_reference *newval)
bool xccdf_benchmark_add_status (struct xccdf_benchmark *item, struct xccdf_status *newval)
bool xccdf_benchmark_add_title (struct xccdf_benchmark *item, struct oscap_text *newval)
const char * xccdf_benchmark_get_plain_text (const struct xccdf_benchmark *benchmark, const char *id)
 Get a plain text by ID.
struct xccdf_itemxccdf_benchmark_get_item (const struct xccdf_benchmark *benchmark, const char *id)
 Get benchmark item by ID.
struct xccdf_notice_iteratorxccdf_benchmark_get_notices (const struct xccdf_benchmark *benchmark)
 Get an iterator to the benchmark legal notices.
struct xccdf_model_iteratorxccdf_benchmark_get_models (const struct xccdf_benchmark *benchmark)
 Get an iterator to the benchmark scoring models.
struct xccdf_profile_iteratorxccdf_benchmark_get_profiles (const struct xccdf_benchmark *benchmark)
 Get an iterator to the benchmark XCCDF profiles.
struct xccdf_item_iteratorxccdf_benchmark_get_content (const struct xccdf_benchmark *benchmark)
 Get an iterator to the bencmark content.
const char * xccdf_benchmark_supported (void)
 Get supported version of XCCDF XML.
bool xccdf_benchmark_set_id (struct xccdf_benchmark *item, const char *newval)
bool xccdf_benchmark_set_version (struct xccdf_benchmark *item, const char *newval)
bool xccdf_benchmark_set_version_time (struct xccdf_benchmark *item, time_t newval)
bool xccdf_benchmark_set_version_update (struct xccdf_benchmark *item, const char *newval)
struct xccdf_warning_iteratorxccdf_benchmark_get_warnings (const struct xccdf_benchmark *benchmark)
const char * xccdf_benchmark_get_version_update (const struct xccdf_benchmark *benchmark)
time_t xccdf_benchmark_get_version_time (const struct xccdf_benchmark *benchmark)
struct xccdf_benchmarkxccdf_benchmark_create (const char *id)
 Create a new benchmark from a benchmark XML file.

Detailed Description

XCCDF Benchmark.


Member Function Documentation

bool xccdf_benchmark_add_description ( struct xccdf_benchmark item,
struct oscap_text newval 
)
bool xccdf_benchmark_add_platform ( struct xccdf_benchmark item,
const char *  newval 
)
bool xccdf_benchmark_add_reference ( struct xccdf_benchmark item,
struct xccdf_reference newval 
)
bool xccdf_benchmark_add_result ( struct xccdf_benchmark bench,
struct xccdf_result result 
)
bool xccdf_benchmark_add_status ( struct xccdf_benchmark item,
struct xccdf_status newval 
)
bool xccdf_benchmark_add_title ( struct xccdf_benchmark item,
struct oscap_text newval 
)
struct xccdf_benchmark * xccdf_benchmark_create ( const char *  id  )  [read]

Create a new benchmark from a benchmark XML file.

Parameters:
id the benchmark identifier.
Returns:
Pointer to the new benchmark.
void xccdf_benchmark_free ( struct xccdf_benchmark benchmark  ) 
struct xccdf_item_iterator * xccdf_benchmark_get_content ( const struct xccdf_benchmark benchmark  )  [read]

Get an iterator to the bencmark content.

The items are either groups or rules.

See also:
xccdf_rule
xccdf_group
xccdf_item
struct oscap_text_iterator * xccdf_benchmark_get_description ( const struct xccdf_benchmark benchmark  )  [read]
struct oscap_text_iterator * xccdf_benchmark_get_front_matter ( const struct xccdf_benchmark benchmark  )  [read]
const char * xccdf_benchmark_get_id ( const struct xccdf_benchmark benchmark  ) 
struct xccdf_item * xccdf_benchmark_get_item ( const struct xccdf_benchmark benchmark,
const char *  id 
) [read]

Get benchmark item by ID.

Parameters:
item ID
Returns:
Item with given ID
Return values:
NULL if no such item exists
const char * xccdf_benchmark_get_metadata ( const struct xccdf_benchmark benchmark  ) 
struct xccdf_model_iterator * xccdf_benchmark_get_models ( const struct xccdf_benchmark benchmark  )  [read]

Get an iterator to the benchmark scoring models.

See also:
xccdf_model
struct xccdf_notice_iterator * xccdf_benchmark_get_notices ( const struct xccdf_benchmark benchmark  )  [read]

Get an iterator to the benchmark legal notices.

See also:
xccdf_notice
const char * xccdf_benchmark_get_plain_text ( const struct xccdf_benchmark benchmark,
const char *  id 
)

Get a plain text by ID.

Parameters:
id ID of the plain text to get.
Returns:
Plain text content.
Return values:
NULL if given plain text does not exist
struct oscap_string_iterator * xccdf_benchmark_get_platforms ( const struct xccdf_benchmark benchmark  )  [read]
struct xccdf_profile_iterator * xccdf_benchmark_get_profiles ( const struct xccdf_benchmark benchmark  )  [read]

Get an iterator to the benchmark XCCDF profiles.

See also:
xccdf_profile
struct oscap_text_iterator * xccdf_benchmark_get_rear_matter ( const struct xccdf_benchmark benchmark  )  [read]
struct xccdf_reference_iterator * xccdf_benchmark_get_references ( const struct xccdf_benchmark benchmark  )  [read]
bool xccdf_benchmark_get_resolved ( const struct xccdf_benchmark benchmark  ) 
struct xccdf_result_iterator * xccdf_benchmark_get_results ( const struct xccdf_benchmark bench  )  [read]
xccdf_status_type_t xccdf_benchmark_get_status_current ( const struct xccdf_benchmark benchmark  ) 
struct xccdf_status_iterator * xccdf_benchmark_get_statuses ( const struct xccdf_benchmark benchmark  )  [read]
const char * xccdf_benchmark_get_style ( const struct xccdf_benchmark benchmark  ) 
const char * xccdf_benchmark_get_style_href ( const struct xccdf_benchmark benchmark  ) 
struct oscap_text_iterator * xccdf_benchmark_get_title ( const struct xccdf_benchmark benchmark  )  [read]
const char * xccdf_benchmark_get_version ( const struct xccdf_benchmark benchmark  ) 
time_t xccdf_benchmark_get_version_time ( const struct xccdf_benchmark benchmark  ) 
const char * xccdf_benchmark_get_version_update ( const struct xccdf_benchmark benchmark  ) 
struct xccdf_warning_iterator * xccdf_benchmark_get_warnings ( const struct xccdf_benchmark benchmark  )  [read]
struct xccdf_benchmark * xccdf_benchmark_parse_xml ( const char *  filename  )  [read]

Create a new benmchmark from a benchmark XML file.

Parameters:
filename Name of the file to load the contents from.
Returns:
Pointer to the new benchmark.
Return values:
NULL on failure
bool xccdf_benchmark_set_id ( struct xccdf_benchmark item,
const char *  newval 
)
bool xccdf_benchmark_set_version ( struct xccdf_benchmark item,
const char *  newval 
)
bool xccdf_benchmark_set_version_time ( struct xccdf_benchmark item,
time_t  newval 
)
bool xccdf_benchmark_set_version_update ( struct xccdf_benchmark item,
const char *  newval 
)
const char * xccdf_benchmark_supported ( void   ) 

Get supported version of XCCDF XML.

Returns:
version of XML file format
struct xccdf_item * xccdf_benchmark_to_item ( struct xccdf_benchmark item  )  [read]

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

Generated on 24 Mar 2010 for Open SCAP Library by  doxygen 1.6.1