28 lines
578 B
C++
28 lines
578 B
C++
//
|
|
// 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"
|
|
namespace cmvr::device
|
|
{
|
|
class CanManager
|
|
{
|
|
|
|
public:
|
|
explicit CanManager(const XmlNode &cfg);
|
|
~CanManager() = default;
|
|
|
|
std::shared_ptr<CanGroup> getCanGroup(const std::string &canGroupID);
|
|
private:
|
|
//CanGroup
|
|
std::unordered_map<std::string,std::shared_ptr<CanGroup>> canGroups_;
|
|
};
|
|
}
|
|
|
|
#endif //CMVR_ES_CAN_MANAGER_H
|