roviz  0.7
Code Documentation of roviz
Classes | Macros
startup_helper.h File Reference
#include <QMetaObject>
#include <QApplication>
#include "appcore.h"
#include "helper/singleton.h"
#include "helper/startup_helper_templates.h"
Include dependency graph for startup_helper.h:
This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Classes

class  StartupHelper
 The StartupHelper class manages dependencies between global singletons and other components. It ensures that the singletons/components are constructed/deleted in the right order. More...
 

Macros

#define STARTUP_ADD_SINGLETON(type)
 This macro will automatically call StartupHelper::addSingleton() for the passed Type before the app starts. More...
 
#define STARTUP_ADD_COMPONENT(type)
 This macro will automatically call StartupHelper::addComponent() for the passed Type before the app starts. More...
 

Macro Definition Documentation

◆ STARTUP_ADD_COMPONENT

#define STARTUP_ADD_COMPONENT (   type)
Value:
static void startup_component_##type() { \
StartupHelper::addComponent<type>(); \
} \
Q_COREAPP_STARTUP_FUNCTION(startup_component_##type)

This macro will automatically call StartupHelper::addComponent() for the passed Type before the app starts.

See also
StartupHelper::addComponent()

◆ STARTUP_ADD_SINGLETON

#define STARTUP_ADD_SINGLETON (   type)
Value:
static void startup_singleton_##type() { \
StartupHelper::addSingleton<type>(); \
} \
Q_COREAPP_STARTUP_FUNCTION(startup_singleton_##type)

This macro will automatically call StartupHelper::addSingleton() for the passed Type before the app starts.

See also
StartupHelper::addSingleton()