7#ifndef DB_SERVER_COLLECTION_H 
    8#define DB_SERVER_COLLECTION_H 
   11#include <boost/multi_index/mem_fun.hpp> 
   12#include <boost/multi_index/indexed_by.hpp> 
   13#include <boost/multi_index/ordered_index.hpp> 
   14#include <boost/multi_index_container.hpp> 
   26typedef boost::multi_index_container<
 
   28    boost::multi_index::indexed_by<
 
   29        boost::multi_index::ordered_unique<
 
   30            boost::multi_index::tag<ServerTagIndexTag>,
 
   31            boost::multi_index::const_mem_fun<
Server, std::string,
 
Utility class used to fetch Server objects from the ServerCollection.
static ServerPtr get(const ServerCollection &collection, const data::ServerTag &server_tag)
Fetches server from the collection by tag.
Represents information about a Kea server in the database.
std::string getServerTagAsText() const
Returns server tag as text.
boost::shared_ptr< Server > ServerPtr
Shared pointer to the Server class.
boost::multi_index_container< ServerPtr, boost::multi_index::indexed_by< boost::multi_index::ordered_unique< boost::multi_index::tag< ServerTagIndexTag >, boost::multi_index::const_mem_fun< Server, std::string, &Server::getServerTagAsText > > > > ServerCollection
Multi index container for Server.
Defines the logger used by the top-level component of kea-lfc.
Tag identifying an index by server tag.