|
Apollo 10.0
自动驾驶开放平台
|
CanClientFactory inherites apollo::common::util::Factory. 更多...
#include <can_client_factory.h>
Public 成员函数 | |
| 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. | |
Public 成员函数 继承自 apollo::common::util::Factory< CANCardParameter::CANCardBrand, CanClient > | |
| bool | Register (const CANCardParameter::CANCardBrand &id, CanClient *(*)() creator) |
| Registers the class given by the creator function, linking it to id. | |
| bool | Contains (const CANCardParameter::CANCardBrand &id) |
| bool | Unregister (const CANCardParameter::CANCardBrand &id) |
| Unregisters the class with the given identifier | |
| void | Clear () |
| bool | Empty () const |
| std::unique_ptr< CanClient > | CreateObjectOrNull (const CANCardParameter::CANCardBrand &id, Args &&... args) |
| Creates and transfers membership of an object of type matching id. | |
| std::unique_ptr< CanClient > | CreateObject (const CANCardParameter::CANCardBrand &id, Args &&... args) |
| Creates and transfers membership of an object of type matching id. | |
CanClientFactory inherites apollo::common::util::Factory.
在文件 can_client_factory.h 第 44 行定义.
| std::unique_ptr< CanClient > apollo::drivers::canbus::CanClientFactory::CreateCANClient | ( | const CANCardParameter & | parameter | ) |
Create a pointer to a specified brand of CAN client.
The brand is set in the parameter.
| parameter | The parameter to create the CAN client. |
在文件 can_client_factory.cc 第 53 行定义.
| void apollo::drivers::canbus::CanClientFactory::RegisterCanClients | ( | ) |
Register the CAN clients of all brands.
This function call the Function apollo::common::util::Factory::Register() for all of the CAN clients.
在文件 can_client_factory.cc 第 37 行定义.