#pragma once

#include <cstdint>
#include <map>
#include <string>

namespace canopen {

class CanopenNodeManager {
public:
    bool registerNode(uint8_t nodeId);
    bool setState(uint8_t nodeId, const std::string& state);
    std::string state(uint8_t nodeId) const;

private:
    std::map<uint8_t, std::string> states_;
};

} // namespace canopen
