Meta::MCPPGenerator Class Reference

Generate a C++ project from input M code. More...

#include <MCPPGenerator.h>

Inheritance diagram for Meta::MCPPGenerator:
Meta::MGenerator Meta::MProcessor

List of all members.

Public Member Functions

 MCPPGenerator ()
 ~MCPPGenerator ()
mnode process (mnode node, uint32_t flags)
int generate ()
void setCompileOptions (const mstr &compileOptions)
const mstrcompileOptions ()
void setLinkOptions (const mstr &linkOptions)
const mstrlinkOptions ()

Detailed Description

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.


Constructor & Destructor Documentation

Meta::MCPPGenerator::MCPPGenerator (  ) 

Constructor.

Meta::MCPPGenerator::~MCPPGenerator (  ) 

Destructor.


Member Function Documentation

const mstr& Meta::MCPPGenerator::compileOptions (  ) 
Returns:
The compile options that were previously set.
int Meta::MCPPGenerator::generate (  ) 

Generate the C++ project in the MGenerator target directory.

Returns:
Status 0 if no errors found.
const mstr& Meta::MCPPGenerator::linkOptions (  ) 
Returns:
The link options that were previously set.
mnode Meta::MCPPGenerator::process ( mnode  node,
uint32_t  flags 
) [virtual]

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.


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

Generated on Wed Mar 24 16:22:42 2010 for AndroMeta by  doxygen 1.6.1