3#include "state_representation/IOState.hpp"
19 explicit AnalogIOState(
const std::string& name,
unsigned int nb_ios = 0);
26 AnalogIOState(
const std::string& name,
const std::vector<std::string>& io_names);
48 static AnalogIOState Zero(
const std::string& name,
const std::vector<std::string>& names);
64 static AnalogIOState Random(
const std::string& name,
const std::vector<std::string>& names);
81 void reset()
override;
void reset() override
Reset the object to a post-construction state.
static AnalogIOState Zero(const std::string &name, unsigned int nb_ios)
Constructor for a zero analog IO state.
std::string to_string() const override
Convert the state to its string representation.
AnalogIOState()
Empty constructor for an analog IO state.
friend void swap(AnalogIOState &state1, AnalogIOState &state2)
Swap the values of the IO states.
void set_zero()
Set the analog IO state to zero data.
AnalogIOState copy() const
Return a copy of the analog IO state.
AnalogIOState & operator=(const AnalogIOState &state)
Copy assignment operator that has to be defined to the custom assignment operator.
static AnalogIOState Random(const std::string &name, unsigned int nb_ios)
Constructor for an analog IO state with random data.
friend std::ostream & operator<<(std::ostream &os, const AnalogIOState &state)
Overload the ostream operator for printing.
Core state variables and objects.
void swap(AnalogIOState &state1, AnalogIOState &state2)