Single platform representation in CPE language. More...
#include <cpelang_priv.h>
Public Member Functions | |
Parse functions | |
| struct cpe_platform * | cpe_platform_parse (xmlTextReaderPtr reader) |
| Parse CPE platform structure. | |
Export functions | |
| void | cpe_platform_export (const struct cpe_platform *platform, xmlTextWriterPtr writer) |
| Function for export CPE platform element. | |
Get functions | |
| const char * | cpe_platform_get_id (const struct cpe_platform *item) |
| cpe_platform functions to get id | |
| const char * | cpe_platform_get_remark (const struct cpe_platform *item) |
| cpe_platform functions to get remark | |
| struct oscap_title_iterator * | cpe_platform_get_titles (const struct cpe_platform *item) |
| cpe_platform functions to get titles | |
| struct cpe_testexpr * | cpe_platform_get_expr (const struct cpe_platform *item) |
| cpe_platform functions to get test expression | |
Add functions | |
| bool | cpe_platform_add_title (struct cpe_platform *platform, struct oscap_title *title) |
| Add title to platform. | |
New functions | |
| struct cpe_platform * | cpe_platform_new (void) |
| Constructor of CPE Platform. | |
Set functions | |
| bool | cpe_platform_set_id (struct cpe_platform *platform, const char *new_id) |
| Set ID of CPE platform. | |
| bool | cpe_platform_set_remark (struct cpe_platform *platform, const char *new_remark) |
| Set remark of CPE platform. | |
| bool | cpe_platform_set_expr (struct cpe_platform *platform, struct cpe_testexpr *expr) |
| Set evaluation expression for this CPE platform. | |
Free functions | |
| void | cpe_platform_free (struct cpe_platform *platform) |
| Free function of CPE Platform. | |
Data Fields | |
| struct xml_metadata | xml |
| struct oscap_list * | titles |
| char * | id |
| char * | remark |
| struct cpe_testexpr * | expr |
Single platform representation in CPE language.
1.6.1