49 lines
1.5 KiB
C++
49 lines
1.5 KiB
C++
|
|
/*
|
||
|
|
DEPENDENCY-FACTORY.hpp - managing the lifecycle of singletons and dependencies
|
||
|
|
|
||
|
|
Copyright (C) Lumiera.org
|
||
|
|
2013, Hermann Vosseler <Ichthyostega@web.de>
|
||
|
|
|
||
|
|
This program is free software; you can redistribute it and/or
|
||
|
|
modify it under the terms of the GNU General Public License as
|
||
|
|
published by the Free Software Foundation; either version 2 of
|
||
|
|
the License, or (at your option) any later version.
|
||
|
|
|
||
|
|
This program is distributed in the hope that it will be useful,
|
||
|
|
but WITHOUT ANY WARRANTY; without even the implied warranty of
|
||
|
|
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
||
|
|
GNU General Public License for more details.
|
||
|
|
|
||
|
|
You should have received a copy of the GNU General Public License
|
||
|
|
along with this program; if not, write to the Free Software
|
||
|
|
Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA.
|
||
|
|
|
||
|
|
====================================================================
|
||
|
|
This code is heavily inspired by
|
||
|
|
The Loki Library (loki-lib/trunk/include/loki/Singleton.h)
|
||
|
|
Copyright (c) 2001 by Andrei Alexandrescu
|
||
|
|
Loki code accompanies the book:
|
||
|
|
Alexandrescu, Andrei. "Modern C++ Design: Generic Programming
|
||
|
|
and Design Patterns Applied".
|
||
|
|
Copyright (c) 2001. Addison-Wesley. ISBN 0201704315
|
||
|
|
|
||
|
|
*/
|
||
|
|
|
||
|
|
|
||
|
|
|
||
|
|
#ifndef LIB_DEPENDENCY_FACTORY_H
|
||
|
|
#define LIB_DEPENDENCY_FACTORY_H
|
||
|
|
|
||
|
|
|
||
|
|
#include "lib/depend.hpp"
|
||
|
|
|
||
|
|
//#include "lib/nobug-init.hpp"
|
||
|
|
//#include "lib/sync-classlock.hpp"
|
||
|
|
|
||
|
|
namespace lib {
|
||
|
|
|
||
|
|
/** */
|
||
|
|
|
||
|
|
} // namespace lib
|
||
|
|
#endif
|