mmCEsim 0.3.0
mmWave Channel Estimation Simulation
style.h
Go to the documentation of this file.
1
12#ifndef _STYLE_H_
13#define _STYLE_H_
14
15#include "_boost_config.h"
16#include "error_code.h"
17#include "utils.h"
18#include <iostream>
19#include <string>
20#pragma GCC diagnostic ignored "-Wc++11-narrowing"
21#pragma GCC diagnostic push
22#include <boost/process.hpp>
23#pragma GCC diagnostic pop
24
30class Style {
31 public:
32 Style(const std::string& file_name, const std::string& options);
33
39 int style() const;
40
48 static int style(const std::string& file_name, const std::string& options);
49
50 private:
51 std::string _file_name;
52 std::string _options;
53};
54
55#endif
Boost Configurations.
Style (format) generated code.
Definition: style.h:30
int style() const
Call the astyle child process to style the generated C++ code.
Definition: style.cpp:16
std::string _file_name
The generated C++ file name to be formatted.
Definition: style.h:51
std::string _options
The 'astyle' format options.
Definition: style.h:52
Style(const std::string &file_name, const std::string &options)
Definition: style.cpp:14
Error Codes (Including Warnings)
Utilities.