Skip to content

LiteFX::AppBuilder

Creates a new builder for an App.

Synopsis

Declared in <litefx/app.hpp>

class [[dllexport, nodiscard, dllimport]] AppBuilder
    : public Builder<App>

Base Classes

NameDescription
Builder<App>Describes an generic builder type.

Type Aliases

Member Functions

NameDescription
operator= Assignment operators
instance Returns a pointer to the current instance of the object that is built by the builder.
logTo Registers a sink for logging.
use Called by child builders to pass a constructed object back to the parent builder.
useBackend Registers a new backend.
operator unique_ptr<App>&& Calls build and returns the instance.

Using Declarations

Name
AppBuilder

Protected Member Functions

NameDescription
build [virtual]Can be overwritten to perform any pre-construction work before the builder returns the final object instance.
instance Returns a pointer to the current instance of the object that is built by the builder.

Return Value

Note

The return value should not be discarded.