\doxysection{SVM codes}
\hypertarget{group__codes}{}\label{group__codes}\index{SVM codes@{SVM codes}}


This module contains API functions to handle SVM codes.  


\doxysubsubsection*{Modules}
\begin{DoxyCompactItemize}
\item 
\mbox{\hyperlink{group__codeget}{SVM codes getters}}
\begin{DoxyCompactList}\small\item\em This module contains API functions to create SVM codes. \end{DoxyCompactList}\item 
\mbox{\hyperlink{group__labelcodes}{SVM labels in code}}
\begin{DoxyCompactList}\small\item\em This module contains API functions to handle labels in SVM code. \end{DoxyCompactList}\item 
\mbox{\hyperlink{group__symbolcodes}{SVM symbols in code}}
\begin{DoxyCompactList}\small\item\em This module contains API functions to handle symbols in SVM code. \end{DoxyCompactList}\item 
\mbox{\hyperlink{group__codeinstructions}{SVM code instructions}}
\begin{DoxyCompactList}\small\item\em This module contains API functions to handle SVM code instructions. \end{DoxyCompactList}\end{DoxyCompactItemize}
\doxysubsubsection*{Functions}
\begin{DoxyCompactItemize}
\item 
\mbox{\hyperlink{group__apimacros_ga0d0dae93534c2ba22499a92705a4e391}{SVM\+\_\+\+FUNCTION}} \mbox{\hyperlink{struct_s_v_m___string}{SVM\+\_\+\+String}} \mbox{\hyperlink{group__codes_ga0133e9df8af1e792bac295744aa749ac}{svm\+\_\+code\+\_\+get\+\_\+name}} (const void \texorpdfstring{$\ast$}{*}svm, const \mbox{\hyperlink{group__api__types_ga2bac50ec69e3f4b0b660eeb39a183927}{SVM\+\_\+\+Code}} code)
\begin{DoxyCompactList}\small\item\em This function extracts the code name from the SVM code. \end{DoxyCompactList}\item 
\mbox{\hyperlink{group__apimacros_ga0d0dae93534c2ba22499a92705a4e391}{SVM\+\_\+\+FUNCTION}} \mbox{\hyperlink{struct_s_v_m___string}{SVM\+\_\+\+String}} \mbox{\hyperlink{group__codes_gadfe21f191304b420df38e229e42ee959}{svm\+\_\+code\+\_\+get\+\_\+source}} (const void \texorpdfstring{$\ast$}{*}svm, const \mbox{\hyperlink{group__api__types_ga2bac50ec69e3f4b0b660eeb39a183927}{SVM\+\_\+\+Code}} code)
\begin{DoxyCompactList}\small\item\em This function extracts the code source from the SVM code. \end{DoxyCompactList}\item 
\mbox{\hyperlink{group__apimacros_ga0d0dae93534c2ba22499a92705a4e391}{SVM\+\_\+\+FUNCTION}} \mbox{\hyperlink{struct_s_v_m___string}{SVM\+\_\+\+String}} \mbox{\hyperlink{group__codes_gafa68a1cb32459c07ba8b2b1954158fc5}{svm\+\_\+code\+\_\+print}} (const void \texorpdfstring{$\ast$}{*}svm, const \mbox{\hyperlink{group__api__types_ga2bac50ec69e3f4b0b660eeb39a183927}{SVM\+\_\+\+Code}} code)
\begin{DoxyCompactList}\small\item\em This function renders a textual representation of a SVM code. \end{DoxyCompactList}\end{DoxyCompactItemize}


\doxysubsection{Detailed Description}
This module contains API functions to handle SVM codes. 

SVM code are objects containing execution directives for processors, written by the virtual machine users.

This concept allows usage of different consistent modules having a dedicated scope to\+:
\begin{DoxyItemize}
\item Create fully independant libraries,
\item Create local code contextes to split application in components with identified entry points,
\item Introduce genericity in code execution by importing code as text,
\item Use of code generators. 
\end{DoxyItemize}

\doxysubsection{Function Documentation}
\Hypertarget{group__codes_ga0133e9df8af1e792bac295744aa749ac}\label{group__codes_ga0133e9df8af1e792bac295744aa749ac} 
\index{SVM codes@{SVM codes}!svm\_code\_get\_name@{svm\_code\_get\_name}}
\index{svm\_code\_get\_name@{svm\_code\_get\_name}!SVM codes@{SVM codes}}
\doxysubsubsection{\texorpdfstring{svm\_code\_get\_name()}{svm\_code\_get\_name()}}
{\footnotesize\ttfamily \mbox{\hyperlink{group__apimacros_ga0d0dae93534c2ba22499a92705a4e391}{SVM\+\_\+\+FUNCTION}} \mbox{\hyperlink{struct_s_v_m___string}{SVM\+\_\+\+String}} svm\+\_\+code\+\_\+get\+\_\+name (\begin{DoxyParamCaption}\item[{const void \texorpdfstring{$\ast$}{*}}]{svm,  }\item[{const \mbox{\hyperlink{group__api__types_ga2bac50ec69e3f4b0b660eeb39a183927}{SVM\+\_\+\+Code}}}]{code }\end{DoxyParamCaption})}



