\hypertarget{a00527_source}{}\doxysection{AAX\+\_\+\+Environment\+Utilities.\+h}
\label{a00527_source}\index{AAX\_EnvironmentUtilities.h@{AAX\_EnvironmentUtilities.h}}
\mbox{\hyperlink{a00527}{Go to the documentation of this file.}}
\begin{DoxyCode}{0}
\DoxyCodeLine{00001\ \textcolor{comment}{/*================================================================================================*/}}
\DoxyCodeLine{00002\ \textcolor{comment}{/*}}
\DoxyCodeLine{00003\ \textcolor{comment}{}}
\DoxyCodeLine{00004\ \textcolor{comment}{\ \ \ \ AAX\_EnvironmentUtilities.h}}
\DoxyCodeLine{00005\ \textcolor{comment}{}}
\DoxyCodeLine{00006\ \textcolor{comment}{\ \ \ \ Copyright\ 2018-\/2019,\ 2023\ Avid\ Technology,\ Inc.}}
\DoxyCodeLine{00007\ \textcolor{comment}{\ \ \ \ All\ rights\ reserved.}}
\DoxyCodeLine{00008\ \textcolor{comment}{\ \ \ \ }}
\DoxyCodeLine{00009\ \textcolor{comment}{\ \ \ \ CONFIDENTIAL:\ this\ document\ contains\ confidential\ information\ of\ Avid.\ Do}}
\DoxyCodeLine{00010\ \textcolor{comment}{\ \ \ \ not\ disclose\ to\ any\ third\ party.\ Use\ of\ the\ information\ contained\ in\ this}}
\DoxyCodeLine{00011\ \textcolor{comment}{\ \ \ \ document\ is\ subject\ to\ an\ Avid\ SDK\ license.}}
\DoxyCodeLine{00012\ \textcolor{comment}{*/}}
\DoxyCodeLine{00013\ }
\DoxyCodeLine{00020\ \textcolor{comment}{/*================================================================================================*/}}
\DoxyCodeLine{00021\ }
\DoxyCodeLine{00022\ \textcolor{preprocessor}{\#ifndef\ \_AAX\_ENVIRONMENTUTILITIES\_H\_}}
\DoxyCodeLine{00023\ \textcolor{preprocessor}{\#define\ \_AAX\_ENVIRONMENTUTILITIES\_H\_}}
\DoxyCodeLine{00024\ }
\DoxyCodeLine{00025\ \textcolor{preprocessor}{\#include\ <cstdlib>}}
\DoxyCodeLine{00026\ }
\DoxyCodeLine{00027\ \textcolor{preprocessor}{\#if\ (!defined\ (WINDOWS\_VERSION))}}
\DoxyCodeLine{00028\ \textcolor{preprocessor}{\#\ \ if\ (defined\ (\_WIN32))}}
\DoxyCodeLine{00029\ \textcolor{preprocessor}{\#\ \ \ \ define\ WINDOWS\_VERSION\ 1}}
\DoxyCodeLine{00030\ \textcolor{preprocessor}{\#\ \ endif}}
\DoxyCodeLine{00031\ \textcolor{preprocessor}{\#elif\ (defined\ (MAC\_VERSION)\ ||\ defined\ (LINUX\_VERSION))}}
\DoxyCodeLine{00032\ \textcolor{preprocessor}{\#\ \ error\ "{}AAX\ SDK:\ Cannot\ declare\ more\ than\ one\ OS\ environment"{}}}
\DoxyCodeLine{00033\ \textcolor{preprocessor}{\#endif}}
\DoxyCodeLine{00034\ }
\DoxyCodeLine{00035\ \textcolor{preprocessor}{\#if\ (!defined\ (MAC\_VERSION))}}
\DoxyCodeLine{00036\ \textcolor{preprocessor}{\#\ \ if\ (defined\ (\_\_APPLE\_\_)\ \&\&\ defined\ (\_\_MACH\_\_))}}
\DoxyCodeLine{00037\ \textcolor{preprocessor}{\#\ \ \ \ include\ "{}TargetConditionals.h"{}}}
\DoxyCodeLine{00038\ \textcolor{preprocessor}{\#\ \ \ \ if\ (TARGET\_OS\_MAC)}}
\DoxyCodeLine{00039\ \textcolor{preprocessor}{\#\ \ \ \ \ \ define\ MAC\_VERSION\ 1}}
\DoxyCodeLine{00040\ \textcolor{preprocessor}{\#\ \ \ \ endif}}
\DoxyCodeLine{00041\ \textcolor{preprocessor}{\#\ \ endif}}
\DoxyCodeLine{00042\ \textcolor{preprocessor}{\#elif\ (defined\ (WINDOWS\_VERSION)\ ||\ defined\ (LINUX\_VERSION))}}
\DoxyCodeLine{00043\ \textcolor{preprocessor}{\#\ \ error\ "{}AAX\ SDK:\ Cannot\ declare\ more\ than\ one\ OS\ environment"{}}}
\DoxyCodeLine{00044\ \textcolor{preprocessor}{\#endif}}
\DoxyCodeLine{00045\ }
\DoxyCodeLine{00046\ \textcolor{preprocessor}{\#if\ (!defined\ (LINUX\_VERSION))}}
\DoxyCodeLine{00047\ \textcolor{preprocessor}{\#\ \ if\ (defined\ (\_\_linux\_\_))}}
\DoxyCodeLine{00048\ \textcolor{preprocessor}{\#\ \ \ \ define\ LINUX\_VERSION\ 1}}
\DoxyCodeLine{00049\ \textcolor{preprocessor}{\#\ \ endif}}
\DoxyCodeLine{00050\ \textcolor{preprocessor}{\#elif\ (defined\ (WINDOWS\_VERSION)\ ||\ defined\ (MAC\_VERSION))}}
\DoxyCodeLine{00051\ \textcolor{preprocessor}{\#\ \ error\ "{}AAX\ SDK:\ Cannot\ declare\ more\ than\ one\ OS\ environment"{}}}
\DoxyCodeLine{00052\ \textcolor{preprocessor}{\#endif}}
\DoxyCodeLine{00053\ }
\DoxyCodeLine{00054\ \textcolor{preprocessor}{\#if\ (!defined\ (WINDOWS\_VERSION)\ \&\&\ !defined\ (MAC\_VERSION)\ \&\&\ !defined\ (LINUX\_VERSION))}}
\DoxyCodeLine{00055\ \textcolor{preprocessor}{\#\ \ warning\ "{}AAX\ SDK:\ Unknown\ OS\ environment"{}}}
\DoxyCodeLine{00056\ \textcolor{preprocessor}{\#endif}}
\DoxyCodeLine{00057\ }
\DoxyCodeLine{00058\ \textcolor{keyword}{namespace\ }\mbox{\hyperlink{a00935}{AAX}}}
\DoxyCodeLine{00059\ \{}
\DoxyCodeLine{00060\ \ \ \ \ \textcolor{keyword}{static}\ \textcolor{keywordtype}{bool}\ IsVenueSystem(\textcolor{keywordtype}{void})}
\DoxyCodeLine{00061\ \ \ \ \ \{}
\DoxyCodeLine{00062\ \textcolor{preprocessor}{\#if\ WINDOWS\_VERSION}}
\DoxyCodeLine{00063\ \ \ \ \ \ \ \ \ \textcolor{keyword}{static}\ \textcolor{keyword}{const}\ \textcolor{keywordtype}{char}\ *\ \textcolor{keyword}{const}\ environmentVariableName\ =\ \textcolor{stringliteral}{"{}JEX\_HOST\_TYPE"{}};}
\DoxyCodeLine{00064\ \ \ \ \ \ \ \ \ \textcolor{keyword}{static}\ \textcolor{keyword}{const}\ \textcolor{keywordtype}{char}\ *\ \textcolor{keyword}{const}\ venueEnvironment\ =\ \textcolor{stringliteral}{"{}venue"{}};}
\DoxyCodeLine{00065\ \ \ \ \ \ \ \ \ \textcolor{keyword}{static}\ \textcolor{keyword}{const}\ \textcolor{keywordtype}{char}\ *\ \textcolor{keyword}{const}\ environment\ =\ std::getenv\ (\ environmentVariableName\ );}
\DoxyCodeLine{00066\ \ \ \ \ \ \ \ \ \textcolor{keyword}{static}\ \textcolor{keyword}{const}\ \textcolor{keywordtype}{bool}\ isVenue\ =\ (\ NULL\ !=\ environment)\ \&\&\ (0\ ==\ strcmp\ (\ environment,\ venueEnvironment\ )\ );}
\DoxyCodeLine{00067\ \ \ \ \ \ \ \ \ \textcolor{keywordflow}{return}\ isVenue;}
\DoxyCodeLine{00068\ \textcolor{preprocessor}{\#else}}
\DoxyCodeLine{00069\ \ \ \ \ \ \ \ \ \textcolor{keywordflow}{return}\ \textcolor{keyword}{false};}
\DoxyCodeLine{00070\ \textcolor{preprocessor}{\#endif}}
\DoxyCodeLine{00071\ \ \ \ \ \}}
\DoxyCodeLine{00072\ \}}
\DoxyCodeLine{00073\ }
\DoxyCodeLine{00074\ \textcolor{preprocessor}{\#endif\ }\textcolor{comment}{//\ \_AAX\_ENVIRONMENTUTILITIES\_H\_}}

\end{DoxyCode}
