Generate a C++ project from input M code. More...
#include <MCPPGenerator.h>
Public Member Functions | |
| MCPPGenerator () | |
| ~MCPPGenerator () | |
| mnode | process (mnode node, uint32_t flags) |
| int | generate () |
| void | setCompileOptions (const mstr &compileOptions) |
| const mstr & | compileOptions () |
| void | setLinkOptions (const mstr &linkOptions) |
| const mstr & | linkOptions () |
Generate a C++ project from input M code.
The MCPPGenerator is a type of MProcessor that takes M code input emitted from a parser or other source and generates a complete ready-to-compile C++ project.
| Meta::MCPPGenerator::MCPPGenerator | ( | ) |
Constructor.
| Meta::MCPPGenerator::~MCPPGenerator | ( | ) |
Destructor.
| const mstr& Meta::MCPPGenerator::compileOptions | ( | ) |
| int Meta::MCPPGenerator::generate | ( | ) |
Generate the C++ project in the MGenerator target directory.
| const mstr& Meta::MCPPGenerator::linkOptions | ( | ) |
Process method.
Implements Meta::MProcessor.
| void Meta::MCPPGenerator::setCompileOptions | ( | const mstr & | compileOptions | ) |
Add the specified compile options/flags to the generated Makefile.
| void Meta::MCPPGenerator::setLinkOptions | ( | const mstr & | linkOptions | ) |
Add the specified link options/flags to the generated Makefile.
1.6.1