Belle II Software development
HLTFile.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#pragma once
9
10#include <daq/seqfile/SeqFile.h>
11#include <cstdio>
12
13namespace Belle2 {
18 class HLTFile {
19 public:
20 bool open(const std::string& fileName, bool raw, const char* mode);
21 virtual ~HLTFile();
23 HLTFile() = default;
24
26 HLTFile(const HLTFile&) = delete;
27
29 HLTFile& operator=(const HLTFile&) = delete;
30
31 int put_wordbuf(const int* data, int len);
32 int put(const char* data, int len);
33 int get_wordbuf(int* data, int len);
34 int get(char* data, int len);
35
36 private:
37 std::unique_ptr<SeqFile> m_sfile;
38 FILE* m_rfile = nullptr;
39 };
40
41}
HLTFile & operator=(const HLTFile &)=delete
Operator = (disabled).
HLTFile(const HLTFile &)=delete
Copy constructor (disabled).
HLTFile()=default
Default constructor.
Abstract base class for different kinds of events.