Storm 1.14.0.1
A Modern Probabilistic Model Checker
Loading...
Searching...
No Matches
LocatedInformation.h
Go to the documentation of this file.
1#pragma once
2
3#include <cstdint>
4#include <string>
5
6namespace storm {
7namespace prism {
9 public:
16 LocatedInformation(std::string const& filename, uint_fast64_t lineNumber);
17
18 // Create default implementations of constructors/assignment.
19 LocatedInformation() = default;
20 LocatedInformation(LocatedInformation const& other) = default;
24
30 std::string const& getFilename() const;
31
37 void setFilename(std::string const& filename);
38
44 uint_fast64_t getLineNumber() const;
45
51 void setLineNumber(uint_fast64_t lineNumber);
52
53 private:
54 // The file in which the piece of information was found.
55 std::string filename;
56
57 // The line in the file in which the piece of information was found.
58 uint_fast64_t lineNumber;
59};
60} // namespace prism
61} // namespace storm
LocatedInformation(LocatedInformation &&other)=default
LocatedInformation & operator=(LocatedInformation const &other)=default
uint_fast64_t getLineNumber() const
Retrieves the line number in which the information was found.
std::string const & getFilename() const
Retrieves the name of the file in which the information was found.
LocatedInformation(std::string const &filename, uint_fast64_t lineNumber)
Constructs a located information with the given filename and line number.
void setFilename(std::string const &filename)
Sets the filename of this information.
void setLineNumber(uint_fast64_t lineNumber)
Sets the line number of this information.
LocatedInformation(LocatedInformation const &other)=default
LocatedInformation & operator=(LocatedInformation &&other)=default