GRSISort "v4.0.0.5"
An extension of the ROOT analysis Framework
Loading...
Searching...
No Matches
GRSIDataLibrary.cxx
Go to the documentation of this file.
1#include <string>
2
3#include "TClassRef.h"
4
5#include "TMidasFile.h"
6#include "TGRSIDataParser.h"
7#include "GRSIDataVersion.h"
8#include "TChannel.h"
9#include "TGRSIMnemonic.h"
10
11extern "C" TMidasFile* CreateFile(std::string& fileName) { return new TMidasFile(fileName.c_str()); }
12extern "C" void DestroyFile(TMidasFile* obj) { delete obj; }
13
14extern "C" TGRSIDataParser* CreateParser() { return new TGRSIDataParser; }
15extern "C" void DestroyParser(TGRSIDataParser* obj) { delete obj; }
16
17extern "C" std::string LibraryVersion() { return {GRSIDATA_RELEASE}; }
18
19extern "C" void InitLibrary() { TChannel::SetMnemonicClass(TClassRef("TGRSIMnemonic")); }
TMidasFile * CreateFile(std::string &fileName)
TGRSIDataParser * CreateParser()
void InitLibrary()
void DestroyFile(TMidasFile *obj)
void DestroyParser(TGRSIDataParser *obj)
std::string LibraryVersion()
static void SetMnemonicClass(const TClassRef &cls)
Definition TChannel.h:80
Reader for MIDAS .mid files.
Definition TMidasFile.h:32