\hypertarget{class_ogre_1_1_script_translator}{}\section{Ogre\+:\+:Script\+Translator Class Reference}
\label{class_ogre_1_1_script_translator}\index{Ogre\+::\+Script\+Translator@{Ogre\+::\+Script\+Translator}}


This class translates script A\+ST (abstract syntax tree) into \hyperlink{namespace_ogre}{Ogre} resources.  




{\ttfamily \#include $<$Ogre\+Script\+Translator.\+h$>$}



Inheritance diagram for Ogre\+:\+:Script\+Translator\+:
\nopagebreak
\begin{figure}[H]
\begin{center}
\leavevmode
\includegraphics[width=350pt]{class_ogre_1_1_script_translator__inherit__graph}
\end{center}
\end{figure}
\subsection*{Public Member Functions}
\begin{DoxyCompactItemize}
\item 
virtual void \hyperlink{class_ogre_1_1_script_translator_a6f0fa5113e8c5fecf2da9afe6f624262}{translate} (\hyperlink{class_ogre_1_1_script_compiler}{Script\+Compiler} $\ast$compiler, const \hyperlink{group___general_ga15cfb375beeafed87e1bdd96ef10ff36}{Abstract\+Node\+Ptr} \&node)=0
\begin{DoxyCompactList}\small\item\em This function translates the given node into \hyperlink{namespace_ogre}{Ogre} resource(s). \end{DoxyCompactList}\end{DoxyCompactItemize}
\subsection*{Friends}
\begin{DoxyCompactItemize}
\item 
{\footnotesize template$<$typename T $>$ }\\bool \hyperlink{class_ogre_1_1_script_translator_a21b5a1fd7c18f7fa01e39df491088e03}{get\+Value} (const \hyperlink{group___general_ga15cfb375beeafed87e1bdd96ef10ff36}{Abstract\+Node\+Ptr} \&node, T \&result)
\end{DoxyCompactItemize}


\subsection{Detailed Description}
This class translates script A\+ST (abstract syntax tree) into \hyperlink{namespace_ogre}{Ogre} resources. 

It defines a common interface for subclasses which perform the actual translation. 

\subsection{Member Function Documentation}
\mbox{\Hypertarget{class_ogre_1_1_script_translator_a6f0fa5113e8c5fecf2da9afe6f624262}\label{class_ogre_1_1_script_translator_a6f0fa5113e8c5fecf2da9afe6f624262}} 
\index{Ogre\+::\+Script\+Translator@{Ogre\+::\+Script\+Translator}!translate@{translate}}
\index{translate@{translate}!Ogre\+::\+Script\+Translator@{Ogre\+::\+Script\+Translator}}
\subsubsection{\texorpdfstring{translate()}{translate()}}
{\footnotesize\ttfamily virtual void Ogre\+::\+Script\+Translator\+::translate (\begin{DoxyParamCaption}\item[{\hyperlink{class_ogre_1_1_script_compiler}{Script\+Compiler} $\ast$}]{compiler,  }\item[{const \hyperlink{group___general_ga15cfb375beeafed87e1bdd96ef10ff36}{Abstract\+Node\+Ptr} \&}]{node }\end{DoxyParamCaption})\hspace{0.3cm}{\ttfamily [pure virtual]}}



This function translates the given node into \hyperlink{namespace_ogre}{Ogre} resource(s). 


\begin{DoxyParams}{Parameters}
{\em compiler} & The compiler invoking this translator \\
\hline
{\em node} & The current A\+ST node to be translated \\
\hline
\end{DoxyParams}


Implemented in \hyperlink{group___r_t_shader_ga50913d8a64482eeefcccaaa9b9eeb1c1}{Ogre\+::\+R\+T\+Shader\+::\+S\+G\+Script\+Translator}, and \hyperlink{struct_ogre_1_1_font_translator_ac2564f3cbdd823615abc5e97c86028bf}{Ogre\+::\+Font\+Translator}.



\subsection{Friends And Related Function Documentation}
\mbox{\Hypertarget{class_ogre_1_1_script_translator_a21b5a1fd7c18f7fa01e39df491088e03}\label{class_ogre_1_1_script_translator_a21b5a1fd7c18f7fa01e39df491088e03}} 
\index{Ogre\+::\+Script\+Translator@{Ogre\+::\+Script\+Translator}!get\+Value@{get\+Value}}
\index{get\+Value@{get\+Value}!Ogre\+::\+Script\+Translator@{Ogre\+::\+Script\+Translator}}
\subsubsection{\texorpdfstring{get\+Value}{getValue}}
{\footnotesize\ttfamily template$<$typename T $>$ \\
bool get\+Value (\begin{DoxyParamCaption}\item[{const \hyperlink{group___general_ga15cfb375beeafed87e1bdd96ef10ff36}{Abstract\+Node\+Ptr} \&}]{node,  }\item[{T \&}]{result }\end{DoxyParamCaption})\hspace{0.3cm}{\ttfamily [friend]}}



The documentation for this class was generated from the following file\+:\begin{DoxyCompactItemize}
\item 
\hyperlink{_ogre_script_translator_8h}{Ogre\+Script\+Translator.\+h}\end{DoxyCompactItemize}
