24#ifndef STATIC_OBJECT_LIBRARY_HPP
25#define STATIC_OBJECT_LIBRARY_HPP
39#include "static_object.hpp"
76 static void add_object_to_library(
const std::string & name,
static_object * ref);
79 static void freeze_library() { frozen =
true; };
84 static std::map<std::string, static_object *> library;
library storing static objects in memory
Definition: static_object_library.hpp:49
static void init()
initialize the library once and for all
Definition: static_object_library.cpp:46
static void release()
release all objects added to the library
Definition: static_object_library.cpp:66
static const static_object * find_object(const std::string &name)
Definition: static_object_library.cpp:54
static_object_library()=delete
no object of that class get ever created
common ancestor to all static object, this makes easier to add new object type in the future
Definition: static_object.hpp:42