Program Listing for File drivers_singleton.cpp¶
↰ Return to documentation for file (fang-mcb-project/src/driver/drivers_singleton.cpp)
/*
* Copyright (c) 2020-2021 Fang-Robotics
*
* This file is part of fang-mcb.
*
* fang-mcb is free software: you can redistribute it and/or modify
* it under the terms of the GNU General Public License as published by
* the Free Software Foundation, either version 3 of the License, or
* (at your option) any later version.
*
* fang-mcb is distributed in the hope that it will be useful,
* but WITHOUT ANY WARRANTY; without even the implied warranty of
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
* GNU General Public License for more details.
*
* You should have received a copy of the GNU General Public License
* along with fang-mcb. If not, see <https://www.gnu.org/licenses/>.
*/
#include "drivers_singleton.hpp"
namespace fang
{
Drivers DriversSingleton::drivers_{};
Drivers& DriversSingleton::getDrivers()
{
return drivers_;
}
}