Storm 1.14.0.1
A Modern Probabilistic Model Checker
Loading...
Searching...
No Matches
AutoParser.h
Go to the documentation of this file.
1#pragma once
2
6
7#include <string>
8
9namespace storm {
10
18namespace parser {
19
24template<typename ValueType = double, typename RewardValueType = double>
26 public:
48 static std::shared_ptr<storm::models::sparse::Model<ValueType, storm::models::sparse::StandardRewardModel<RewardValueType>>> parseModel(
49 std::string const& transitionsFilename, std::string const& labelingFilename, std::string const& stateRewardFilename = "",
50 std::string const& transitionRewardFilename = "", std::string const& choiceLabelingFilename = "",
52
53 private:
54 // Define the maximal length of a hint in the file.
55 static constexpr std::size_t hintLength = 10;
56
63 static storm::models::ModelType analyzeHint(std::string const& filename);
64};
65
66} // namespace parser
67} // namespace storm
This class automatically chooses the correct parser for the given files and returns the corresponding...
Definition AutoParser.h:25
static std::shared_ptr< storm::models::sparse::Model< ValueType, storm::models::sparse::StandardRewardModel< RewardValueType > > > parseModel(std::string const &transitionsFilename, std::string const &labelingFilename, std::string const &stateRewardFilename="", std::string const &transitionRewardFilename="", std::string const &choiceLabelingFilename="", ExplicitModelParserOptions const &options=ExplicitModelParserOptions())
Checks the given files and parses the model within these files.
Contains all file parsers and helper classes.
#define STORM_PARSERS_API