Kea 3.0.0
command_mgr.h
Go to the documentation of this file.
1// Copyright (C) 2015-2025 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 COMMAND_MGR_H
8#define COMMAND_MGR_H
9
11#include <boost/noncopyable.hpp>
12
13namespace isc {
14namespace config {
15
17class BadSocketInfo : public Exception {
18public:
19 BadSocketInfo(const char* file, size_t line, const char* what) :
20 isc::Exception(file, line, what) { }
21};
22
27class CommandMgr : public HookedCommandMgr, public boost::noncopyable {
28public:
29
34 static CommandMgr& instance();
35
36private:
37
39 CommandMgr();
40};
41
42} // end of isc::config namespace
43} // end of isc namespace
44#endif
Exception(const char *file, size_t line, const char *what)
Constructor for a given type for exceptions with file name and file line number.
virtual const char * what() const
Returns a C-style character string of the cause of the exception.
BadSocketInfo(const char *file, size_t line, const char *what)
Definition command_mgr.h:19
static CommandMgr & instance()
CommandMgr is a singleton class.
Defines the logger used by the top-level component of kea-lfc.