1 /**************************************************************************
2 * Copyright(c) 1998-1999, ALICE Experiment at CERN, All rights reserved. *
4 * Author: The ALICE Off-line Project. *
5 * Contributors are mentioned in the code where appropriate. *
7 * Permission to use, copy, modify and distribute this software and its *
8 * documentation strictly for non-commercial purposes is hereby granted *
9 * without fee, provided that the above copyright notice appears in all *
10 * copies and that both the copyright notice and this permission notice *
11 * appear in the supporting documentation. The authors make no claims *
12 * about the suitability of this software for any purpose. It is *
13 * provided "as is" without express or implied warranty. *
14 **************************************************************************/
18 //////////////////////////////////////////////////////////////////////////
20 // c interface to AliMDC //
22 //////////////////////////////////////////////////////////////////////////
27 void* alimdcCreate(int compress, int filterMode,
28 const char* localRunDB, int rdbmsRunDB,
29 const char* alienHostRunDB, const char* alienDirRunDB,
30 double maxSizeTagDB, const char* fileNameTagDB)
32 // create an AliMDC object
34 return new AliMDC(compress, kFALSE, AliMDC::EFilterMode(filterMode),
35 localRunDB, rdbmsRunDB, alienHostRunDB, alienDirRunDB,
36 maxSizeTagDB, fileNameTagDB);
40 int alimdcOpen(void* alimdc, int mode, const char* fileName)
44 return ((AliMDC*)alimdc)->Open(AliMDC::EWriteMode(mode), fileName);
47 int alimdcProcessEvent(void* alimdc, void* event, int isIovecArray)
51 return ((AliMDC*)alimdc)->ProcessEvent(event, isIovecArray);
54 int alimdcClose(void* alimdc)
58 return ((AliMDC*)alimdc)->Close();
61 void alimdcDelete(void* alimdc)
63 // delete the AliMDC object
65 delete (AliMDC*)alimdc;