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


This class translates script A\+ST (abstract syntax tree) into \mbox{\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}
\doxysubsection*{Public Member Functions}
\begin{DoxyCompactItemize}
\item 
virtual void \mbox{\hyperlink{class_ogre_1_1_script_translator_a6f0fa5113e8c5fecf2da9afe6f624262}{translate}} (\mbox{\hyperlink{class_ogre_1_1_script_compiler}{Script\+Compiler}} $\ast$compiler, const \mbox{\hyperlink{group___general_ga15cfb375beeafed87e1bdd96ef10ff36}{Abstract\+Node\+Ptr}} \&node)=0
\begin{DoxyCompactList}\small\item\em This function translates the given node into \mbox{\hyperlink{namespace_ogre}{Ogre}} resource(s). \end{DoxyCompactList}\end{DoxyCompactItemize}
\doxysubsection*{Friends}
\begin{DoxyCompactItemize}
\item 
{\footnotesize template$<$typename T $>$ }\\bool \mbox{\hyperlink{class_ogre_1_1_script_translator_a21b5a1fd7c18f7fa01e39df491088e03}{get\+Value}} (const \mbox{\hyperlink{group___general_ga15cfb375beeafed87e1bdd96ef10ff36}{Abstract\+Node\+Ptr}} \&node, T \&result)
\end{DoxyCompactItemize}


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

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

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



This function translates the given node into \mbox{\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 \mbox{\hyperlink{group___r_t_shader_ga50913d8a64482eeefcccaaa9b9eeb1c1}{Ogre\+::\+R\+T\+Shader\+::\+S\+G\+Script\+Translator}}, \mbox{\hyperlink{struct_ogre_1_1_overlay_translator_a5c5b3d59284fa3459e3565a16496230c}{Ogre\+::\+Overlay\+Translator}}, \mbox{\hyperlink{struct_ogre_1_1_element_translator_ab472de964103cf3fdc0ab8af92fda79c}{Ogre\+::\+Element\+Translator}}, and \mbox{\hyperlink{struct_ogre_1_1_font_translator_ac2564f3cbdd823615abc5e97c86028bf}{Ogre\+::\+Font\+Translator}}.



\doxysubsection{Friends And Related Function Documentation}
\mbox{\Hypertarget{class_ogre_1_1_script_translator_a21b5a1fd7c18f7fa01e39df491088e03}\label{class_ogre_1_1_script_translator_a21b5a1fd7c18f7fa01e39df491088e03}} 
\index{Ogre::ScriptTranslator@{Ogre::ScriptTranslator}!getValue@{getValue}}
\index{getValue@{getValue}!Ogre::ScriptTranslator@{Ogre::ScriptTranslator}}
\doxysubsubsection{\texorpdfstring{getValue}{getValue}}
{\footnotesize\ttfamily template$<$typename T $>$ \\
bool get\+Value (\begin{DoxyParamCaption}\item[{const \mbox{\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 
\mbox{\hyperlink{_ogre_script_translator_8h}{Ogre\+Script\+Translator.\+h}}\end{DoxyCompactItemize}
