Storm 1.14.0.1
A Modern Probabilistic Model Checker
Loading...
Searching...
No Matches
SparseItemLabelingParser.h
Go to the documentation of this file.
1#pragma once
2
3#include <boost/optional.hpp>
4#include <cstdint>
5#include <string>
6
11
12namespace storm {
13namespace parser {
14
19 public:
27 static storm::models::sparse::StateLabeling parseAtomicPropositionLabeling(uint_fast64_t stateCount, std::string const& filename);
28
39 uint_fast64_t choiceCount, std::string const& filename, boost::optional<std::vector<uint_fast64_t>> const& nondeterministicChoiceIndices = boost::none);
40
41 private:
46 static void checkSyntax(std::string const& filename, storm::parser::MappedFile const& file);
47
54 static void parseLabelNames(std::string const& filename, storm::models::sparse::ItemLabeling& labeling, char const*& buf);
55
63 static void parseDeterministicLabelAssignments(std::string const& filename, storm::models::sparse::ItemLabeling& labeling, char const*& buf);
64
74 static void parseNonDeterministicLabelAssignments(std::string const& filename, storm::models::sparse::ChoiceLabeling& labeling,
75 std::vector<uint_fast64_t> const& nondeterministicChoiceIndices, char const*& buf);
76};
77
78} // namespace parser
79} // namespace storm
This class manages the labeling of the choice space with a number of (atomic) labels.
A base class managing the labeling of items with a number of (atomic) labels.
This class manages the labeling of the state space with a number of (atomic) labels.
Opens a file and maps it to memory providing a char* containing the file content.
Definition MappedFile.h:22
This class can be used to parse a labeling file.
static storm::models::sparse::ChoiceLabeling parseChoiceLabeling(uint_fast64_t choiceCount, std::string const &filename, boost::optional< std::vector< uint_fast64_t > > const &nondeterministicChoiceIndices=boost::none)
Parses the given file and returns the resulting choice labeling.
static storm::models::sparse::StateLabeling parseAtomicPropositionLabeling(uint_fast64_t stateCount, std::string const &filename)
Parses the given file and returns the resulting state labeling.
Contains all file parsers and helper classes.
#define STORM_PARSERS_API