File: structoscap__string__map.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 (60 lines) | stat: -rw-r--r-- 3,845 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
\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*{Public 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*{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{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{Member 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})}}
\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})}}
\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/project/openscap/openscap-\/0.5.12/src/common/util.h\end{DoxyCompactItemize}