Belle II Software development
RFConf.h
1/**************************************************************************
2 * basf2 (Belle II Analysis Software Framework) *
3 * Author: The Belle II Collaboration *
4 * *
5 * See git log for contributors and copyright holders. *
6 * This file is licensed under LGPL-3.0, see LICENSE.md. *
7 **************************************************************************/
8#ifndef RFCONF_H
9#define RFCONF_H
10
11#include <stdio.h>
12
13namespace Belle2 {
18
19 struct RFConf_t {
20 char* key; char* val; struct RFConf_t* next;
21 };
22
23
24 class RFConf {
25 public:
26 explicit RFConf(const char* file);
27 ~RFConf();
29 RFConf(const RFConf&) = delete;
30
32 RFConf& operator=(const RFConf&) = delete;
33
34 char* getconf(const char* key1,
35 const char* key2 = NULL,
36 const char* key3 = NULL);
37
38 int getconfi(const char* key1,
39 const char* key2 = NULL,
40 const char* key3 = NULL);
41
42 private:
43 FILE* m_fd;
44
45 };
46
47}
48
49#endif
RFConf & operator=(const RFConf &)=delete
Operator = (disabled).
RFConf(const RFConf &)=delete
Copy constructor (disabled).
Abstract base class for different kinds of events.