Kea  2.1.7-git
libinfo.h
Go to the documentation of this file.
1 // Copyright (C) 2016 Internet Systems Consortium, Inc. ("ISC")
2 //
3 // This Source Code Form is subject to the terms of the Mozilla Public
4 // License, v. 2.0. If a copy of the MPL was not distributed with this
5 // file, You can obtain one at http://mozilla.org/MPL/2.0/.
6 
7 #ifndef HOOKS_LIBINFO_H
8 #define HOOKS_LIBINFO_H
9 
10 #include <cc/data.h>
11 
12 #include <boost/shared_ptr.hpp>
13 
14 #include <string>
15 #include <vector>
16 #include <utility>
17 
18 namespace isc {
19 namespace hooks {
20 
28 typedef std::pair<std::string, data::ConstElementPtr> HookLibInfo;
29 
31 typedef std::vector<HookLibInfo> HookLibsCollection;
32 
34 typedef boost::shared_ptr<HookLibsCollection> HookLibsCollectionPtr;
35 
37 std::vector<std::string> extractNames(const HookLibsCollection& libinfo);
38 
39 };
40 };
41 
42 #endif
std::vector< std::string > extractNames(const isc::hooks::HookLibsCollection &libraries)
Extracts names from HookLibsCollection.
Definition: libinfo.cc:19
std::vector< HookLibInfo > HookLibsCollection
A storage for information about hook libraries.
Definition: libinfo.h:31
boost::shared_ptr< HookLibsCollection > HookLibsCollectionPtr
Shared pointer to collection of hooks libraries.
Definition: libinfo.h:34
Defines the logger used by the top-level component of kea-lfc.
std::pair< std::string, data::ConstElementPtr > HookLibInfo
Entity that holds information about hook libraries and their parameters.
Definition: libinfo.h:28