Pothos  0.4.0-gd11861cd
The Pothos dataflow programming software suite
 All Classes Namespaces Files Functions Variables Typedefs Friends Macros Pages
Public Types | Public Member Functions | Static Public Member Functions | List of all members
Pothos::Util::Compiler Class Referenceabstract

#include <Compiler.hpp>

Public Types

typedef std::shared_ptr< CompilerSptr
 

Public Member Functions

virtual bool test (void)=0
 
virtual std::string compileCppModule (const CompilerArgs &args)=0
 

Static Public Member Functions

static Sptr make (const std::string &name="")
 

Detailed Description

A simple compiler interface for creating modules

Member Typedef Documentation

typedef std::shared_ptr<Compiler> Pothos::Util::Compiler::Sptr

Member Function Documentation

virtual std::string Pothos::Util::Compiler::compileCppModule ( const CompilerArgs args)
pure virtual

Compile a set of C++ sources into a runtime loadable module.

Exceptions
Exceptionwith message when a compilation fails
Parameters
argsthe compiler arguments (flags and sources)
Returns
the output binary generated module as a string
static Sptr Pothos::Util::Compiler::make ( const std::string &  name = "")
static

Create a compiler instance given the name of the compiler. Plugins for custom Compilers should be located in the plugin registry: /util/compiler/[name]

Exceptions
Exceptionif the factory function fails.
Parameters
namethe name of a compilier factory in the plugin tree
Returns
a new shared pointer to a compiler interface
virtual bool Pothos::Util::Compiler::test ( void  )
pure virtual

Test if this compiler instance is usable.


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