Sophie

Sophie

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

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

\hypertarget{structcpe__generator}{
\section{cpe\_\-generator Struct Reference}
\label{structcpe__generator}\index{cpe\_\-generator@{cpe\_\-generator}}
}


Structure with information about document.  


{\ttfamily \#include $<$cpedict\_\-priv.h$>$}\subsection*{Public Member Functions}
\begin{Indent}{\bf Parse functions}\par
{\em \label{_amgrp55bde346b0631e090bfc4a3be713ee4c}
Functions for parsing structures from XML.

Return value is new structure filled by content of XML file represented by XML reader or import source structure. Structure needs to be freed by the caller. }\begin{DoxyCompactItemize}
\item 
struct \hyperlink{structcpe__generator}{cpe\_\-generator} $\ast$ \hyperlink{group__CPEDictPrivate_ga9845ba671dce33efc3ee51af4ae5af7a}{cpe\_\-generator\_\-parse} (xmlTextReaderPtr reader)
\begin{DoxyCompactList}\small\item\em Parse generator part of CPE dictionary XML file. \item\end{DoxyCompactList}\end{DoxyCompactItemize}
\end{Indent}
\begin{Indent}{\bf Export functions}\par
{\em \label{_amgrp5713b34587ba18c5a4561b737b639ae5}
Functions for export structures to XML by XML writer.

Exported structures need to be freed by the caller. }\begin{DoxyCompactItemize}
\item 
void \hyperlink{group__CPEDictPrivate_ga43920e3a31e443ef3aa55d00d0ce3e76}{cpe\_\-generator\_\-export} (const struct \hyperlink{structcpe__generator}{cpe\_\-generator} $\ast$generator, xmlTextWriterPtr writer)
\begin{DoxyCompactList}\small\item\em Exporting function for CPE generator -\/ information of XML document. \item\end{DoxyCompactList}\end{DoxyCompactItemize}
\end{Indent}
\begin{Indent}{\bf Get functions}\par
{\em \label{_amgrpc2ac1eb4de8ec5add5567cbae2f237e5}
Functions for getting attributes from CVE model structures.

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 
const char $\ast$ \hyperlink{group__cpedict_ga1bf9581f8493d37eb617d8e75820887a}{cpe\_\-generator\_\-get\_\-product\_\-name} (const struct \hyperlink{structcpe__generator}{cpe\_\-generator} $\ast$item)
\begin{DoxyCompactList}\small\item\em \hyperlink{structcpe__generator}{cpe\_\-generator} functions to get product name \item\end{DoxyCompactList}\item 
const char $\ast$ \hyperlink{group__cpedict_ga1edcd46ee83701423cd4847a640bcf52}{cpe\_\-generator\_\-get\_\-product\_\-version} (const struct \hyperlink{structcpe__generator}{cpe\_\-generator} $\ast$item)
\begin{DoxyCompactList}\small\item\em \hyperlink{structcpe__generator}{cpe\_\-generator} functions to get product version \item\end{DoxyCompactList}\item 
const char $\ast$ \hyperlink{group__cpedict_gaf8efde41c03b58c3fb3840a3bd169184}{cpe\_\-generator\_\-get\_\-schema\_\-version} (const struct \hyperlink{structcpe__generator}{cpe\_\-generator} $\ast$item)
\begin{DoxyCompactList}\small\item\em \hyperlink{structcpe__generator}{cpe\_\-generator} functions to get document schema version \item\end{DoxyCompactList}\item 
const char $\ast$ \hyperlink{group__cpedict_gadcba79f73bb2c708d0e914e74f54a706}{cpe\_\-generator\_\-get\_\-timestamp} (const struct \hyperlink{structcpe__generator}{cpe\_\-generator} $\ast$item)
\begin{DoxyCompactList}\small\item\em \hyperlink{structcpe__generator}{cpe\_\-generator} functions to get timestamp from generator \item\end{DoxyCompactList}\item 
struct \hyperlink{structcpe__generator}{cpe\_\-generator} $\ast$ \hyperlink{group__cpedict_gab4c0829e1aa1daeb8170d027380e5bd8}{cpe\_\-dict\_\-model\_\-get\_\-generator} (const struct \hyperlink{structcpe__dict__model}{cpe\_\-dict\_\-model} $\ast$item)
\begin{DoxyCompactList}\small\item\em \hyperlink{structcpe__dict__model}{cpe\_\-dict\_\-model} functions to get generator from CPE dictionary model \item\end{DoxyCompactList}\end{DoxyCompactItemize}
\end{Indent}
\begin{Indent}{\bf Free functions}\par
{\em \label{_amgrp237dd65bc76b7de56066830910ced6ed}
Destructors of CVE model structures.

Functions free structures with all members recursively. For simple deletion of entity use remove functions. }\begin{DoxyCompactItemize}
\item 
void \hyperlink{group__cpedict_ga6a68ccffcefa92271e4634d28c9c6333}{cpe\_\-generator\_\-free} (struct \hyperlink{structcpe__generator}{cpe\_\-generator} $\ast$generator)
\end{DoxyCompactItemize}
\end{Indent}
\begin{Indent}{\bf New functions}\par
{\em \label{_amgrp73a4128f20867fa23ebb2e75e58922df}
Constructors of CVE model structures.

Free function returns new empty allocated structure. If returns non NULL it need to be freed by the caller. }\begin{DoxyCompactItemize}
\item 
struct \hyperlink{structcpe__generator}{cpe\_\-generator} $\ast$ \hyperlink{group__cpedict_gacb77d7f2562f9ae9481f48b8b06c3096}{cpe\_\-generator\_\-new} (void)
\end{DoxyCompactItemize}
\end{Indent}
\begin{Indent}{\bf Set functions}\par
{\em \label{_amgrp8b7ecf2f4bd25da1aae981677901d55d}
Set functions assign values to members of structures except lists.

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__cpedict_gaf39276d8d918c4aeb8677c483dae64e9}{cpe\_\-generator\_\-set\_\-product\_\-name} (struct \hyperlink{structcpe__generator}{cpe\_\-generator} $\ast$generator, const char $\ast$new\_\-product\_\-name)
\item 
bool \hyperlink{group__cpedict_gafd41b7c1709c497fceb76a524c5dc60b}{cpe\_\-generator\_\-set\_\-product\_\-version} (struct \hyperlink{structcpe__generator}{cpe\_\-generator} $\ast$generator, const char $\ast$new\_\-product\_\-version)
\item 
bool \hyperlink{group__cpedict_gaeccd1c1daa8f903c85ae3e223e32e03f}{cpe\_\-generator\_\-set\_\-schema\_\-version} (struct \hyperlink{structcpe__generator}{cpe\_\-generator} $\ast$generator, const char $\ast$new\_\-schema\_\-version)
\item 
bool \hyperlink{group__cpedict_ga09586502ca805c82d3c30b5e6f4596d9}{cpe\_\-generator\_\-set\_\-timestamp} (struct \hyperlink{structcpe__generator}{cpe\_\-generator} $\ast$generator, const char $\ast$new\_\-timestamp)
\end{DoxyCompactItemize}
\end{Indent}
\subsection*{Data Fields}
\begin{DoxyCompactItemize}
\item 
\hypertarget{structcpe__generator_adea66e05058ccfada48faa696c6c953b}{
struct \hyperlink{structxml__metadata}{xml\_\-metadata} {\bfseries xml}}
\label{structcpe__generator_adea66e05058ccfada48faa696c6c953b}

\item 
\hypertarget{structcpe__generator_ae3f78159902ab1954e21c6241557359b}{
char $\ast$ {\bfseries product\_\-name}}
\label{structcpe__generator_ae3f78159902ab1954e21c6241557359b}

\item 
\hypertarget{structcpe__generator_a0755120056ef80b298b003afa384da34}{
char $\ast$ {\bfseries product\_\-version}}
\label{structcpe__generator_a0755120056ef80b298b003afa384da34}

\item 
\hypertarget{structcpe__generator_acb34997e3d4b4f69fbaa74f886660de4}{
char $\ast$ {\bfseries schema\_\-version}}
\label{structcpe__generator_acb34997e3d4b4f69fbaa74f886660de4}

\item 
\hypertarget{structcpe__generator_aa2015999fc33e6f2cade6d6931818b1b}{
char $\ast$ {\bfseries timestamp}}
\label{structcpe__generator_aa2015999fc33e6f2cade6d6931818b1b}

\end{DoxyCompactItemize}


\subsection{Detailed Description}
Structure with information about document. 

The documentation for this struct was generated from the following files:\begin{DoxyCompactItemize}
\item 
/home/pvrabec/openscap/openscap-\/0.5.7/src/CPE/\hyperlink{cpedict__priv_8c}{cpedict\_\-priv.c}\item 
/home/pvrabec/openscap/openscap-\/0.5.7/src/CPE/\hyperlink{cpedict__priv_8h}{cpedict\_\-priv.h}\item 
/home/pvrabec/openscap/openscap-\/0.5.7/src/CPE/public/\hyperlink{cpedict_8h}{cpedict.h}\end{DoxyCompactItemize}