Belle II Software
release-05-01-25
File.h
1
#ifndef _Belle2_File_hh
2
#define _Belle2_File_hh
3
4
#include "daq/slc/system/FileDescriptor.h"
5
6
#include <string>
7
8
namespace
Belle2
{
14
class
File
:
public
FileDescriptor
{
15
16
public
:
17
static
bool
exist(
const
std::string& filename);
18
19
public
:
20
File
() {}
21
File
(
int
fd) :
FileDescriptor
(fd) {}
22
File
(
const
std::string& path,
23
const
std::string& mode =
"r"
) { open(path, mode); }
24
virtual
~
File
() {}
25
26
public
:
27
void
open(
const
std::string& path,
28
const
std::string& mode =
"r"
);
29
void
unlink(
const
std::string& path);
30
virtual
size_t
write(
const
void
* v,
size_t
count);
31
virtual
size_t
read(
void
* v,
size_t
count);
32
33
};
34
36
}
37
38
#endif
Belle2::File
Definition:
File.h:14
Belle2
Abstract base class for different kinds of events.
Definition:
MillepedeAlgorithm.h:19
Belle2::FileDescriptor
Definition:
FileDescriptor.h:10
daq
slc
system
include
File.h
Generated on Fri Nov 5 2021 03:50:11 for Belle II Software by
1.8.17