KaliVeda
Toolkit for HIC analysis
Loading...
Searching...
No Matches
KVRawDataReader.cpp
1/*
2$Id: KVRawDataReader.cpp,v 1.2 2007/05/31 09:59:22 franklan Exp $
3$Revision: 1.2 $
4$Date: 2007/05/31 09:59:22 $
5*/
6
7//Created by KVClassFactory on Wed May 16 15:52:21 2007
8//Author: franklan
9
10#include "KVRawDataReader.h"
11#include "KVBase.h"
12#include "TPluginManager.h"
13#include "TError.h"
14
16
17
18
19
21
23{
24 //Default constructor
25}
26
27
28
31
33{
34 //Destructor
35}
36
37
38
42
44{
45 // Generate an instance of a class to read raw data of given type
46 // corresponding to a defined plugin for KVRawDataReader
47
48 TString base;
49 if (IsThisAPlugin(type, base)) {
50 if (base != "KVRawDataReader") {
51 ::Error("KVRawDataReader::OpenFile", "%s is plugin of wrong type (%s)", type.Data(), base.Data());
52 return nullptr;
53 }
54 TPluginHandler* ph = LoadPlugin(base, type);
55 if (ph) {
56 return (KVRawDataReader*)ph->ExecPlugin(1, filename.Data());
57 }
58 else {
59 ::Error("KVRawDataReader::OpenFile", "Failed to load plugin handler for %s", type.Data());
60 }
61 }
62 return nullptr;
63}
64
65
66
Option_t Option_t TPoint TPoint const char GetTextMagnitude GetFillStyle GetLineColor GetLineWidth GetMarkerStyle GetTextAlign GetTextColor GetTextSize void char Point_t Rectangle_t WindowAttributes_t Float_t Float_t Float_t Int_t Int_t UInt_t UInt_t Rectangle_t Int_t Int_t Window_t TString Int_t GCValues_t GetPrimarySelectionOwner GetDisplay GetScreen GetColormap GetNativeEvent const char const char dpyName wid window const char font_name cursor keysym reg const char only_if_exist regb h Point_t winding char text const char depth char const char Int_t count const char ColorStruct_t color const char filename
Option_t Option_t TPoint TPoint const char GetTextMagnitude GetFillStyle GetLineColor GetLineWidth GetMarkerStyle GetTextAlign GetTextColor GetTextSize void char Point_t Rectangle_t WindowAttributes_t Float_t Float_t Float_t Int_t Int_t UInt_t UInt_t Rectangle_t Int_t Int_t Window_t TString Int_t GCValues_t GetPrimarySelectionOwner GetDisplay GetScreen GetColormap GetNativeEvent const char const char dpyName wid window const char font_name cursor keysym reg const char only_if_exist regb h Point_t winding char text const char depth char const char Int_t count const char ColorStruct_t color const char Pixmap_t Pixmap_t PictureAttributes_t attr const char char ret_data h unsigned char height h Atom_t Int_t ULong_t ULong_t unsigned char prop_list Atom_t Atom_t Atom_t Time_t type
static Bool_t IsThisAPlugin(const TString &uri, TString &base)
Definition KVBase.cpp:1357
static TPluginHandler * LoadPlugin(const Char_t *base, const Char_t *uri="0")
Definition KVBase.cpp:793
Abstract base class for reading raw (DAQ) data.
static KVRawDataReader * OpenFile(const TString &type, const TString &filename)
virtual ~KVRawDataReader()
Destructor.
virtual void Error(const char *method, const char *msgfmt,...) const
Longptr_t ExecPlugin(int nargs)
const char * Data() const
ClassImp(TPyArg)