AliRoot Core  v5-06-30 (35d6c57)
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Groups Pages
AliMpDataStreams.h
Go to the documentation of this file.
1 /* Copyright(c) 1998-1999, ALICE Experiment at CERN, All rights reserved. *
2  * See cxx source for full Copyright notice */
3 
4 // $Id$
5 // $MpId: AliMpDataStreams.h,v 1.10 2006/05/24 13:58:07 ivana Exp $
6 
28 
29 #ifndef ALI_MP_DATA_STREAMS_H
30 #define ALI_MP_DATA_STREAMS_H
31 
32 #include "AliMpDataMap.h"
33 
34 #include <TObject.h>
35 #include <TString.h>
36 
37 #include <fstream>
38 #include <sstream>
39 
40 //class TMap;
41 class AliMpDataMap;
42 
43 class AliMpDataStreams : public TObject
44 {
45  public:
46  AliMpDataStreams(AliMpDataMap* map = 0x0);
47  AliMpDataStreams(TRootIOCtor* ioCtor);
48  virtual ~AliMpDataStreams();
49 
50  // methods
51  istream& CreateDataStream(const TString& path) const;
52  Bool_t IsDataStream(const TString& path) const;
53 
54  // set methods
55  void SetReadFromFiles();
56  Bool_t GetReadFromFiles() const;
57 
58  private:
60  AliMpDataStreams(const AliMpDataStreams& right);
63 
64  // methods
65  void CutDataPath(string& dataPath) const;
66 
67  // data members
69  Bool_t fReadFromFiles;
70 
71  ClassDef(AliMpDataStreams, 1) //File names and paths
72 };
73 
74 #endif //ALI_MP_DATA_STREAMS_H
istream & CreateDataStream(const TString &path) const
void CutDataPath(string &dataPath) const
AliMpDataMap * fMap
data map
Bool_t IsDataStream(const TString &path) const
AliMpDataStreams & operator=(const AliMpDataStreams &right)
Not implemented.
AliMpDataStreams(AliMpDataMap *map=0x0)
virtual ~AliMpDataStreams()
TObject class containing a map of strings to strings.
Definition: AliMpDataMap.h:21
Bool_t fReadFromFiles
option for reading data from files
Bool_t GetReadFromFiles() const
Mapping data streams provider.