35CanClientFactory::CanClientFactory() {}
38 AINFO <<
"CanClientFactory::RegisterCanClients";
57 AERROR <<
"Failed to create CAN client with parameter: "
58 << parameter.DebugString();
59 }
else if (!factory->Init(parameter)) {
60 AERROR <<
"Failed to initialize CAN card with parameter: "
61 << parameter.DebugString();
Defines the CanClientFactory class.
std::unique_ptr< CanClient > CreateObject(const CANCardParameter::CANCardBrand &id, Args &&... args)
Creates and transfers membership of an object of type matching id.
bool Register(const CANCardParameter::CANCardBrand &id, CanClient *(*)() creator)
Registers the class given by the creator function, linking it to id.
void RegisterCanClients()
Register the CAN clients of all brands.
std::unique_ptr< CanClient > CreateCANClient(const CANCardParameter ¶meter)
Create a pointer to a specified brand of CAN client.
The class which defines the CAN client to send and receive message.
The class which defines an ESD CAN client which inherits CanClient.
The class which defines a fake CAN client which inherits CanClient.
The class which defines a BCAN client which inherits CanClient.
The class which defines an ESD CAN client which inherites CanClient.
Defines the EsdCanClient class which inherits CanClient.
Defines the FakeCanClient class which inherites CanClient.
Defines the SocketCanClientRaw class which inherits CanClient.
optional CANCardBrand brand