mmCEsim 0.3.0
mmWave Channel Estimation Simulation
Style Class Reference

Style (format) generated code. More...

#include <style.h>

Public Member Functions

 Style (const std::string &file_name, const std::string &options)
 
int style () const
 Call the astyle child process to style the generated C++ code. More...
 

Static Public Member Functions

static int style (const std::string &file_name, const std::string &options)
 Call the astyle child process to style the generated C++ code. More...
 

Private Attributes

std::string _file_name
 The generated C++ file name to be formatted. More...
 
std::string _options
 The 'astyle' format options. More...
 

Detailed Description

Style (format) generated code.

This class will call child process from 'astyle'.

Constructor & Destructor Documentation

◆ Style()

Style::Style ( const std::string &  file_name,
const std::string &  options 
)

Member Function Documentation

◆ style() [1/2]

int Style::style ( ) const

Call the astyle child process to style the generated C++ code.

Returns
(int) Exit code of 'astyle'.
Here is the call graph for this function:
Here is the caller graph for this function:

◆ style() [2/2]

int Style::style ( const std::string &  file_name,
const std::string &  options 
)
static

Call the astyle child process to style the generated C++ code.

Parameters
file_nameThe generated C++ file name to be formatted.
optionsThe 'astyle' format options.
Returns
(int) Exit code of 'astyle'.
Here is the call graph for this function:

Member Data Documentation

◆ _file_name

std::string Style::_file_name
private

The generated C++ file name to be formatted.

◆ _options

std::string Style::_options
private

The 'astyle' format options.


The documentation for this class was generated from the following files: