Storm 1.14.0.1
A Modern Probabilistic Model Checker
Loading...
Searching...
No Matches
MappedFile.h
Go to the documentation of this file.
1#pragma once
2
3#include <sys/stat.h>
4#include <cstddef>
5
8
9namespace storm {
10namespace parser {
11
23 public:
31 MappedFile(const char* filename);
32
38
44 char const* getData() const;
45
51 char const* getDataEnd() const;
52
56 std::size_t getDataSize() const;
57
58 private:
60 char* data;
61
63 char* dataEnd;
64
66 int file;
67
68#if defined LINUX && defined(__GLIBC__)
70 struct stat64 st;
71#else
73 struct stat st;
74#endif
75};
76
77} // namespace parser
78} // namespace storm
char const * getData() const
Returns a pointer to the beginning of the mapped file data.
char const * getDataEnd() const
Returns a pointer to the end of the mapped file data.
std::size_t getDataSize() const
Returns the size of the mapped file data.
MappedFile(const char *filename)
Constructs a MappedFile.
Contains all file parsers and helper classes.
#define STORM_PARSERS_API