Commit 7e1a7f87 authored by Łukasz Matysiak's avatar Łukasz Matysiak
Browse files

Code style

parent a80f7334
......@@ -22,17 +22,16 @@
* along with this program. If not, see <http://www.gnu.org/licenses/>.
*/
#include "Config.hpp"
#include <fstream>
#include <string>
#include <vector>
#include "Config.hpp"
Config::Config(std::string configPath, std::string type)
: type_(type), basePath_(configPath.substr(0, configPath.find_last_of('/'))),
configPath_(configPath), hwdIDs_(1)
{
}
{}
bool Config::readConfigFile(std::string configPath)
{
......
......@@ -22,6 +22,8 @@
* along with this program. If not, see <http://www.gnu.org/licenses/>.
*/
#include "Data.hpp"
#include <dirent.h>
#include <algorithm>
......@@ -31,8 +33,6 @@
#include <string>
#include <vector>
#include "Data.hpp"
Data::Data()
{
fillDevices(hw_pci, PCIDevices);
......
......@@ -34,16 +34,18 @@
#include <vector>
#include "Config.hpp"
#include "Device.hpp"
#include "const.h"
#include "Device.hpp"
#include "vita/string.hpp"
class Data {
class Data
{
public:
Data();
~Data() = default;
struct Environment {
struct Environment
{
std::string PMCachePath {MHWD_PM_CACHE_DIR};
std::string PMConfigPath {MHWD_PM_CONFIG};
std::string PMRootPath {MHWD_PM_ROOT};
......
......@@ -23,7 +23,6 @@
*/
#include "Mhwd.hpp"
#include "vita/string.hpp"
#include <unistd.h>
#include <sys/stat.h>
......@@ -42,6 +41,8 @@
#include <string>
#include <vector>
#include "vita/string.hpp"
bool Mhwd::performTransaction(std::shared_ptr<Config> config, MHWD::TRANSACTIONTYPE transactionType)
{
Transaction transaction (data_, config, transactionType,
......
......@@ -22,6 +22,8 @@
* along with this program. If not, see <http://www.gnu.org/licenses/>.
*/
#include "Printer.hpp"
#include <hd.h>
#include <iomanip>
......@@ -30,8 +32,6 @@
#include <string>
#include <vector>
#include "Printer.hpp"
void Printer::printStatus(std::string statusMsg) const
{
std::cout << CONSOLE_RED_MESSAGE_COLOR << "> "
......
......@@ -25,6 +25,8 @@
#ifndef PRINTER_HPP_
#define PRINTER_HPP_
#include <hd.h>
#include <string>
#include <vector>
......
......@@ -22,10 +22,10 @@
* along with this program. If not, see <http://www.gnu.org/licenses/>.
*/
#include "Mhwd.hpp"
#include <iostream>
#include "Mhwd.hpp"
int main(int argc, char *argv[])
{
try
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment