Clean up includes
This commit is contained in:
@@ -1,5 +1,4 @@
|
|||||||
#include <electricity/logger/database.hpp>
|
#include <electricity/logger/database.hpp>
|
||||||
#include <exception>
|
|
||||||
#include <iomanip>
|
#include <iomanip>
|
||||||
#include <spdlog/spdlog.h>
|
#include <spdlog/spdlog.h>
|
||||||
#include <sstream>
|
#include <sstream>
|
||||||
|
|||||||
@@ -4,6 +4,7 @@
|
|||||||
#include <electricity/logger/serialport.hpp>
|
#include <electricity/logger/serialport.hpp>
|
||||||
#include <exception>
|
#include <exception>
|
||||||
#include <fcntl.h>
|
#include <fcntl.h>
|
||||||
|
#include <iostream>
|
||||||
#include <optional>
|
#include <optional>
|
||||||
#include <spdlog/spdlog.h>
|
#include <spdlog/spdlog.h>
|
||||||
#include <stdexcept>
|
#include <stdexcept>
|
||||||
@@ -34,7 +35,7 @@ std::optional<cxxopts::ParseResult> ExtractArgs(int argc, char ** argv)
|
|||||||
auto const parsed = options.parse(argc, argv);
|
auto const parsed = options.parse(argc, argv);
|
||||||
return parsed;
|
return parsed;
|
||||||
}
|
}
|
||||||
catch(cxxopts::OptionException const & e)
|
catch(cxxopts::exceptions::exception const & e)
|
||||||
{
|
{
|
||||||
spdlog::error(e.what());
|
spdlog::error(e.what());
|
||||||
return {};
|
return {};
|
||||||
|
|||||||
@@ -1,6 +1,4 @@
|
|||||||
#include <cmath>
|
#include <cmath>
|
||||||
#include <cstdlib>
|
|
||||||
#include <ctime>
|
|
||||||
#include <iomanip>
|
#include <iomanip>
|
||||||
#include <solar/logger/database.hpp>
|
#include <solar/logger/database.hpp>
|
||||||
#include <spdlog/spdlog.h>
|
#include <spdlog/spdlog.h>
|
||||||
|
|||||||
@@ -1,12 +1,11 @@
|
|||||||
#include <cstdio>
|
#include <cstdio>
|
||||||
#include <cxxopts.hpp>
|
#include <cxxopts.hpp>
|
||||||
#include <iomanip>
|
#include <iostream>
|
||||||
#include <optional>
|
#include <optional>
|
||||||
#include <solar/logger/database.hpp>
|
#include <solar/logger/database.hpp>
|
||||||
#include <solar/logger/envoydata.hpp>
|
#include <solar/logger/envoydata.hpp>
|
||||||
#include <solar/logger/zeverdata.hpp>
|
#include <solar/logger/zeverdata.hpp>
|
||||||
#include <spdlog/spdlog.h>
|
#include <spdlog/spdlog.h>
|
||||||
#include <sstream>
|
|
||||||
#include <string>
|
#include <string>
|
||||||
|
|
||||||
namespace detail
|
namespace detail
|
||||||
@@ -53,7 +52,7 @@ std::optional<cxxopts::ParseResult> ExtractArgs(int argc, char ** argv)
|
|||||||
auto const parsed = options.parse(argc, argv);
|
auto const parsed = options.parse(argc, argv);
|
||||||
return parsed;
|
return parsed;
|
||||||
}
|
}
|
||||||
catch(cxxopts::OptionException const & e)
|
catch(cxxopts::exceptions::exception const & e)
|
||||||
{
|
{
|
||||||
spdlog::error(e.what());
|
spdlog::error(e.what());
|
||||||
return {};
|
return {};
|
||||||
|
|||||||
Reference in New Issue
Block a user