FrameworkFactory

class FrameworkFactory

A factory for creating Framework instances.

Remark

This class is thread-safe.

Public Functions

Framework NewFramework(FrameworkConfiguration const &configuration, std::ostream *logger = nullptr)

Create a new Framework instance.

Parameters:
  • configuration – The framework properties to configure the new framework instance. If framework properties are not provided by the configuration argument, the created framework instance will use a reasonable default configuration.

  • loggerAny ostream object which will receieve redirected debug log output.

Returns:

A new, configured Framework instance.

Framework NewFramework()

Create a new Framework instance.

This is the same as calling

NewFramework(FrameworkConfiguration()) 
.

Returns:

A new, configured Framework instance.

Framework NewFramework(std::map<std::string, Any> const &configuration, std::ostream *logger = nullptr)

Create a new Framework instance.

Deprecated:

Since 3.1, use NewFramework() or NewFramework(const FramworkConfiguration&, std::ostream*) instead.

Returns:

A new, configured Framework instance.