// Copyright (C) 2022 Christian Brommer, Control of Networked Systems, University of Klagenfurt, Austria.
//
// All rights reserved.
//
// This software is licensed under the terms of the BSD-2-Clause-License with
// no commercial use allowed, the full terms of which are made available
// in the LICENSE file. No license in patents is granted.
//
// You can contact the author at <christian.brommer@ieee.org>

#ifndef EMPTYMEASUREMENTTYPE_H
#define EMPTYMEASUREMENTTYPE_H

#include <mars/sensors/measurement_base_class.h>
#include <utility>

namespace mars
{
class EmptyMeasurementType : public BaseMeas
{
public:
  double value_;

  EmptyMeasurementType(const double& value) : value_(value)
  {
  }

  static std::string get_csv_state_header_string()
  {
    std::stringstream os;
    os << "t, ";
    os << "value";

    return os.str();
  }

  std::string to_csv_string(const double& timestamp) const
  {
    std::stringstream os;
    os.precision(17);
    os << timestamp;

    os << ", " << value_;

    return os.str();
  }
};
}  // namespace mars
#endif  // EMPTYMEASUREMENTTYPE_H
