SubZero Common
Common library components for an FRC CommandRobot
|
Safely get an auto command from PPLib without the risk of crashing from a missing auto file. More...
#include <AutoFactory.h>
Public Member Functions | |
AutoFactory (const std::map< T, std::string > &autos) | |
frc2::CommandPtr | GetAuto (T type) |
Get the auto command specified by the key. | |
Safely get an auto command from PPLib without the risk of crashing from a missing auto file.
T | Key for identifying the auto, typically an enum |
Definition at line 29 of file AutoFactory.h.
|
inlineexplicit |
Definition at line 31 of file AutoFactory.h.
frc2::CommandPtr subzero::AutoFactory< T >::GetAuto | ( | T | type | ) |
Get the auto command specified by the key.
type |