Browse Source

added os operator to FormulaContext

main
Stefan Pranger 4 years ago
parent
commit
f0b58781b1
  1. 16
      src/storm/logic/FormulaContext.cpp
  2. 6
      src/storm/logic/FormulaContext.h

16
src/storm/logic/FormulaContext.cpp

@ -0,0 +1,16 @@
#include "storm/logic/FormulaContext.h"
namespace storm {
namespace logic {
std::ostream& operator<<(std::ostream& out, FormulaContext const& formulaContext) {
switch(formulaContext) {
case storm::logic::FormulaContext::Undefined: out << "Undefined"; break;
case storm::logic::FormulaContext::Probability: out << "Probability"; break;
case storm::logic::FormulaContext::Reward: out << "Reward"; break;
case storm::logic::FormulaContext::LongRunAverage: out << "LongRunAverage"; break;
case storm::logic::FormulaContext::Time: out << "Time"; break;
}
return out;
}
}
}

6
src/storm/logic/FormulaContext.h

@ -1,11 +1,13 @@
#ifndef STORM_LOGIC_FORMULACONTEXT_H_ #ifndef STORM_LOGIC_FORMULACONTEXT_H_
#define STORM_LOGIC_FORMULACONTEXT_H_ #define STORM_LOGIC_FORMULACONTEXT_H_
#include <sstream>
namespace storm { namespace storm {
namespace logic { namespace logic {
enum class FormulaContext { Undefined, Probability, Reward, LongRunAverage, Time }; enum class FormulaContext { Undefined, Probability, Reward, LongRunAverage, Time };
std::ostream& operator<<(std::ostream& out, FormulaContext const& formulaContext);
} }
} }

Loading…
Cancel
Save