modules.cpp File Reference

Detailed Description

Implementation of Modules Management Subsystem.

Definition in file modules.cpp.

#include <hn/hnprec.h>
#include <hn/modules.h>
#include <hn/log.h>
#include <hn/hydranode.h>
#include <boost/lexical_cast.hpp>

Include dependency graph for modules.cpp:

Go to the source code of this file.


namespace  Detail


Detail::InitializerBasebuiltIn (uint8_t n=0, Detail::InitializerBase *i=0)
 Built-in modules.

Function Documentation

Detail::InitializerBase* builtIn uint8_t  n = 0,
Detail::InitializerBase i = 0

Built-in modules.

This function contains built-in modules initializers in static vector, and allows accessing them. The reason for this kind of implementation is to have at least some control of static initialization order; if implemented using static file-scope variable, things go wrong during initialization.

n Request to return the initializer at this position
i Add initializer to the vector
0 when adding, or when requesting invalid position; nonzero pointer to InitializerBase object otherwise.

Definition at line 76 of file modules.cpp.

Referenced by Detail::InitializerBase::InitializerBase(), and ModManager::onInit().