CMS 3D CMS Logo

 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Pages
TFileAdaptor.h
Go to the documentation of this file.
1 #ifndef IOPool_TFileAdaptor_TFileAdaptor_h
2 #define IOPool_TFileAdaptor_TFileAdaptor_h
3 
4 #include <map>
5 #include <string>
6 #include <vector>
7 
8 class TPluginManager;
9 
10 namespace edm {
11  class ActivityRegistry;
13  class ParameterSet;
14 }
15 
16 // Driver for configuring ROOT plug-in manager to use TStorageFactoryFile.
17 class TFileAdaptor {
18 public:
20 
21  static void fillDescriptions(edm::ConfigurationDescriptions& descriptions);
22 
23  // Write current Storage statistics on a ostream
24  void termination(void) const;
25 
26  void stats(std::ostream &o) const;
27 
28  void statsXML(std::map<std::string, std::string> &data) const;
29 
30 private:
31  static void addType(TPluginManager* mgr, char const* type);
32  bool native(char const* proto) const;
33 
34  bool enabled_;
35  bool doStats_;
36  std::string cacheHint_;
37  std::string readHint_;
38  std::string tempDir_;
39  double minFree_;
40  unsigned int timeout_;
41  std::vector<std::string> native_;
42 
43 };
44 
45 namespace edm {
46  namespace service {
47  inline
49  return true;
50  }
51  }
52 }
53 #endif
type
Definition: HCALResponse.h:22
TFileAdaptor(edm::ParameterSet const &p, edm::ActivityRegistry &ar)
Definition: TFileAdaptor.cc:45
unsigned int timeout_
Definition: TFileAdaptor.h:40
static void addType(TPluginManager *mgr, char const *type)
Definition: TFileAdaptor.cc:25
bool native(char const *proto) const
Definition: TFileAdaptor.cc:40
std::string cacheHint_
Definition: TFileAdaptor.h:36
std::string readHint_
Definition: TFileAdaptor.h:37
void stats(std::ostream &o) const
double minFree_
Definition: TFileAdaptor.h:39
std::string tempDir_
Definition: TFileAdaptor.h:38
static void fillDescriptions(edm::ConfigurationDescriptions &descriptions)
std::vector< std::string > native_
Definition: TFileAdaptor.h:41
bool isProcessWideService(MessageLogger const *)
void termination(void) const
void statsXML(std::map< std::string, std::string > &data) const