NAP
Public Member Functions | List of all members
Core::Services Class Referencefinal

#include <nap/core.h>

Public Member Functions

 ~Services ()
 
bool initialized ()
 

Description

Helper class. Automatically initializes all services on construction and shuts down all services on destruction. This object is returned as a handle by 'initializeServices()' and ensures services are always shut-down, in the right order, after initialization.

// Initialize services & bail if handle is invalid.
if (handle == nullptr)
return false;

Constructor & Destructor Documentation

◆ ~Services()

~Services ( )

Shuts down all services

Member Function Documentation

◆ initialized()

bool initialized ( )
Returns
if all services were initialized on construction
nap::Core::initializeServices
Core::ServicesHandle initializeServices(utility::ErrorState &errorState)
nap::Core::ServicesHandle
std::unique_ptr< Services > ServicesHandle
Definition: core.h:89