Debian Codegraph @

src/atlas/library/Plugin.cc

raw
1 /*
2 * (C) Copyright 2013 ECMWF.
3 *
4 * This software is licensed under the terms of the Apache Licence Version 2.0
5 * which can be obtained at http://www.apache.org/licenses/LICENSE-2.0.
6 * In applying this licence, ECMWF does not waive the privileges and immunities
7 * granted to it by virtue of its status as an intergovernmental organisation
8 * nor does it submit to any jurisdiction.
9 */
10
11 #include "Plugin.h"
12
13 #include "atlas/library/Library.h"
14
15 namespace atlas {
16
17 //----------------------------------------------------------------------------------------------------------------------
18
19 Plugin::Plugin(const std::string& name, const std::string& libname): eckit::system::Plugin(name, libname) {
20 atlas::Library::instance().registerPlugin(*this);
21 }
22
23 Plugin::~Plugin() {
24 atlas::Library::instance().deregisterPlugin(*this);
25 }
26
27 //----------------------------------------------------------------------------------------------------------------------
28
29 } // namespace atlas