\hypertarget{structoscap__string__map}{ \section{oscap\_\-string\_\-map Struct Reference} \label{structoscap__string__map}\index{oscap\_\-string\_\-map@{oscap\_\-string\_\-map}} } Define mapping between symbolic constant and its string representation. {\ttfamily \#include $<$util.h$>$}\subsection*{Data Fields} \begin{DoxyCompactItemize} \item \hypertarget{structoscap__string__map_a9829b586421a58d05b777b7c04f26394}{ int {\bfseries value}} \label{structoscap__string__map_a9829b586421a58d05b777b7c04f26394} \item \hypertarget{structoscap__string__map_adf5a6e02a988e5285f7bef49625127c0}{ const char $\ast$ {\bfseries string}} \label{structoscap__string__map_adf5a6e02a988e5285f7bef49625127c0} \end{DoxyCompactItemize} \subsection*{Related Functions} (Note that these are not member functions.) \begin{DoxyCompactItemize} \item int \hyperlink{structoscap__string__map_a6bda0f46c76ca15d381bbc08d932dfaa}{oscap\_\-string\_\-to\_\-enum} (const struct \hyperlink{structoscap__string__map}{oscap\_\-string\_\-map} $\ast$map, const char $\ast$str) \begin{DoxyCompactList}\small\item\em Convert a string to an enumeration constant. \item\end{DoxyCompactList}\item const char $\ast$ \hyperlink{structoscap__string__map_aa1d9de0387526ec8dbb26b494ef1703d}{oscap\_\-enum\_\-to\_\-string} (const struct \hyperlink{structoscap__string__map}{oscap\_\-string\_\-map} $\ast$map, int val) \begin{DoxyCompactList}\small\item\em Convert an enumeration constant to its corresponding string representation. \item\end{DoxyCompactList}\end{DoxyCompactItemize} \subsection{Detailed Description} Define mapping between symbolic constant and its string representation. It is supposed to define array of these structures, ending with element with the {\itshape string\/} member set to NULL. Value of such member also defines the default value for strings not defined elsewhere. \subsection{Friends And Related Function Documentation} \hypertarget{structoscap__string__map_aa1d9de0387526ec8dbb26b494ef1703d}{ \index{oscap\_\-string\_\-map@{oscap\_\-string\_\-map}!oscap\_\-enum\_\-to\_\-string@{oscap\_\-enum\_\-to\_\-string}} \index{oscap\_\-enum\_\-to\_\-string@{oscap\_\-enum\_\-to\_\-string}!oscap_string_map@{oscap\_\-string\_\-map}} \subsubsection[{oscap\_\-enum\_\-to\_\-string}]{\setlength{\rightskip}{0pt plus 5cm}const char $\ast$ oscap\_\-enum\_\-to\_\-string (const struct {\bf oscap\_\-string\_\-map} $\ast$ {\em map}, \/ int {\em val})\hspace{0.3cm}{\ttfamily \mbox{[}related\mbox{]}}}} \label{structoscap__string__map_aa1d9de0387526ec8dbb26b494ef1703d} Convert an enumeration constant to its corresponding string representation. \begin{DoxyParams}{Parameters} \item[{\em map}]An array of \hyperlink{structoscap__string__map}{oscap\_\-string\_\-map} structures that defines mapping between constants and strings. \item[{\em val}]value to be converted \end{DoxyParams} \hypertarget{structoscap__string__map_a6bda0f46c76ca15d381bbc08d932dfaa}{ \index{oscap\_\-string\_\-map@{oscap\_\-string\_\-map}!oscap\_\-string\_\-to\_\-enum@{oscap\_\-string\_\-to\_\-enum}} \index{oscap\_\-string\_\-to\_\-enum@{oscap\_\-string\_\-to\_\-enum}!oscap_string_map@{oscap\_\-string\_\-map}} \subsubsection[{oscap\_\-string\_\-to\_\-enum}]{\setlength{\rightskip}{0pt plus 5cm}int oscap\_\-string\_\-to\_\-enum (const struct {\bf oscap\_\-string\_\-map} $\ast$ {\em map}, \/ const char $\ast$ {\em str})\hspace{0.3cm}{\ttfamily \mbox{[}related\mbox{]}}}} \label{structoscap__string__map_a6bda0f46c76ca15d381bbc08d932dfaa} Convert a string to an enumeration constant. \begin{DoxyParams}{Parameters} \item[{\em map}]An array of \hyperlink{structoscap__string__map}{oscap\_\-string\_\-map} structures that defines mapping between constants and strings. \item[{\em str}]string to be converted \end{DoxyParams} The documentation for this struct was generated from the following file:\begin{DoxyCompactItemize} \item /home/pvrabec/openscap/openscap-\/0.5.7/src/common/\hyperlink{util_8h}{util.h}\end{DoxyCompactItemize}