-
Notifications
You must be signed in to change notification settings - Fork 4
/
kafkaResources.hxx
45 lines (36 loc) · 1.27 KB
/
kafkaResources.hxx
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
/** © Copyright 2019 CERN
*
* This software is distributed under the terms of the
* GNU Lesser General Public Licence version 3 (LGPL Version 3),
* copied verbatim in the file “LICENSE”
*
* In applying this licence, CERN does not waive the privileges
* and immunities granted to it by virtue of its status as an
* Intergovernmental Organization or submit itself to any jurisdiction.
*
* Author: Alexandru Savulescu (HSE-CEN-CO)
*
**/
#ifndef kafkaRESOURCES_H_
#define kafkaRESOURCES_H_
// Our Resources class
// This class has two tasks:
// - Interpret commandline and read config file
// - Be an interface to internal datapoints
#include <DrvRsrce.hxx>
class kafkaResources : public DrvRsrce
{
public:
static void init(int &argc, char *argv[]); // Initialize statics
static PVSSboolean readSection(); // read config file
static kafkaResources& GetInstance();
// Get the number of names we need the DpId for
virtual int getNumberOfDpNames();
// TODO in this template we do not use internal DPs in the driver
// If you need DPs, then also some other methods must be implemented
kafkaResources(kafkaResources const&) = delete;
void operator= (kafkaResources const&) = delete;
private:
kafkaResources(){}
};
#endif