File: structcpe__testexpr.tex

package info (click to toggle)
openscap 0.5.12-3
  • links: PTS
  • area: main
  • in suites: squeeze
  • size: 27,052 kB
  • ctags: 21,075
  • sloc: xml: 82,351; ansic: 52,101; sh: 17,802; makefile: 748; perl: 442; cpp: 117; python: 110
file content (88 lines) | stat: -rw-r--r-- 6,499 bytes parent folder | download
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
\hypertarget{structcpe__testexpr}{
\section{cpe\_\-testexpr Struct Reference}
\label{structcpe__testexpr}\index{cpe\_\-testexpr@{cpe\_\-testexpr}}
}


CPE language boolean expression.  


{\ttfamily \#include $<$cpelang\_\-priv.h$>$}\subsection*{Public Member Functions}
\begin{DoxyCompactItemize}
\item 
\hypertarget{group__cpelang_ga6de4dc9c0d8171bcb666da7bbae44984}{
struct \hyperlink{structcpe__testexpr}{cpe\_\-testexpr} $\ast$ \hyperlink{group__cpelang_ga6de4dc9c0d8171bcb666da7bbae44984}{cpe\_\-testexpr\_\-new} (void)}
\label{group__cpelang_ga6de4dc9c0d8171bcb666da7bbae44984}

\begin{DoxyCompactList}\small\item\em Constructor of CPE test expression. \item\end{DoxyCompactList}\item 
\hypertarget{group__cpelang_gac6135bb7df1b4c083e97dcb67f7bfccd}{
void \hyperlink{group__cpelang_gac6135bb7df1b4c083e97dcb67f7bfccd}{cpe\_\-testexpr\_\-free} (struct \hyperlink{structcpe__testexpr}{cpe\_\-testexpr} $\ast$\hyperlink{structcpe__testexpr_adaae01bbfd90628408feba7c3a8c40d0}{expr})}
\label{group__cpelang_gac6135bb7df1b4c083e97dcb67f7bfccd}

\begin{DoxyCompactList}\small\item\em Free function of CPE test expression. \item\end{DoxyCompactList}\end{DoxyCompactItemize}
\begin{Indent}{\bf Getters}\par
{\em \label{_amgrpc9fd0bcb5385a65354c37f1bb504399d}
Return value is pointer to structure's member.

Do not free unless you null the pointer in the structure. Use remove function otherwise. }\begin{DoxyCompactItemize}
\item 
\hypertarget{group__cpelang_ga4016df3687404f37811b7f94c31e26a4}{
\hyperlink{group__cpelang_gacbb2c8c91d3bb516182bb64c6d8f7d82}{cpe\_\-lang\_\-oper\_\-t} \hyperlink{group__cpelang_ga4016df3687404f37811b7f94c31e26a4}{cpe\_\-testexpr\_\-get\_\-oper} (const struct \hyperlink{structcpe__testexpr}{cpe\_\-testexpr} $\ast$item)}
\label{group__cpelang_ga4016df3687404f37811b7f94c31e26a4}

\begin{DoxyCompactList}\small\item\em \hyperlink{structcpe__testexpr}{cpe\_\-testexpr} functions to get variable members \item\end{DoxyCompactList}\item 
struct \hyperlink{structcpe__testexpr__iterator}{cpe\_\-testexpr\_\-iterator} $\ast$ \hyperlink{group__cpelang_ga2b7e68ad301e0c45227c7fc9071be2cd}{cpe\_\-testexpr\_\-get\_\-meta\_\-expr} (const struct \hyperlink{structcpe__testexpr}{cpe\_\-testexpr} $\ast$item)
\begin{DoxyCompactList}\small\item\em Get CPE expression subexpression. \item\end{DoxyCompactList}\item 
struct \hyperlink{structcpe__name}{cpe\_\-name} $\ast$ \hyperlink{group__cpelang_ga8b24fb99f23926f558662d6808bcb534}{cpe\_\-testexpr\_\-get\_\-meta\_\-cpe} (const struct \hyperlink{structcpe__testexpr}{cpe\_\-testexpr} $\ast$item)
\begin{DoxyCompactList}\small\item\em Get CPE name to match against. \item\end{DoxyCompactList}\item 
struct \hyperlink{structcpe__testexpr}{cpe\_\-testexpr} $\ast$ \hyperlink{group__cpelang_gab229fbb8fa2c2c0de0714ce2c9c9bc53}{cpe\_\-testexpr\_\-get\_\-next} (const struct \hyperlink{structcpe__testexpr}{cpe\_\-testexpr} $\ast$\hyperlink{structcpe__testexpr_adaae01bbfd90628408feba7c3a8c40d0}{expr})
\begin{DoxyCompactList}\small\item\em Function to get next expr from array. \item\end{DoxyCompactList}\end{DoxyCompactItemize}
\end{Indent}
\begin{Indent}{\bf Setters}\par
{\em \label{_amgrp6e47466b75bb957a603aa54c079ac8bf}
Get XML namespace from CPE lang model

For lists use add functions. Parameters of set functions are duplicated in memory and need to be freed by caller. }\begin{DoxyCompactItemize}
\item 
bool \hyperlink{group__cpelang_ga0f9cb4770990700bb2828faf397addb3}{cpe\_\-testexpr\_\-add\_\-subexpression} (struct \hyperlink{structcpe__testexpr}{cpe\_\-testexpr} $\ast$\hyperlink{structcpe__testexpr_adaae01bbfd90628408feba7c3a8c40d0}{expr}, struct \hyperlink{structcpe__testexpr}{cpe\_\-testexpr} $\ast$sub)
\begin{DoxyCompactList}\small\item\em Add XML namespace to CPE lang model. \item\end{DoxyCompactList}\item 
bool \hyperlink{group__cpelang_gaf5cbbabfe39b2bbd5eebd180d0b3eb68}{cpe\_\-testexpr\_\-set\_\-oper} (struct \hyperlink{structcpe__testexpr}{cpe\_\-testexpr} $\ast$\hyperlink{structcpe__testexpr_adaae01bbfd90628408feba7c3a8c40d0}{expr}, \hyperlink{group__cpelang_gacbb2c8c91d3bb516182bb64c6d8f7d82}{cpe\_\-lang\_\-oper\_\-t} \hyperlink{structcpe__testexpr_a818142dd3fd60970b290efb12082705b}{oper})
\begin{DoxyCompactList}\small\item\em Set CPE operation. \item\end{DoxyCompactList}\item 
bool \hyperlink{group__cpelang_gaa95723258aff68c121c25c825852d5c3}{cpe\_\-testexpr\_\-set\_\-name} (struct \hyperlink{structcpe__testexpr}{cpe\_\-testexpr} $\ast$\hyperlink{structcpe__testexpr_adaae01bbfd90628408feba7c3a8c40d0}{expr}, struct \hyperlink{structcpe__name}{cpe\_\-name} $\ast$name)
\begin{DoxyCompactList}\small\item\em Set CPE name. \item\end{DoxyCompactList}\end{DoxyCompactItemize}
\end{Indent}
\subsection*{Data Fields}
\begin{DoxyCompactItemize}
\item 
\hypertarget{structcpe__testexpr_ac0c34e95bc3cb326e565155efe7c8641}{
struct \hyperlink{structxml__metadata}{xml\_\-metadata} {\bfseries xml}}
\label{structcpe__testexpr_ac0c34e95bc3cb326e565155efe7c8641}

\item 
\hypertarget{structcpe__testexpr_a818142dd3fd60970b290efb12082705b}{
\hyperlink{group__cpelang_gacbb2c8c91d3bb516182bb64c6d8f7d82}{cpe\_\-lang\_\-oper\_\-t} \hyperlink{structcpe__testexpr_a818142dd3fd60970b290efb12082705b}{oper}}
\label{structcpe__testexpr_a818142dd3fd60970b290efb12082705b}

\begin{DoxyCompactList}\small\item\em operator \item\end{DoxyCompactList}\item 
\hypertarget{structcpe__testexpr_a3f2083e57399f8c5e208d9f669949a36}{
\begin{tabbing}
xx\=xx\=xx\=xx\=xx\=xx\=xx\=xx\=xx\=\kill
union \{\\
\>struct \hyperlink{structoscap__list}{oscap\_list} $\ast$ \hyperlink{structcpe__testexpr_adaae01bbfd90628408feba7c3a8c40d0}{expr}\\
\>\>{\em array of subexpressions for operators }\\
\>struct \hyperlink{structcpe__name}{cpe\_name} $\ast$ \hyperlink{structcpe__testexpr_ae625f88da01a916a7bfe89fd3db432ea}{cpe}\\
\>\>{\em CPE for match operation. }\\
\} \hyperlink{structcpe__testexpr_a3f2083e57399f8c5e208d9f669949a36}{meta}}
\label{structcpe__testexpr_a3f2083e57399f8c5e208d9f669949a36}
\\

\end{tabbing}\begin{DoxyCompactList}\small\item\em operation metadata \item\end{DoxyCompactList}\end{DoxyCompactItemize}


\subsection{Detailed Description}
CPE language boolean expression. 

The documentation for this struct was generated from the following files:\begin{DoxyCompactItemize}
\item 
/home/pvrabec/project/openscap/openscap-\/0.5.12/src/CPE/\hyperlink{cpelang__priv_8h}{cpelang\_\-priv.h}\item 
/home/pvrabec/project/openscap/openscap-\/0.5.12/src/CPE/public/\hyperlink{cpelang_8h}{cpelang.h}\end{DoxyCompactItemize}