This function extracts the code name from the SVM code. 


\begin{DoxyParams}[1]{Parameters}
\mbox{\texttt{ in}}  & {\em svm} & The SVM pointer passed as first argument of the callback function. \\
\hline
\mbox{\texttt{ in}}  & {\em code} & The code from wich the name has to be extracted.\\
\hline
\end{DoxyParams}
\begin{DoxyReturn}{Returns}
The code name.
\end{DoxyReturn}

\begin{DoxyExceptions}{Exceptions}
{\em FAILURE} & interruption when a parameter is incorrect. (Please refer to the main description page of this API.) \\
\hline
\end{DoxyExceptions}
\Hypertarget{group__codes_gadfe21f191304b420df38e229e42ee959}\label{group__codes_gadfe21f191304b420df38e229e42ee959} 
\index{SVM codes@{SVM codes}!svm\_code\_get\_source@{svm\_code\_get\_source}}
\index{svm\_code\_get\_source@{svm\_code\_get\_source}!SVM codes@{SVM codes}}
\doxysubsubsection{\texorpdfstring{svm\_code\_get\_source()}{svm\_code\_get\_source()}}
{\footnotesize\ttfamily \mbox{\hyperlink{group__apimacros_ga0d0dae93534c2ba22499a92705a4e391}{SVM\+\_\+\+FUNCTION}} \mbox{\hyperlink{struct_s_v_m___string}{SVM\+\_\+\+String}} svm\+\_\+code\+\_\+get\+\_\+source (\begin{DoxyParamCaption}\item[{const void \texorpdfstring{$\ast$}{*}}]{svm,  }\item[{const \mbox{\hyperlink{group__api__types_ga2bac50ec69e3f4b0b660eeb39a183927}{SVM\+\_\+\+Code}}}]{code }\end{DoxyParamCaption})}



This function extracts the code source from the SVM code. 


\begin{DoxyParams}[1]{Parameters}
\mbox{\texttt{ in}}  & {\em svm} & The SVM pointer passed as first argument of the callback function. \\
\hline
\mbox{\texttt{ in}}  & {\em code} & The code from wich the name has to be extracted.\\
\hline
\end{DoxyParams}
\begin{DoxyReturn}{Returns}
The code source.
\end{DoxyReturn}

\begin{DoxyExceptions}{Exceptions}
{\em FAILURE} & interruption when a parameter is incorrect. (Please refer to the main description page of this API.) \\
\hline
\end{DoxyExceptions}
\Hypertarget{group__codes_gafa68a1cb32459c07ba8b2b1954158fc5}\label{group__codes_gafa68a1cb32459c07ba8b2b1954158fc5} 
\index{SVM codes@{SVM codes}!svm\_code\_print@{svm\_code\_print}}
\index{svm\_code\_print@{svm\_code\_print}!SVM codes@{SVM codes}}
\doxysubsubsection{\texorpdfstring{svm\_code\_print()}{svm\_code\_print()}}
{\footnotesize\ttfamily \mbox{\hyperlink{group__apimacros_ga0d0dae93534c2ba22499a92705a4e391}{SVM\+\_\+\+FUNCTION}} \mbox{\hyperlink{struct_s_v_m___string}{SVM\+\_\+\+String}} svm\+\_\+code\+\_\+print (\begin{DoxyParamCaption}\item[{const void \texorpdfstring{$\ast$}{*}}]{svm,  }\item[{const \mbox{\hyperlink{group__api__types_ga2bac50ec69e3f4b0b660eeb39a183927}{SVM\+\_\+\+Code}}}]{code }\end{DoxyParamCaption})}



This function renders a textual representation of a SVM code. 


\begin{DoxyParams}[1]{Parameters}
\mbox{\texttt{ in}}  & {\em svm} & The SVM pointer passed as first argument of the callback function. \\
\hline
\mbox{\texttt{ in}}  & {\em code} & The code to render as string.\\
\hline
\end{DoxyParams}
\begin{DoxyNote}{Note}
The resulting string is not guaranteed to be compilable again. In particular, it contains a one line header that should be removed prior to any compilation attempt.
\end{DoxyNote}
\begin{DoxyReturn}{Returns}
The string representation of a SVM code.
\end{DoxyReturn}

\begin{DoxyExceptions}{Exceptions}
{\em FAILURE} & interruption when a parameter is incorrect. (Please refer to the main description page of this API.) \\
\hline
\end{DoxyExceptions}
\input{group__codeget}
\input{group__labelcodes}
\input{group__symbolcodes}
\input{group__codeinstructions}
