cmvr-es/include/hardware/can/can_manager.h

28 lines
580 B
C
Raw Normal View History

2025-10-22 16:40:55 +08:00
//
// Created by linbo on 2025/10/22.
//
#ifndef CMVR_ES_CAN_MANAGER_H
#define CMVR_ES_CAN_MANAGER_H
#include <unordered_map>
#include <string>
#include "rapidxml/rapidxml.hpp"
#include "can_group.h"
2025-10-24 10:51:49 +08:00
namespace cmvr::hardware
2025-10-22 16:40:55 +08:00
{
class CanManager
{
public:
explicit CanManager(const XmlNode &cfg);
2025-10-24 09:51:14 +08:00
~CanManager() = default;
std::shared_ptr<CanGroup> getCanGroup(const std::string &canGroupID);
2025-10-22 16:40:55 +08:00
private:
//CanGroup
std::unordered_map<std::string,std::shared_ptr<CanGroup>> canGroups_;
};
}
#endif //CMVR_ES_CAN_MANAGER_H