Commit 5ed2fe8c authored by Simon Spannagel's avatar Simon Spannagel
Browse files

PropagatedCharge: Include state in printout. Include magic_enum directly to...

PropagatedCharge: Include state in printout. Include magic_enum directly to not depend on text.tpp/core lib
parent e0013371
Loading
Loading
Loading
Loading
+2 −0
Original line number Diff line number Diff line
@@ -7,6 +7,7 @@
 * Intergovernmental Organization or submit itself to any jurisdiction.
 */

#include <magic_enum/magic_enum.hpp>
#include <numeric>

#include "PropagatedCharge.hpp"
@@ -91,6 +92,7 @@ CarrierState PropagatedCharge::getState() const {

void PropagatedCharge::print(std::ostream& out) const {
    out << "--- Propagated charge information\n";
    out << "State: " << magic_enum::enum_name(state_) << "\n";
    SensorCharge::print(out);
}