Fabrique

A build language for complex systems

 All Classes Namespaces Files Functions Variables Enumerations Enumerator Macros Pages
fabrique::backend::Backend Class Referenceabstract

Interface for backend classes that convert a DAG to something else (e.g., a Ninja file). More...

#include <Backend.h>

Inheritance diagram for fabrique::backend::Backend:
fabrique::backend::DotBackend fabrique::backend::MakeBackend fabrique::backend::NinjaBackend fabrique::backend::NullBackend

Public Member Functions

virtual std::string DefaultFilename () const =0
 
virtual void Process (const dag::DAG &, Bytestream &, ErrorReport::Report)=0
 

Static Public Member Functions

static std::unique_ptr< BackendCreate (const std::string &name)
 Create a new backend using a registered short name. More...
 

Detailed Description

Interface for backend classes that convert a DAG to something else (e.g., a Ninja file).

Definition at line 51 of file Backend.h.

Member Function Documentation

unique_ptr< Backend > Backend::Create ( const std::string &  name)
static

Create a new backend using a registered short name.

Todo:
Create a static backend registration thingy.

Definition at line 46 of file Backend.cc.


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