Fang-Robotics-MCB
Fang Robotics Team Codebase
Loading...
Searching...
No Matches
drivers_singleton.hpp
Go to the documentation of this file.
1/*
2 * Copyright (c) 2020-2021 Fang-Robotics
3 *
4 * This file is part of fang-mcb.
5 *
6 * fang-mcb is free software: you can redistribute it and/or modify
7 * it under the terms of the GNU General Public License as published by
8 * the Free Software Foundation, either version 3 of the License, or
9 * (at your option) any later version.
10 *
11 * fang-mcb is distributed in the hope that it will be useful,
12 * but WITHOUT ANY WARRANTY; without even the implied warranty of
13 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
14 * GNU General Public License for more details.
15 *
16 * You should have received a copy of the GNU General Public License
17 * along with fang-mcb. If not, see <https://www.gnu.org/licenses/>.
18 */
19#ifndef DRIVERS_SINGLETON_HPP_
20#define DRIVERS_SINGLETON_HPP_
21
22#include "driver/drivers.hpp"
23namespace fang
24{
30 {
31 public:
32
42 static Drivers& getDrivers();
43 private:
44 static Drivers drivers_;
45
46 }; // class DriversSingleton
47}
48#endif
Definition drivers_singleton.hpp:30
static Drivers & getDrivers()
Definition drivers_singleton.cpp:25
Definition drivers.hpp:31
Definition janky_float.cpp:4