\hypertarget{a00536_source}{}\doxysection{AAX\+\_\+\+Environment\+Utilities.\+h}
\label{a00536_source}\index{AAX\_EnvironmentUtilities.h@{AAX\_EnvironmentUtilities.h}}
\mbox{\hyperlink{a00536}{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-\/2024\ Avid\ Technology,\ Inc.}}
\DoxyCodeLine{00007\ \textcolor{comment}{\ \ \ \ All\ rights\ reserved.}}
\DoxyCodeLine{00008\ \textcolor{comment}{\ \ \ \ }}
\DoxyCodeLine{00009\ \textcolor{comment}{\ \ \ \ This\ file\ is\ part\ of\ the\ Avid\ AAX\ SDK.}}
\DoxyCodeLine{00010\ \textcolor{comment}{\ \ \ \ }}
\DoxyCodeLine{00011\ \textcolor{comment}{\ \ \ \ The\ AAX\ SDK\ is\ subject\ to\ commercial\ or\ open-\/source\ licensing.}}
\DoxyCodeLine{00012\ \textcolor{comment}{\ \ \ \ }}
\DoxyCodeLine{00013\ \textcolor{comment}{\ \ \ \ By\ using\ the\ AAX\ SDK,\ you\ agree\ to\ the\ terms\ of\ both\ the\ Avid\ AAX\ SDK\ License}}
\DoxyCodeLine{00014\ \textcolor{comment}{\ \ \ \ Agreement\ and\ Avid\ Privacy\ Policy.}}
\DoxyCodeLine{00015\ \textcolor{comment}{\ \ \ \ }}
\DoxyCodeLine{00016\ \textcolor{comment}{\ \ \ \ AAX\ SDK\ License:\ https://developer.avid.com/aax}}
\DoxyCodeLine{00017\ \textcolor{comment}{\ \ \ \ Privacy\ Policy:\ https://www.avid.com/legal/privacy-\/policy-\/statement}}
\DoxyCodeLine{00018\ \textcolor{comment}{\ \ \ \ }}
\DoxyCodeLine{00019\ \textcolor{comment}{\ \ \ \ Or:\ You\ may\ also\ use\ this\ code\ under\ the\ terms\ of\ the\ GPL\ v3\ (see}}
\DoxyCodeLine{00020\ \textcolor{comment}{\ \ \ \ www.gnu.org/licenses).}}
\DoxyCodeLine{00021\ \textcolor{comment}{\ \ \ \ }}
\DoxyCodeLine{00022\ \textcolor{comment}{\ \ \ \ THE\ AAX\ SDK\ IS\ PROVIDED\ "{}AS\ IS"{}\ WITHOUT\ ANY\ WARRANTY,\ AND\ ALL\ WARRANTIES,\ WHETHER}}
\DoxyCodeLine{00023\ \textcolor{comment}{\ \ \ \ EXPRESSED\ OR\ IMPLIED,\ INCLUDING\ MERCHANTABILITY\ AND\ FITNESS\ FOR\ PURPOSE,\ ARE}}
\DoxyCodeLine{00024\ \textcolor{comment}{\ \ \ \ DISCLAIMED.}}
\DoxyCodeLine{00025\ \textcolor{comment}{*/}}
\DoxyCodeLine{00026\ }
\DoxyCodeLine{00033\ \textcolor{comment}{/*================================================================================================*/}}
\DoxyCodeLine{00034\ }
\DoxyCodeLine{00035\ \textcolor{preprocessor}{\#ifndef\ \_AAX\_ENVIRONMENTUTILITIES\_H\_}}
\DoxyCodeLine{00036\ \textcolor{preprocessor}{\#define\ \_AAX\_ENVIRONMENTUTILITIES\_H\_}}
\DoxyCodeLine{00037\ }
\DoxyCodeLine{00038\ \textcolor{preprocessor}{\#include\ <cstdlib>}}
\DoxyCodeLine{00039\ }
\DoxyCodeLine{00040\ \textcolor{preprocessor}{\#if\ (!defined\ (WINDOWS\_VERSION))}}
\DoxyCodeLine{00041\ \textcolor{preprocessor}{\#\ \ if\ (defined\ (\_WIN32))}}
\DoxyCodeLine{00042\ \textcolor{preprocessor}{\#\ \ \ \ define\ WINDOWS\_VERSION\ 1}}
\DoxyCodeLine{00043\ \textcolor{preprocessor}{\#\ \ endif}}
\DoxyCodeLine{00044\ \textcolor{preprocessor}{\#elif\ (defined\ (MAC\_VERSION)\ ||\ defined\ (LINUX\_VERSION))}}
\DoxyCodeLine{00045\ \textcolor{preprocessor}{\#\ \ error\ "{}AAX\ SDK:\ Cannot\ declare\ more\ than\ one\ OS\ environment"{}}}
\DoxyCodeLine{00046\ \textcolor{preprocessor}{\#endif}}
\DoxyCodeLine{00047\ }
\DoxyCodeLine{00048\ \textcolor{preprocessor}{\#if\ (!defined\ (MAC\_VERSION))}}
\DoxyCodeLine{00049\ \textcolor{preprocessor}{\#\ \ if\ (defined\ (\_\_APPLE\_\_)\ \&\&\ defined\ (\_\_MACH\_\_))}}
\DoxyCodeLine{00050\ \textcolor{preprocessor}{\#\ \ \ \ include\ "{}TargetConditionals.h"{}}}
\DoxyCodeLine{00051\ \textcolor{preprocessor}{\#\ \ \ \ if\ (TARGET\_OS\_MAC)}}
\DoxyCodeLine{00052\ \textcolor{preprocessor}{\#\ \ \ \ \ \ define\ MAC\_VERSION\ 1}}
\DoxyCodeLine{00053\ \textcolor{preprocessor}{\#\ \ \ \ endif}}
\DoxyCodeLine{00054\ \textcolor{preprocessor}{\#\ \ endif}}
\DoxyCodeLine{00055\ \textcolor{preprocessor}{\#elif\ (defined\ (WINDOWS\_VERSION)\ ||\ defined\ (LINUX\_VERSION))}}
\DoxyCodeLine{00056\ \textcolor{preprocessor}{\#\ \ error\ "{}AAX\ SDK:\ Cannot\ declare\ more\ than\ one\ OS\ environment"{}}}
\DoxyCodeLine{00057\ \textcolor{preprocessor}{\#endif}}
\DoxyCodeLine{00058\ }
\DoxyCodeLine{00059\ \textcolor{preprocessor}{\#if\ (!defined\ (LINUX\_VERSION))}}
\DoxyCodeLine{00060\ \textcolor{preprocessor}{\#\ \ if\ (defined\ (\_\_linux\_\_))}}
\DoxyCodeLine{00061\ \textcolor{preprocessor}{\#\ \ \ \ define\ LINUX\_VERSION\ 1}}
\DoxyCodeLine{00062\ \textcolor{preprocessor}{\#\ \ endif}}
\DoxyCodeLine{00063\ \textcolor{preprocessor}{\#elif\ (defined\ (WINDOWS\_VERSION)\ ||\ defined\ (MAC\_VERSION))}}
\DoxyCodeLine{00064\ \textcolor{preprocessor}{\#\ \ error\ "{}AAX\ SDK:\ Cannot\ declare\ more\ than\ one\ OS\ environment"{}}}
\DoxyCodeLine{00065\ \textcolor{preprocessor}{\#endif}}
\DoxyCodeLine{00066\ }
\DoxyCodeLine{00067\ \textcolor{preprocessor}{\#if\ (!defined\ (WINDOWS\_VERSION)\ \&\&\ !defined\ (MAC\_VERSION)\ \&\&\ !defined\ (LINUX\_VERSION))}}
\DoxyCodeLine{00068\ \textcolor{preprocessor}{\#\ \ warning\ "{}AAX\ SDK:\ Unknown\ OS\ environment"{}}}
\DoxyCodeLine{00069\ \textcolor{preprocessor}{\#endif}}
\DoxyCodeLine{00070\ }
\DoxyCodeLine{00071\ \textcolor{keyword}{namespace\ }\mbox{\hyperlink{a00948}{AAX}}}
\DoxyCodeLine{00072\ \{}
\DoxyCodeLine{00073\ \ \ \ \ \textcolor{keyword}{static}\ \textcolor{keywordtype}{bool}\ IsVenueSystem(\textcolor{keywordtype}{void})}
\DoxyCodeLine{00074\ \ \ \ \ \{}
\DoxyCodeLine{00075\ \textcolor{preprocessor}{\#if\ WINDOWS\_VERSION}}
\DoxyCodeLine{00076\ \ \ \ \ \ \ \ \ \textcolor{keyword}{static}\ \textcolor{keyword}{const}\ \textcolor{keywordtype}{char}\ *\ \textcolor{keyword}{const}\ environmentVariableName\ =\ \textcolor{stringliteral}{"{}JEX\_HOST\_TYPE"{}};}
\DoxyCodeLine{00077\ \ \ \ \ \ \ \ \ \textcolor{keyword}{static}\ \textcolor{keyword}{const}\ \textcolor{keywordtype}{char}\ *\ \textcolor{keyword}{const}\ venueEnvironment\ =\ \textcolor{stringliteral}{"{}venue"{}};}
\DoxyCodeLine{00078\ \ \ \ \ \ \ \ \ \textcolor{keyword}{static}\ \textcolor{keyword}{const}\ \textcolor{keywordtype}{char}\ *\ \textcolor{keyword}{const}\ environment\ =\ std::getenv\ (\ environmentVariableName\ );}
\DoxyCodeLine{00079\ \ \ \ \ \ \ \ \ \textcolor{keyword}{static}\ \textcolor{keyword}{const}\ \textcolor{keywordtype}{bool}\ isVenue\ =\ (\ NULL\ !=\ environment)\ \&\&\ (0\ ==\ strcmp\ (\ environment,\ venueEnvironment\ )\ );}
\DoxyCodeLine{00080\ \ \ \ \ \ \ \ \ \textcolor{keywordflow}{return}\ isVenue;}
\DoxyCodeLine{00081\ \textcolor{preprocessor}{\#else}}
\DoxyCodeLine{00082\ \ \ \ \ \ \ \ \ \textcolor{keywordflow}{return}\ \textcolor{keyword}{false};}
\DoxyCodeLine{00083\ \textcolor{preprocessor}{\#endif}}
\DoxyCodeLine{00084\ \ \ \ \ \}}
\DoxyCodeLine{00085\ \}}
\DoxyCodeLine{00086\ }
\DoxyCodeLine{00087\ \textcolor{preprocessor}{\#endif\ }\textcolor{comment}{//\ \_AAX\_ENVIRONMENTUTILITIES\_H\_}}

\end{DoxyCode}
