Sophie

Sophie

distrib > Mandriva > current > x86_64 > by-pkgid > 3736f276bb1ccfbcee6cb2d27b25d981 > files > 822

openscap-devel-0.5.7-1mdv2010.1.x86_64.rpm

\hypertarget{structoval__definition__model}{
\section{oval\_\-definition\_\-model Struct Reference}
\label{structoval__definition__model}\index{oval\_\-definition\_\-model@{oval\_\-definition\_\-model}}
}


Oval definition model.  


{\ttfamily \#include $<$oval\_\-definitions.h$>$}\subsection*{Public Member Functions}
\begin{DoxyCompactItemize}
\item 
int \hyperlink{group__OVALDEF_gaea81922f136c12c07a39ad66437e9a41}{oval\_\-definition\_\-model\_\-import} (struct \hyperlink{structoval__definition__model}{oval\_\-definition\_\-model} $\ast$model, struct \hyperlink{structoscap__import__source}{oscap\_\-import\_\-source} $\ast$source, void $\ast$client)
\begin{DoxyCompactList}\small\item\em Import the content from a specified XML stream into a \hyperlink{structoval__definition__model}{oval\_\-definition\_\-model}, return -\/1 if an error occurred. \item\end{DoxyCompactList}\item 
\hypertarget{group__OVALDEF_ga9e86ce6215371e9ac00131719799ca2b}{
struct \hyperlink{structoval__definition__model}{oval\_\-definition\_\-model} $\ast$ \hyperlink{group__OVALDEF_ga9e86ce6215371e9ac00131719799ca2b}{oval\_\-definition\_\-model\_\-new} (void)}
\label{group__OVALDEF_ga9e86ce6215371e9ac00131719799ca2b}

\begin{DoxyCompactList}\small\item\em Create an empty \hyperlink{structoval__definition__model}{oval\_\-definition\_\-model}. \item\end{DoxyCompactList}\item 
\hypertarget{group__OVALDEF_ga5b8cc50ce5f27ba93c752f011759c489}{
struct \hyperlink{structoval__definition__model}{oval\_\-definition\_\-model} $\ast$ \hyperlink{group__OVALDEF_ga5b8cc50ce5f27ba93c752f011759c489}{oval\_\-definition\_\-model\_\-clone} (struct \hyperlink{structoval__definition__model}{oval\_\-definition\_\-model} $\ast$)}
\label{group__OVALDEF_ga5b8cc50ce5f27ba93c752f011759c489}

\begin{DoxyCompactList}\small\item\em Copy an \hyperlink{structoval__definition__model}{oval\_\-definition\_\-model}. \item\end{DoxyCompactList}\item 
\hypertarget{group__OVALDEF_gafac0ce7f7241b71711dbe98d878e0309}{
int {\bfseries oval\_\-definition\_\-model\_\-export} (struct \hyperlink{structoval__definition__model}{oval\_\-definition\_\-model} $\ast$, struct \hyperlink{structoscap__export__target}{oscap\_\-export\_\-target} $\ast$)}
\label{group__OVALDEF_gafac0ce7f7241b71711dbe98d878e0309}

\item 
\hypertarget{group__OVALDEF_ga0e919349120538ed3e9023703b146405}{
void \hyperlink{group__OVALDEF_ga0e919349120538ed3e9023703b146405}{oval\_\-definition\_\-model\_\-free} (struct \hyperlink{structoval__definition__model}{oval\_\-definition\_\-model} $\ast$model)}
\label{group__OVALDEF_ga0e919349120538ed3e9023703b146405}

\begin{DoxyCompactList}\small\item\em Free OVAL object model. \item\end{DoxyCompactList}\end{DoxyCompactItemize}
\begin{Indent}{\bf Setters}\par
{\em \label{_amgrp6e47466b75bb957a603aa54c079ac8bf}
 }\begin{DoxyCompactItemize}
\item 
\hypertarget{group__OVALDEF_ga74e0856ac4554e79222af61055ad2685}{
void \hyperlink{group__OVALDEF_ga74e0856ac4554e79222af61055ad2685}{oval\_\-definition\_\-model\_\-bind\_\-variable\_\-model} (struct \hyperlink{structoval__definition__model}{oval\_\-definition\_\-model} $\ast$, struct \hyperlink{structoval__variable__model}{oval\_\-variable\_\-model} $\ast$)}
\label{group__OVALDEF_ga74e0856ac4554e79222af61055ad2685}

\begin{DoxyCompactList}\small\item\em Bind an \hyperlink{structoval__variable__model}{oval\_\-variable\_\-model} to the specified \hyperlink{structoval__definition__model}{oval\_\-definition\_\-model}. \item\end{DoxyCompactList}\item 
\hypertarget{group__OVALDEF_gaf1f5515f6da8d3748b3a366f8bbb15a8}{
void {\bfseries oval\_\-definition\_\-model\_\-add\_\-definition} (struct \hyperlink{structoval__definition__model}{oval\_\-definition\_\-model} $\ast$, struct \hyperlink{structoval__definition}{oval\_\-definition} $\ast$)}
\label{group__OVALDEF_gaf1f5515f6da8d3748b3a366f8bbb15a8}

\item 
\hypertarget{group__OVALDEF_gad4b6f202e4bdb1602466e66664e04f52}{
void {\bfseries oval\_\-definition\_\-model\_\-add\_\-test} (struct \hyperlink{structoval__definition__model}{oval\_\-definition\_\-model} $\ast$, struct \hyperlink{structoval__test}{oval\_\-test} $\ast$)}
\label{group__OVALDEF_gad4b6f202e4bdb1602466e66664e04f52}

\item 
\hypertarget{group__OVALDEF_ga3ad9c9c7075985a86cb2008f46bb34ae}{
void {\bfseries oval\_\-definition\_\-model\_\-add\_\-object} (struct \hyperlink{structoval__definition__model}{oval\_\-definition\_\-model} $\ast$, struct \hyperlink{structoval__object}{oval\_\-object} $\ast$)}
\label{group__OVALDEF_ga3ad9c9c7075985a86cb2008f46bb34ae}

\item 
\hypertarget{group__OVALDEF_gac15981b2a973d355c70d9e6df799e8e6}{
void {\bfseries oval\_\-definition\_\-model\_\-add\_\-state} (struct \hyperlink{structoval__definition__model}{oval\_\-definition\_\-model} $\ast$, struct \hyperlink{structoval__state}{oval\_\-state} $\ast$)}
\label{group__OVALDEF_gac15981b2a973d355c70d9e6df799e8e6}

\item 
\hypertarget{group__OVALDEF_gad865fed5779c22ffa105168c5be0bb5c}{
void {\bfseries oval\_\-definition\_\-model\_\-add\_\-variable} (struct \hyperlink{structoval__definition__model}{oval\_\-definition\_\-model} $\ast$, struct \hyperlink{structoval__variable}{oval\_\-variable} $\ast$)}
\label{group__OVALDEF_gad865fed5779c22ffa105168c5be0bb5c}

\item 
void \hyperlink{group__OVALDEF_ga666a4046093aab410919e2f3be08e268}{oval\_\-definition\_\-model\_\-lock} (struct \hyperlink{structoval__definition__model}{oval\_\-definition\_\-model} $\ast$definition\_\-model)
\begin{DoxyCompactList}\small\item\em Lock the definition\_\-model instance. \item\end{DoxyCompactList}\end{DoxyCompactItemize}
\end{Indent}
\begin{Indent}{\bf Getters}\par
{\em \label{_amgrpc9fd0bcb5385a65354c37f1bb504399d}
 }\begin{DoxyCompactItemize}
\item 
struct \hyperlink{structoval__definition}{oval\_\-definition} $\ast$ \hyperlink{group__OVALDEF_ga198e0e19ad1a1de5adb0c179265980ea}{oval\_\-definition\_\-model\_\-get\_\-definition} (struct \hyperlink{structoval__definition__model}{oval\_\-definition\_\-model} $\ast$, char $\ast$id)
\begin{DoxyCompactList}\small\item\em Returns the appended \hyperlink{structoval__definition}{oval\_\-definition} having the specified id. \item\end{DoxyCompactList}\item 
struct \hyperlink{structoval__test}{oval\_\-test} $\ast$ \hyperlink{group__OVALDEF_ga04b4b95ab803d9b51580461f147897a2}{oval\_\-definition\_\-model\_\-get\_\-test} (struct \hyperlink{structoval__definition__model}{oval\_\-definition\_\-model} $\ast$model, char $\ast$id)
\begin{DoxyCompactList}\small\item\em Get oval test by ID. \item\end{DoxyCompactList}\item 
struct \hyperlink{structoval__object}{oval\_\-object} $\ast$ \hyperlink{group__OVALDEF_ga441f7b417a6c17e826c39cf0cbe60eab}{oval\_\-definition\_\-model\_\-get\_\-object} (struct \hyperlink{structoval__definition__model}{oval\_\-definition\_\-model} $\ast$model, char $\ast$id)
\begin{DoxyCompactList}\small\item\em Get OVAL object by ID. \item\end{DoxyCompactList}\item 
struct \hyperlink{structoval__state}{oval\_\-state} $\ast$ \hyperlink{group__OVALDEF_ga90c0b50891e2fb268fceffc7c2f0e423}{oval\_\-definition\_\-model\_\-get\_\-state} (struct \hyperlink{structoval__definition__model}{oval\_\-definition\_\-model} $\ast$model, char $\ast$id)
\begin{DoxyCompactList}\small\item\em Get OVAL state by ID. \item\end{DoxyCompactList}\item 
struct \hyperlink{structoval__variable}{oval\_\-variable} $\ast$ \hyperlink{group__OVALDEF_gace1c10d61ef1ea893b30dccabd710a7f}{oval\_\-definition\_\-model\_\-get\_\-variable} (struct \hyperlink{structoval__definition__model}{oval\_\-definition\_\-model} $\ast$model, char $\ast$id)
\begin{DoxyCompactList}\small\item\em Get OVAL variable by ID. \item\end{DoxyCompactList}\item 
\hypertarget{group__OVALDEF_gab055de9725a0d9c5576bc97be253c0b0}{
struct \hyperlink{structoval__definition__iterator}{oval\_\-definition\_\-iterator} $\ast$ \hyperlink{group__OVALDEF_gab055de9725a0d9c5576bc97be253c0b0}{oval\_\-definition\_\-model\_\-get\_\-definitions} (struct \hyperlink{structoval__definition__model}{oval\_\-definition\_\-model} $\ast$model)}
\label{group__OVALDEF_gab055de9725a0d9c5576bc97be253c0b0}

\begin{DoxyCompactList}\small\item\em Returns all appended \hyperlink{structoval__definition}{oval\_\-definition} instances. \item\end{DoxyCompactList}\item 
struct \hyperlink{structoval__test__iterator}{oval\_\-test\_\-iterator} $\ast$ \hyperlink{group__OVALDEF_ga799f6aa6c3e8f78af3d5a74089b6a850}{oval\_\-definition\_\-model\_\-get\_\-tests} (struct \hyperlink{structoval__definition__model}{oval\_\-definition\_\-model} $\ast$model)
\begin{DoxyCompactList}\small\item\em Get OVAL tests. \item\end{DoxyCompactList}\item 
struct \hyperlink{structoval__object__iterator}{oval\_\-object\_\-iterator} $\ast$ \hyperlink{group__OVALDEF_ga7fc7c974c220e0d955f01295aaf636e4}{oval\_\-definition\_\-model\_\-get\_\-objects} (struct \hyperlink{structoval__definition__model}{oval\_\-definition\_\-model} $\ast$model)
\begin{DoxyCompactList}\small\item\em Get OVAL objects. \item\end{DoxyCompactList}\item 
struct \hyperlink{structoval__state__iterator}{oval\_\-state\_\-iterator} $\ast$ \hyperlink{group__OVALDEF_ga4f3d5bd5ebfe440f90a33272b7fb46c6}{oval\_\-definition\_\-model\_\-get\_\-states} (struct \hyperlink{structoval__definition__model}{oval\_\-definition\_\-model} $\ast$model)
\begin{DoxyCompactList}\small\item\em Get OVAL states. \item\end{DoxyCompactList}\item 
struct \hyperlink{structoval__variable__iterator}{oval\_\-variable\_\-iterator} $\ast$ \hyperlink{group__OVALDEF_gaf89fe89094155a4ee46633489712e247}{oval\_\-definition\_\-model\_\-get\_\-variables} (struct \hyperlink{structoval__definition__model}{oval\_\-definition\_\-model} $\ast$model)
\begin{DoxyCompactList}\small\item\em Get OVAL variables. \item\end{DoxyCompactList}\item 
bool \hyperlink{group__OVALDEF_ga213455bb44ab1e2a073b985233fe0b38}{oval\_\-definition\_\-model\_\-is\_\-locked} (struct \hyperlink{structoval__definition__model}{oval\_\-definition\_\-model} $\ast$definition\_\-model)
\begin{DoxyCompactList}\small\item\em Return {\bfseries true} if the definition\_\-model instance is locked. \item\end{DoxyCompactList}\end{DoxyCompactItemize}
\end{Indent}
\begin{Indent}{\bf Evaluators}\par
{\em \label{_amgrp1fdbbbb8aba6580be2c9cb4b12e86ca2}
 }\begin{DoxyCompactItemize}
\item 
\hypertarget{group__OVALDEF_gadc7726bb7c09871d9edac7568a832a8b}{
bool \hyperlink{group__OVALDEF_gadc7726bb7c09871d9edac7568a832a8b}{oval\_\-definition\_\-model\_\-is\_\-valid} (struct \hyperlink{structoval__definition__model}{oval\_\-definition\_\-model} $\ast$definition\_\-model)}
\label{group__OVALDEF_gadc7726bb7c09871d9edac7568a832a8b}

\begin{DoxyCompactList}\small\item\em Return {\bfseries true} if the definition\_\-model instance is valid. \item\end{DoxyCompactList}\end{DoxyCompactItemize}
\end{Indent}
\subsection*{Data Fields}
\begin{DoxyCompactItemize}
\item 
\hypertarget{structoval__definition__model_ac14d8c0b30df6b97118c1e62cd6d2a23}{
struct \hyperlink{structoval__string__map}{oval\_\-string\_\-map} $\ast$ {\bfseries definition\_\-map}}
\label{structoval__definition__model_ac14d8c0b30df6b97118c1e62cd6d2a23}

\item 
\hypertarget{structoval__definition__model_af7421f8c21b90c0fb3979cb535a2ac74}{
struct \hyperlink{structoval__string__map}{oval\_\-string\_\-map} $\ast$ {\bfseries test\_\-map}}
\label{structoval__definition__model_af7421f8c21b90c0fb3979cb535a2ac74}

\item 
\hypertarget{structoval__definition__model_a9af3d6a2237364715a1d0570bbe6b56e}{
struct \hyperlink{structoval__string__map}{oval\_\-string\_\-map} $\ast$ {\bfseries object\_\-map}}
\label{structoval__definition__model_a9af3d6a2237364715a1d0570bbe6b56e}

\item 
\hypertarget{structoval__definition__model_a7949610d5257234118f1532819981f52}{
struct \hyperlink{structoval__string__map}{oval\_\-string\_\-map} $\ast$ {\bfseries state\_\-map}}
\label{structoval__definition__model_a7949610d5257234118f1532819981f52}

\item 
\hypertarget{structoval__definition__model_a0e1427ef6b999239658e1d790c58b306}{
struct \hyperlink{structoval__string__map}{oval\_\-string\_\-map} $\ast$ {\bfseries variable\_\-map}}
\label{structoval__definition__model_a0e1427ef6b999239658e1d790c58b306}

\item 
\hypertarget{structoval__definition__model_a4f0515da651822981b2c389a46e6ddbe}{
bool {\bfseries is\_\-locked}}
\label{structoval__definition__model_a4f0515da651822981b2c389a46e6ddbe}

\end{DoxyCompactItemize}


\subsection{Detailed Description}
Oval definition model. 

The documentation for this struct was generated from the following files:\begin{DoxyCompactItemize}
\item 
/home/pvrabec/openscap/openscap-\/0.5.7/src/OVAL/\hyperlink{oval__agent_8c}{oval\_\-agent.c}\item 
/home/pvrabec/openscap/openscap-\/0.5.7/src/OVAL/public/\hyperlink{oval__definitions_8h}{oval\_\-definitions.h}\end{DoxyCompactItemize}