\hypertarget{a00563_source}{}\doxysection{AAX\+\_\+\+Transport\+Types.\+h}
\label{a00563_source}\index{AAX\_TransportTypes.h@{AAX\_TransportTypes.h}}
\mbox{\hyperlink{a00563}{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}{\ *\ \ Copyright\ 2020-\/2021,\ 2023-\/2024\ Avid\ Technology,\ Inc.}}
\DoxyCodeLine{00005\ \textcolor{comment}{\ *\ \ All\ rights\ reserved.}}
\DoxyCodeLine{00006\ \textcolor{comment}{\ *\ \ }}
\DoxyCodeLine{00007\ \textcolor{comment}{\ *\ \ This\ file\ is\ part\ of\ the\ Avid\ AAX\ SDK.}}
\DoxyCodeLine{00008\ \textcolor{comment}{\ *\ \ }}
\DoxyCodeLine{00009\ \textcolor{comment}{\ *\ \ The\ AAX\ SDK\ is\ subject\ to\ commercial\ or\ open-\/source\ licensing.}}
\DoxyCodeLine{00010\ \textcolor{comment}{\ *\ \ }}
\DoxyCodeLine{00011\ \textcolor{comment}{\ *\ \ By\ using\ the\ AAX\ SDK,\ you\ agree\ to\ the\ terms\ of\ both\ the\ Avid\ AAX\ SDK\ License}}
\DoxyCodeLine{00012\ \textcolor{comment}{\ *\ \ Agreement\ and\ Avid\ Privacy\ Policy.}}
\DoxyCodeLine{00013\ \textcolor{comment}{\ *\ \ }}
\DoxyCodeLine{00014\ \textcolor{comment}{\ *\ \ AAX\ SDK\ License:\ https://developer.avid.com/aax}}
\DoxyCodeLine{00015\ \textcolor{comment}{\ *\ \ Privacy\ Policy:\ https://www.avid.com/legal/privacy-\/policy-\/statement}}
\DoxyCodeLine{00016\ \textcolor{comment}{\ *\ \ }}
\DoxyCodeLine{00017\ \textcolor{comment}{\ *\ \ Or:\ You\ may\ also\ use\ this\ code\ under\ the\ terms\ of\ the\ GPL\ v3\ (see}}
\DoxyCodeLine{00018\ \textcolor{comment}{\ *\ \ www.gnu.org/licenses).}}
\DoxyCodeLine{00019\ \textcolor{comment}{\ *\ \ }}
\DoxyCodeLine{00020\ \textcolor{comment}{\ *\ \ THE\ AAX\ SDK\ IS\ PROVIDED\ "{}AS\ IS"{}\ WITHOUT\ ANY\ WARRANTY,\ AND\ ALL\ WARRANTIES,\ WHETHER}}
\DoxyCodeLine{00021\ \textcolor{comment}{\ *\ \ EXPRESSED\ OR\ IMPLIED,\ INCLUDING\ MERCHANTABILITY\ AND\ FITNESS\ FOR\ PURPOSE,\ ARE}}
\DoxyCodeLine{00022\ \textcolor{comment}{\ *\ \ DISCLAIMED.}}
\DoxyCodeLine{00023\ \textcolor{comment}{\ *}}
\DoxyCodeLine{00024\ \textcolor{comment}{\ */}}
\DoxyCodeLine{00025\ }
\DoxyCodeLine{00032\ \textcolor{comment}{/*================================================================================================*/}}
\DoxyCodeLine{00033\ }
\DoxyCodeLine{00034\ \textcolor{preprocessor}{\#ifndef\ AAX\_TransportTypes\_h\_}}
\DoxyCodeLine{00035\ \textcolor{preprocessor}{\#define\ AAX\_TransportTypes\_h\_}}
\DoxyCodeLine{00036\ \textcolor{preprocessor}{\#pragma\ once}}
\DoxyCodeLine{00037\ }
\DoxyCodeLine{00038\ \textcolor{comment}{//\ AAX\ Includes}}
\DoxyCodeLine{00039\ \textcolor{preprocessor}{\#include\ "{}\mbox{\hyperlink{a00542}{AAX.h}}"{}}}
\DoxyCodeLine{00040\ }
\DoxyCodeLine{00041\ \textcolor{comment}{//\ Standard\ Library\ Includes}}
\DoxyCodeLine{00042\ \textcolor{preprocessor}{\#include\ <string>}}
\DoxyCodeLine{00043\ \textcolor{preprocessor}{\#include\ <sstream>}}
\DoxyCodeLine{00044\ }
\DoxyCodeLine{00045\ \textcolor{preprocessor}{\#include\ AAX\_ALIGN\_FILE\_BEGIN}}
\DoxyCodeLine{00046\ \textcolor{preprocessor}{\#include\ AAX\_ALIGN\_FILE\_HOST}}
\DoxyCodeLine{00047\ \textcolor{preprocessor}{\#include\ AAX\_ALIGN\_FILE\_END}}
\DoxyCodeLine{00048\ }
\DoxyCodeLine{00052\ \textcolor{keyword}{struct\ }\mbox{\hyperlink{a02362}{AAX\_TransportStateInfo\_V1}}}
\DoxyCodeLine{00053\ \{}
\DoxyCodeLine{00054\ \ \ \ \ \mbox{\hyperlink{a00446_adefd494247774bd41439464b1fc0c91e}{AAX\_ETransportState}}\ \ \mbox{\hyperlink{a02362_a7df96947162785bf536eae694c8770d0}{mTransportState}};}
\DoxyCodeLine{00055\ \ \ \ \ \mbox{\hyperlink{a00446_a0d4337f7abfc9a4a9466d222645a20ed}{AAX\_ERecordMode}}\ \ \mbox{\hyperlink{a02362_aa2df5905b113e180d8706e1212d9027a}{mRecordMode}};}
\DoxyCodeLine{00056\ \ \ \ \ \mbox{\hyperlink{a00542_aa216506530f1d19a2965931ced2b274b}{AAX\_CBoolean}}\ \mbox{\hyperlink{a02362_a4539ee892cd92839a6ac1dc76f2423bd}{mIsRecordEnabled}};}
\DoxyCodeLine{00057\ \ \ \ \ \mbox{\hyperlink{a00542_aa216506530f1d19a2965931ced2b274b}{AAX\_CBoolean}}\ \mbox{\hyperlink{a02362_a7419a83c9e7eb629995a05caeb7c8fac}{mIsRecording}};}
\DoxyCodeLine{00058\ \ \ \ \ \mbox{\hyperlink{a00542_aa216506530f1d19a2965931ced2b274b}{AAX\_CBoolean}}\ \mbox{\hyperlink{a02362_aebe2578ac9bed0fdc3f99fce5f92f37e}{mIsLoopEnabled}};}
\DoxyCodeLine{00059\ }
\DoxyCodeLine{00060\ \ \ \ \ \mbox{\hyperlink{a02362_a779b5dc678596bc8607624bdf3ab4ee5}{AAX\_TransportStateInfo\_V1}}()\ :}
\DoxyCodeLine{00061\ \ \ \ \ \ \ \ \ \mbox{\hyperlink{a02362_a7df96947162785bf536eae694c8770d0}{mTransportState}}(\mbox{\hyperlink{a00446_adefd494247774bd41439464b1fc0c91ead86b357d2fafa358a84c50380d16c1e2}{AAX\_eTransportState\_Unknown}}),}
\DoxyCodeLine{00062\ \ \ \ \ \ \ \ \ \mbox{\hyperlink{a02362_aa2df5905b113e180d8706e1212d9027a}{mRecordMode}}(\mbox{\hyperlink{a00446_a0d4337f7abfc9a4a9466d222645a20edae589aa227f85d585333d18c0319d5d18}{AAX\_eRecordMode\_Unknown}}),\ }
\DoxyCodeLine{00063\ \ \ \ \ \ \ \ \ \mbox{\hyperlink{a02362_a4539ee892cd92839a6ac1dc76f2423bd}{mIsRecordEnabled}}(false),\ }
\DoxyCodeLine{00064\ \ \ \ \ \ \ \ \ \mbox{\hyperlink{a02362_a7419a83c9e7eb629995a05caeb7c8fac}{mIsRecording}}(false),\ }
\DoxyCodeLine{00065\ \ \ \ \ \ \ \ \ \mbox{\hyperlink{a02362_aebe2578ac9bed0fdc3f99fce5f92f37e}{mIsLoopEnabled}}(false)}
\DoxyCodeLine{00066\ \ \ \ \ \{}
\DoxyCodeLine{00067\ \ \ \ \ \ \ \ \ \textcolor{keyword}{static\_assert}(\textcolor{keyword}{sizeof}(\mbox{\hyperlink{a02362_a779b5dc678596bc8607624bdf3ab4ee5}{AAX\_TransportStateInfo\_V1}})\ ==\ 12,\ \textcolor{stringliteral}{"{}Invalid\ size\ of\ AAX\_TransportStateInfo\_V1\ struct\ during\ compilation!"{}});}
\DoxyCodeLine{00068\ \ \ \ \ \}}
\DoxyCodeLine{00069\ }
\DoxyCodeLine{00070\ \ \ \ \ \textcolor{keyword}{inline}\ std::string\ \mbox{\hyperlink{a02362_a0d2c44ac0eaf9a56e2c17790b6204d53}{ToString}}()\textcolor{keyword}{\ const}}
\DoxyCodeLine{00071\ \textcolor{keyword}{\ \ \ \ }\{}
\DoxyCodeLine{00072\ \ \ \ \ \ \ \ \ std::stringstream\ ss;}
\DoxyCodeLine{00073\ }
\DoxyCodeLine{00074\ \ \ \ \ \ \ \ \ ss\ <<\ \textcolor{stringliteral}{"{}\{"{}}\ <<\ std::endl;}
\DoxyCodeLine{00075\ \ \ \ \ \ \ \ \ ss\ <<\ \textcolor{stringliteral}{"{}\(\backslash\)"{}transport\_state\(\backslash\)"{}:\ "{}}\ <<\ \mbox{\hyperlink{a02362_a7df96947162785bf536eae694c8770d0}{mTransportState}}\ <<\ \textcolor{stringliteral}{"{},"{}}\ <<\ std::endl;}
\DoxyCodeLine{00076\ \ \ \ \ \ \ \ \ ss\ <<\ \textcolor{stringliteral}{"{}\(\backslash\)"{}record\_mode\(\backslash\)"{}:\ "{}}\ <<\ \mbox{\hyperlink{a02362_aa2df5905b113e180d8706e1212d9027a}{mRecordMode}}\ <<\ \textcolor{stringliteral}{"{},"{}}\ <<\ std::endl;}
\DoxyCodeLine{00077\ \ \ \ \ \ \ \ \ ss\ <<\ \textcolor{stringliteral}{"{}\(\backslash\)"{}is\_record\_enabled\(\backslash\)"{}:\ "{}}\ <<\ \mbox{\hyperlink{a02362_a4539ee892cd92839a6ac1dc76f2423bd}{mIsRecordEnabled}}\ <<\ \textcolor{stringliteral}{"{},"{}}\ <<\ std::endl;}
\DoxyCodeLine{00078\ \ \ \ \ \ \ \ \ ss\ <<\ \textcolor{stringliteral}{"{}\(\backslash\)"{}is\_recording\(\backslash\)"{}:\ "{}}\ <<\ \mbox{\hyperlink{a02362_a7419a83c9e7eb629995a05caeb7c8fac}{mIsRecording}}\ <<\ \textcolor{stringliteral}{"{},"{}}\ <<\ std::endl;}
\DoxyCodeLine{00079\ \ \ \ \ \ \ \ \ ss\ <<\ \textcolor{stringliteral}{"{}\(\backslash\)"{}is\_loop\_enabled\(\backslash\)"{}:\ "{}}\ <<\ \mbox{\hyperlink{a02362_aebe2578ac9bed0fdc3f99fce5f92f37e}{mIsLoopEnabled}}\ <<\ std::endl;}
\DoxyCodeLine{00080\ \ \ \ \ \ \ \ \ ss\ <<\ \textcolor{stringliteral}{"{}\}"{}};}
\DoxyCodeLine{00081\ }
\DoxyCodeLine{00082\ \ \ \ \ \ \ \ \ \textcolor{keywordflow}{return}\ ss.str();}
\DoxyCodeLine{00083\ \ \ \ \ \}}
\DoxyCodeLine{00084\ \};}
\DoxyCodeLine{00085\ }
\DoxyCodeLine{00086\ \textcolor{preprocessor}{\#include\ AAX\_ALIGN\_FILE\_BEGIN}}
\DoxyCodeLine{00087\ \textcolor{preprocessor}{\#include\ AAX\_ALIGN\_FILE\_RESET}}
\DoxyCodeLine{00088\ \textcolor{preprocessor}{\#include\ AAX\_ALIGN\_FILE\_END}}
\DoxyCodeLine{00089\ }
\DoxyCodeLine{00090\ \textcolor{keyword}{inline}\ \textcolor{keywordtype}{bool}\ \mbox{\hyperlink{a00563_a50fc0a1c014613c17a44dbae8dcc452f}{operator==}}(\textcolor{keyword}{const}\ \mbox{\hyperlink{a02362}{AAX\_TransportStateInfo\_V1}}\&\ state1,\ \textcolor{keyword}{const}\ \mbox{\hyperlink{a02362}{AAX\_TransportStateInfo\_V1}}\&\ state2)}
\DoxyCodeLine{00091\ \{}
\DoxyCodeLine{00092\ \ \ \ \ \textcolor{keywordflow}{return}\ (state1.\mbox{\hyperlink{a02362_a7df96947162785bf536eae694c8770d0}{mTransportState}}\ ==\ state2.\mbox{\hyperlink{a02362_a7df96947162785bf536eae694c8770d0}{mTransportState}})\ \&\&\ (state1.\mbox{\hyperlink{a02362_aa2df5905b113e180d8706e1212d9027a}{mRecordMode}}\ ==\ state2.\mbox{\hyperlink{a02362_aa2df5905b113e180d8706e1212d9027a}{mRecordMode}})\ \&\&}
\DoxyCodeLine{00093\ \ \ \ \ \ \ \ \ (state1.\mbox{\hyperlink{a02362_a4539ee892cd92839a6ac1dc76f2423bd}{mIsRecordEnabled}}\ ==\ state2.\mbox{\hyperlink{a02362_a4539ee892cd92839a6ac1dc76f2423bd}{mIsRecordEnabled}})\ \&\&\ (state1.\mbox{\hyperlink{a02362_a7419a83c9e7eb629995a05caeb7c8fac}{mIsRecording}}\ ==\ state2.\mbox{\hyperlink{a02362_a7419a83c9e7eb629995a05caeb7c8fac}{mIsRecording}})\ \&\&}
\DoxyCodeLine{00094\ \ \ \ \ \ \ \ \ (state1.\mbox{\hyperlink{a02362_aebe2578ac9bed0fdc3f99fce5f92f37e}{mIsLoopEnabled}}\ ==\ state2.\mbox{\hyperlink{a02362_aebe2578ac9bed0fdc3f99fce5f92f37e}{mIsLoopEnabled}});}
\DoxyCodeLine{00095\ \}}
\DoxyCodeLine{00096\ }
\DoxyCodeLine{00097\ \textcolor{keyword}{inline}\ \textcolor{keywordtype}{bool}\ \mbox{\hyperlink{a00563_a7a85c8cb6d9c663e46edccf7cbf878fa}{operator!=}}(\textcolor{keyword}{const}\ \mbox{\hyperlink{a02362}{AAX\_TransportStateInfo\_V1}}\&\ state1,\ \textcolor{keyword}{const}\ \mbox{\hyperlink{a02362}{AAX\_TransportStateInfo\_V1}}\&\ state2)}
\DoxyCodeLine{00098\ \{}
\DoxyCodeLine{00099\ \ \ \ \ \textcolor{keywordflow}{return}\ !(state1\ ==\ state2);}
\DoxyCodeLine{00100\ \}}
\DoxyCodeLine{00101\ }
\DoxyCodeLine{00102\ \textcolor{preprocessor}{\#endif\ }\textcolor{comment}{//\ \#ifndef\ AAX\_TransportTypes\_h\_}}

\end{DoxyCode}
