Webdar 1.0.0
Web user interface to libdar
Public Member Functions | Static Public Member Functions | List of all members
static_object_library Class Reference

library storing static objects in memory More...

#include <static_object_library.hpp>

Public Member Functions

 static_object_library ()=delete
 no object of that class get ever created
 
 static_object_library (const static_object_library &ref)=delete
 
 static_object_library (static_object_library &&ref) noexcept=delete
 
static_object_libraryoperator= (const static_object_library &ref)=delete
 
static_object_libraryoperator= (static_object_library &&ref) noexcept=delete
 

Static Public Member Functions

static void init ()
 initialize the library once and for all
 
static const static_objectfind_object (const std::string &name)
 
static void release ()
 release all objects added to the library
 

Detailed Description

library storing static objects in memory

Note
this is a class without objects, it receives at compilation time a C/C++ generated code from binary objects, associate those to a name and provides thanks to the static find_object() method, a pointer to compilation time defined (and thus static) objects.

Member Function Documentation

◆ find_object()

const static_object * static_object_library::find_object ( const std::string &  name)
static

operation should held an bug if the library is not frozen

Note
throw exception_range if no object can be found under that name

The documentation for this class was generated from the following files: