\doxysection{Bds\+Data\+File\+Tape\+Digitiser.\+h}
\hypertarget{BdsDataFileTapeDigitiser_8h_source}{}\label{BdsDataFileTapeDigitiser_8h_source}\index{/src/blacknest/bds/bds/bdsDataLib/BdsDataFileTapeDigitiser.h@{/src/blacknest/bds/bds/bdsDataLib/BdsDataFileTapeDigitiser.h}}
\mbox{\hyperlink{BdsDataFileTapeDigitiser_8h}{Go to the documentation of this file.}}
\begin{DoxyCode}{0}
\DoxyCodeLine{00001\ \textcolor{comment}{/*******************************************************************************}}
\DoxyCodeLine{00002\ \textcolor{comment}{\ *\ \ BdsDataFileTapeDigitiser.h\ \ DataFileTapeDigitiser}}
\DoxyCodeLine{00003\ \textcolor{comment}{\ *\ \ \ \ \ \ \ \ \ \ T.Barnaby,\ \ BEAM\ Ltd,\ \ \ 2006-\/03-\/17}}
\DoxyCodeLine{00004\ \textcolor{comment}{\ *******************************************************************************}}
\DoxyCodeLine{00005\ \textcolor{comment}{\ */}}
\DoxyCodeLine{00006\ \textcolor{preprocessor}{\#ifndef\ BdsDataFileTapeDigitiser\_H}}
\DoxyCodeLine{00007\ \textcolor{preprocessor}{\#define\ BdsDataFileTapeDigitiser\_H\ \ 1}}
\DoxyCodeLine{00008\ }
\DoxyCodeLine{00009\ \textcolor{preprocessor}{\#include\ <BTypes.h>}}
\DoxyCodeLine{00010\ \textcolor{preprocessor}{\#include\ <BError.h>}}
\DoxyCodeLine{00011\ \textcolor{preprocessor}{\#include\ <BFile.h>}}
\DoxyCodeLine{00012\ \textcolor{preprocessor}{\#include\ <BEntry.h>}}
\DoxyCodeLine{00013\ \textcolor{preprocessor}{\#include\ <BBuffer.h>}}
\DoxyCodeLine{00014\ \textcolor{preprocessor}{\#include\ <BDict.h>}}
\DoxyCodeLine{00015\ \textcolor{preprocessor}{\#include\ <\mbox{\hyperlink{BdsDataFile_8h}{BdsDataFile.h}}>}}
\DoxyCodeLine{00016\ }
\DoxyCodeLine{00017\ \textcolor{keyword}{namespace\ }\mbox{\hyperlink{namespaceBds}{Bds}}\ \{}
\DoxyCodeLine{00018\ }
\DoxyCodeLine{00020\ \textcolor{keyword}{class\ }\mbox{\hyperlink{classBds_1_1DataFileTapeDigitiser}{DataFileTapeDigitiser}}\ :\ \textcolor{keyword}{public}\ \mbox{\hyperlink{classBds_1_1DataFile}{DataFile}}\ \{}
\DoxyCodeLine{00021\ \textcolor{keyword}{public}:}
\DoxyCodeLine{00022\ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \mbox{\hyperlink{classBds_1_1DataFileTapeDigitiser_afec5099ce3e035c71de714ceb13897b9}{DataFileTapeDigitiser}}();}
\DoxyCodeLine{00023\ \ \ \ \ }
\DoxyCodeLine{00024\ \ \ \ \ BError\ \ \ \ \ \ \ \ \ \ \ \ \mbox{\hyperlink{classBds_1_1DataFileTapeDigitiser_a1e2fa2769b490954c9fe59630c9c3909}{open}}(BString\ fileName,\ BString\ mode);\ \ \ \ \ }
\DoxyCodeLine{00025\ }
\DoxyCodeLine{00026\ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \textcolor{comment}{//\ Read\ routines}}
\DoxyCodeLine{00027\ \ \ \ \ BError\ \ \ \ \ \ \ \ \ \ \ \ \mbox{\hyperlink{classBds_1_1DataFileTapeDigitiser_ad4aa49e71065ee1ca1383a2cbcb9db23}{getInfo}}(\mbox{\hyperlink{classBds_1_1DataInfo}{DataInfo}}\&\ dataInfo,\ \mbox{\hyperlink{classBds_1_1DataFileOptions}{DataFileOptions}}\ options,\ BList<DataError>\&\ errors);}
\DoxyCodeLine{00028\ \ \ \ \ BError\ \ \ \ \ \ \ \ \ \ \ \ \mbox{\hyperlink{classBds_1_1DataFileTapeDigitiser_a18a44e290aef3b75dec2fd47592d9ee3}{readData}}(BUInt32\ channel,\ BUInt\ segment,\ BUInt32\ blockNumber,\ \mbox{\hyperlink{classBds_1_1DataBlock}{DataBlock}}\&\ data);}
\DoxyCodeLine{00029\ \ \ \ \ }
\DoxyCodeLine{00030\ \ \ \ \ \textcolor{keyword}{static}\ DataFormats\ \ \ \mbox{\hyperlink{classBds_1_1DataFileTapeDigitiser_aedb53bbf69123305121918ffba0502a2}{getFormats}}();}
\DoxyCodeLine{00031\ \textcolor{keyword}{private}:}
\DoxyCodeLine{00032\ \ \ \ \ uint32\_t\ \ \ \ \ \ \ \ blockSize();\ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ }
\DoxyCodeLine{00033\ \ \ \ \ uint32\_t\ \ \ \ \ \ \ \ blockNumSamples();\ \ \ \ \ \ \ \ \ \ \ \ \ \ }
\DoxyCodeLine{00034\ \ \ \ \ BError\ \ \ \ \ \ \ \ \ \ \ \ readHeader(BDictString\&\ header);\ \ \ \ \ \ \ \ \ }
\DoxyCodeLine{00035\ \ \ \ \ uint32\_t\ \ \ \ \ \ \ \ computeChecksum(\textcolor{keywordtype}{void}*\ data,\ \textcolor{keywordtype}{int}\ nBytes);}
\DoxyCodeLine{00036\ }
\DoxyCodeLine{00037\ \ \ \ \ BDictString\ \ \ \ \ \ oheader;}
\DoxyCodeLine{00038\ \ \ \ \ off64\_t\ \ \ \ \ \ \ \ \ oheaderSize;}
\DoxyCodeLine{00039\ \ \ \ \ uint32\_t\ \ \ \ \ \ \ \ oblockSize;}
\DoxyCodeLine{00040\ \ \ \ \ uint32\_t\ \ \ \ \ \ \ \ oblockNumSamples;}
\DoxyCodeLine{00041\ \ \ \ \ \textcolor{keywordtype}{double}\ \ \ \ \ \ \ \ \ \ osampleRate;}
\DoxyCodeLine{00042\ \ \ \ \ BBuffer\ \ \ \ \ \ \ \ \ \ obuffer;\ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ }
\DoxyCodeLine{00043\ \ \ \ \ BString\ \ \ \ \ \ \ \ \ \ oversion;}
\DoxyCodeLine{00044\ \ \ \ \ \mbox{\hyperlink{classBds_1_1DataInfo}{DataInfo}}\ \ \ \ \ \ \ \ odataInfo;}
\DoxyCodeLine{00045\ \};}
\DoxyCodeLine{00046\ }
\DoxyCodeLine{00047\ \}}
\DoxyCodeLine{00048\ \textcolor{preprocessor}{\#endif}}

\end{DoxyCode}
