small includes cleanup

This commit is contained in:
Alexey Rybalchenko 2020-09-23 09:05:12 +02:00 committed by Dennis Klein
parent 6699711e17
commit 71b1866d7b
4 changed files with 11 additions and 10 deletions

View File

@ -154,8 +154,8 @@ auto DeviceRunner::Run() -> int
// Handle --version // Handle --version
if (fConfig.Count("version")) { if (fConfig.Count("version")) {
cout << "FairMQ version: " << FAIRMQ_GIT_VERSION << endl; LOGV(info, verylow) << "FairMQ version: " << FAIRMQ_GIT_VERSION;
cout << "User device version: " << fDevice->GetVersion() << endl; LOGV(info, verylow) << "User device version: " << fDevice->GetVersion();
fDevice->ChangeState(fair::mq::Transition::End); fDevice->ChangeState(fair::mq::Transition::End);
return 0; return 0;
} }

View File

@ -26,7 +26,6 @@
#include <algorithm> // find #include <algorithm> // find
#include <string> #include <string>
#include <chrono> #include <chrono>
#include <iostream>
#include <unordered_map> #include <unordered_map>
#include <functional> #include <functional>
#include <stdexcept> #include <stdexcept>
@ -363,10 +362,10 @@ class FairMQDevice
void PrintRegisteredChannels() void PrintRegisteredChannels()
{ {
if (fChannelRegistry.size() < 1) { if (fChannelRegistry.size() < 1) {
std::cout << "no channels registered." << std::endl; LOGV(info, verylow) << "no channels registered.";
} else { } else {
for (const auto& c : fChannelRegistry) { for (const auto& c : fChannelRegistry) {
std::cout << c.first << ":" << c.second.first << ":" << c.second.second << std::endl; LOGV(info, verylow) << c.first << ":" << c.second.first << ":" << c.second.second;
} }
} }
} }

View File

@ -8,14 +8,16 @@
#include "Control.h" #include "Control.h"
#include <termios.h> // for the interactive mode #include <atomic>
#include <poll.h> // for the interactive mode #include <chrono>
#include <csignal> // catching system signals #include <csignal> // catching system signals
#include <cstdlib> #include <cstdlib>
#include <functional> #include <functional>
#include <atomic> #include <iostream>
#include <thread> #include <thread>
#include <chrono>
#include <poll.h> // for the interactive mode
#include <termios.h> // for the interactive mode
using namespace std; using namespace std;

View File

@ -11,7 +11,7 @@
#include <cassert> #include <cassert>
#include <string> #include <string>
#include <iostream> // #include <iostream>
#include <iomanip> #include <iomanip>
#include <thread> #include <thread>
#include <chrono> #include <chrono>