Pothos
0.7.0-gf7fbae99
The Pothos dataflow programming software suite
|
#include <Compiler.hpp>
Public Types | |
typedef std::shared_ptr< Compiler > | Sptr |
Public Member Functions | |
virtual | ~Compiler (void) |
Compiler destructor. More... | |
virtual bool | test (void)=0 |
virtual std::string | compileCppModule (const CompilerArgs &args)=0 |
const std::string & | createTempFile (const std::string &ext="") |
Static Public Member Functions | |
static Sptr | make (const std::string &name="") |
A simple compiler interface for creating modules
typedef std::shared_ptr<Compiler> Pothos::Util::Compiler::Sptr |
|
virtual |
Compiler destructor.
|
pure virtual |
Compile a set of C++ sources into a runtime loadable module.
Exception | with message when a compilation fails |
args | the compiler arguments (flags and sources) |
const std::string& Pothos::Util::Compiler::createTempFile | ( | const std::string & | ext = "" | ) |
Get an absolute path to a temporary file. The file will be automatically removed when the Compiler object is destroyed.
ext | the file extension with dot (ex: ".obj") |
|
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]
Exception | if the factory function fails. |
name | the name of a compilier factory in the plugin tree |
|
pure virtual |
Test if this compiler instance is usable.