-// Copyright (C) 2017-2022 Internet Systems Consortium, Inc. ("ISC")
+// Copyright (C) 2017-2024 Internet Systems Consortium, Inc. ("ISC")
//
// This Source Code Form is subject to the terms of the Mozilla Public
// License, v. 2.0. If a copy of the MPL was not distributed with this
class CommandForwardingError : public Exception {
public:
CommandForwardingError(const char* file, size_t line, const char* what) :
- isc::Exception(file, line, what) { };
+ isc::Exception(file, line, what) { }
};
/// @brief Command Manager for Control Agent.
-// Copyright (C) 2016-2021 Internet Systems Consortium, Inc. ("ISC")
+// Copyright (C) 2016-2024 Internet Systems Consortium, Inc. ("ISC")
//
// This Source Code Form is subject to the terms of the Mozilla Public
// License, v. 2.0. If a copy of the MPL was not distributed with this
/// @brief Defines a shared pointer to CtrlAgentProcess.
typedef boost::shared_ptr<CtrlAgentProcess> CtrlAgentProcessPtr;
-}; // namespace isc::agent
-}; // namespace isc
+} // namespace isc::agent
+} // namespace isc
#endif // CTRL_AGENT_PROCESS_H
-// Copyright (C) 2017 Internet Systems Consortium, Inc. ("ISC")
+// Copyright (C) 2017-2024 Internet Systems Consortium, Inc. ("ISC")
//
// This Source Code Form is subject to the terms of the Mozilla Public
// License, v. 2.0. If a copy of the MPL was not distributed with this
class ParserContext;
-}; // end of isc::dhcp namespace
-}; // end of isc namespace
+} // end of isc::dhcp namespace
+} // end of isc namespace
#endif
-// Copyright (C) 2023 Internet Systems Consortium, Inc. ("ISC")
+// Copyright (C) 2023-2024 Internet Systems Consortium, Inc. ("ISC")
//
// This Source Code Form is subject to the terms of the Mozilla Public
// License, v. 2.0. If a copy of the MPL was not distributed with this
public:
CheckExistsAddTransactionError(const char* file, size_t line,
const char* what) :
- isc::Exception(file, line, what) { };
+ isc::Exception(file, line, what) { }
};
/// @brief Embodies the "life-cycle" required to carry out a DDNS Add update.
-// Copyright (C) 2023 Internet Systems Consortium, Inc. ("ISC")
+// Copyright (C) 2023-2024 Internet Systems Consortium, Inc. ("ISC")
//
// This Source Code Form is subject to the terms of the Mozilla Public
// License, v. 2.0. If a copy of the MPL was not distributed with this
public:
CheckExistsRemoveTransactionError(const char* file, size_t line,
const char* what) :
- isc::Exception(file, line, what) { };
+ isc::Exception(file, line, what) { }
};
/// @brief Embodies the "life-cycle" required to carry out a DDNS Remove update.
friend class NakedD2Controller;
};
-}; // namespace isc::d2
-}; // namespace isc
+} // namespace isc::d2
+} // namespace isc
#endif
class D2QueueMgrError : public isc::Exception {
public:
D2QueueMgrError(const char* file, size_t line, const char* what) :
- isc::Exception(file, line, what) { };
+ isc::Exception(file, line, what) { }
};
/// @brief Thrown if the queue manager's receive handler is passed
class D2QueueMgrReceiveError : public isc::Exception {
public:
D2QueueMgrReceiveError(const char* file, size_t line, const char* what) :
- isc::Exception(file, line, what) { };
+ isc::Exception(file, line, what) { }
};
/// @brief Thrown if the request queue is full when an enqueue is attempted.
class D2QueueMgrQueueFull : public isc::Exception {
public:
D2QueueMgrQueueFull(const char* file, size_t line, const char* what) :
- isc::Exception(file, line, what) { };
+ isc::Exception(file, line, what) { }
};
/// @brief Thrown if the request queue empty and a read is attempted.
class D2QueueMgrQueueEmpty : public isc::Exception {
public:
D2QueueMgrQueueEmpty(const char* file, size_t line, const char* what) :
- isc::Exception(file, line, what) { };
+ isc::Exception(file, line, what) { }
};
/// @brief Thrown if a queue index is beyond the end of the queue
class D2QueueMgrInvalidIndex : public isc::Exception {
public:
D2QueueMgrInvalidIndex(const char* file, size_t line, const char* what) :
- isc::Exception(file, line, what) { };
+ isc::Exception(file, line, what) { }
};
/// @brief D2QueueMgr creates and manages a queue of DNS update requests.
class D2UpdateMgrError : public isc::Exception {
public:
D2UpdateMgrError(const char* file, size_t line, const char* what) :
- isc::Exception(file, line, what) { };
+ isc::Exception(file, line, what) { }
};
/// @brief Defines a list of transactions.
-// Copyright (C) 2013-2021 Internet Systems Consortium, Inc. ("ISC")
+// Copyright (C) 2013-2024 Internet Systems Consortium, Inc. ("ISC")
//
// This Source Code Form is subject to the terms of the Mozilla Public
// License, v. 2.0. If a copy of the MPL was not distributed with this
public:
NameAddTransactionError(const char* file, size_t line,
const char* what) :
- isc::Exception(file, line, what) { };
+ isc::Exception(file, line, what) { }
};
/// @brief Embodies the "life-cycle" required to carry out a DDNS Add update.
-// Copyright (C) 2013-2021 Internet Systems Consortium, Inc. ("ISC")
+// Copyright (C) 2013-2024 Internet Systems Consortium, Inc. ("ISC")
//
// This Source Code Form is subject to the terms of the Mozilla Public
// License, v. 2.0. If a copy of the MPL was not distributed with this
public:
NameRemoveTransactionError(const char* file, size_t line,
const char* what) :
- isc::Exception(file, line, what) { };
+ isc::Exception(file, line, what) { }
};
/// @brief Embodies the "life-cycle" required to carry out a DDNS Remove update.
class D2ParseError : public isc::Exception {
public:
D2ParseError(const char* file, size_t line, const char* what) :
- isc::Exception(file, line, what) { };
+ isc::Exception(file, line, what) { }
};
/// @brief Evaluation context, an interface to the expression evaluation.
-// Copyright (C) 2017 Internet Systems Consortium, Inc. ("ISC")
+// Copyright (C) 2017-2024 Internet Systems Consortium, Inc. ("ISC")
//
// This Source Code Form is subject to the terms of the Mozilla Public
// License, v. 2.0. If a copy of the MPL was not distributed with this
class D2ParserContext;
-}; // end of isc::dhcp namespace
-}; // end of isc namespace
+} // end of isc::dhcp namespace
+} // end of isc namespace
#endif
-// Copyright (C) 2020-2021 Internet Systems Consortium, Inc. ("ISC")
+// Copyright (C) 2020-2024 Internet Systems Consortium, Inc. ("ISC")
//
// This Source Code Form is subject to the terms of the Mozilla Public
// License, v. 2.0. If a copy of the MPL was not distributed with this
public:
SimpleAddTransactionError(const char* file, size_t line,
const char* what) :
- isc::Exception(file, line, what) { };
+ isc::Exception(file, line, what) { }
};
/// @brief Embodies the "life-cycle" required to carry out a DDNS Add update.
-// Copyright (C) 2023 Internet Systems Consortium, Inc. ("ISC")
+// Copyright (C) 2023-2024 Internet Systems Consortium, Inc. ("ISC")
//
// This Source Code Form is subject to the terms of the Mozilla Public
// License, v. 2.0. If a copy of the MPL was not distributed with this
public:
SimpleAddWithoutDHCIDTransactionError(const char* file, size_t line,
const char* what) :
- isc::Exception(file, line, what) { };
+ isc::Exception(file, line, what) { }
};
/// @brief Embodies the "life-cycle" required to carry out a DDNS Add update
-// Copyright (C) 2020-2021 Internet Systems Consortium, Inc. ("ISC")
+// Copyright (C) 2020-2024 Internet Systems Consortium, Inc. ("ISC")
//
// This Source Code Form is subject to the terms of the Mozilla Public
// License, v. 2.0. If a copy of the MPL was not distributed with this
public:
SimpleRemoveTransactionError(const char* file, size_t line,
const char* what) :
- isc::Exception(file, line, what) { };
+ isc::Exception(file, line, what) { }
};
/// @brief Embodies the "life-cycle" required to carry out a DDNS Remove update.
-// Copyright (C) 2023 Internet Systems Consortium, Inc. ("ISC")
+// Copyright (C) 2023-2024 Internet Systems Consortium, Inc. ("ISC")
//
// This Source Code Form is subject to the terms of the Mozilla Public
// License, v. 2.0. If a copy of the MPL was not distributed with this
public:
SimpleRemoveWithoutDHCIDTransactionError(const char* file, size_t line,
const char* what) :
- isc::Exception(file, line, what) { };
+ isc::Exception(file, line, what) { }
};
/// @brief Embodies the "life-cycle" required to carry out a DDNS Remove update without
/// @todo add a way to trap log file and search it
}
-}; // end of isc::d2 namespace
-}; // end of isc namespace
+} // end of isc::d2 namespace
+} // end of isc namespace
class Dhcp4ParseError : public isc::Exception {
public:
Dhcp4ParseError(const char* file, size_t line, const char* what) :
- isc::Exception(file, line, what) { };
+ isc::Exception(file, line, what) { }
};
/// @brief Evaluation context, an interface to the expression evaluation.
isc::data::ElementPtr parseCommon();
};
-}; // end of isc::eval namespace
-}; // end of isc namespace
+} // namespace dhcp
+} // namespace isc
#endif
-// Copyright (C) 2016 Internet Systems Consortium, Inc. ("ISC")
+// Copyright (C) 2016-2024 Internet Systems Consortium, Inc. ("ISC")
//
// This Source Code Form is subject to the terms of the Mozilla Public
// License, v. 2.0. If a copy of the MPL was not distributed with this
class Parser4Context;
-}; // end of isc::dhcp namespace
-}; // end of isc namespace
+} // namespace dhcp
+} // namespace isc
#endif
-// Copyright (C) 2014-2015 Internet Systems Consortium, Inc. ("ISC")
+// Copyright (C) 2014-2024 Internet Systems Consortium, Inc. ("ISC")
//
// This Source Code Form is subject to the terms of the Mozilla Public
// License, v. 2.0. If a copy of the MPL was not distributed with this
D2Dhcpv4Srv srv_;
};
-}; // end of isc::dhcp::test namespace
-}; // end of isc::dhcp namespace
-}; // end of isc namespace
+} // end of isc::dhcp::test namespace
+} // end of isc::dhcp namespace
+} // end of isc namespace
#endif // D2_UNITTEST_H
-// Copyright (C) 2014-2020 Internet Systems Consortium, Inc. ("ISC")
+// Copyright (C) 2014-2024 Internet Systems Consortium, Inc. ("ISC")
//
// This Source Code Form is subject to the terms of the Mozilla Public
// License, v. 2.0. If a copy of the MPL was not distributed with this
class Dhcp4ClientError : public isc::Exception {
public:
Dhcp4ClientError(const char* file, size_t line, const char* what) :
- isc::Exception(file, line, what) { };
+ isc::Exception(file, line, what) { }
};
/// @brief DHCPv4 client used for unit testing.
class DHCPv6DiscardMessageError : public Exception {
public:
DHCPv6DiscardMessageError(const char* file, size_t line, const char* what) :
- isc::Exception(file, line, what) { };
+ isc::Exception(file, line, what) { }
};
/// @brief DHCPv6 server service.
class Dhcp6ParseError : public isc::Exception {
public:
Dhcp6ParseError(const char* file, size_t line, const char* what) :
- isc::Exception(file, line, what) { };
+ isc::Exception(file, line, what) { }
};
/// @brief Evaluation context, an interface to the expression evaluation.
isc::data::ElementPtr parseCommon();
};
-}; // end of isc::eval namespace
-}; // end of isc namespace
+} // namespace dhcp
+} // namespace isc
#endif
-// Copyright (C) 2016 Internet Systems Consortium, Inc. ("ISC")
+// Copyright (C) 2016-2024 Internet Systems Consortium, Inc. ("ISC")
//
// This Source Code Form is subject to the terms of the Mozilla Public
// License, v. 2.0. If a copy of the MPL was not distributed with this
class Parser6Context;
-}; // end of isc::dhcp namespace
-}; // end of isc namespace
+} // namespace dhcp
+} // namespace isc
#endif
D2Dhcpv6Srv srv_;
};
-}; // end of isc::dhcp::test namespace
-}; // end of isc::dhcp namespace
-}; // end of isc namespace
+} // end of isc::dhcp::test namespace
+} // end of isc::dhcp namespace
+} // end of isc namespace
#endif // D2_UNITTEST_H
}
}
-}; // end of anonymous namespace
+} // end of anonymous namespace
namespace isc {
namespace dhcp {
namespace {
/// @brief Maximum number of errors to allow when reading leases from the file.
const uint32_t MAX_LEASE_ERRORS = 100;
-}; // namespace anonymous
+} // namespace anonymous
namespace isc {
namespace lfc {
}
}
-}; // namespace isc::lfc
-}; // namespace isc
+} // namespace isc::lfc
+} // namespace isc
-// Copyright (C) 2015-2018 Internet Systems Consortium, Inc. ("ISC")
+// Copyright (C) 2015-2024 Internet Systems Consortium, Inc. ("ISC")
//
// This Source Code Form is subject to the terms of the Mozilla Public
// License, v. 2.0. If a copy of the MPL was not distributed with this
class InvalidUsage : public isc::Exception {
public:
InvalidUsage(const char* file, size_t line, const char* what) :
- isc::Exception(file, line, what) { };
+ isc::Exception(file, line, what) { }
};
/// @brief Exceptions thrown when a method is unable to manipulate
class RunTimeFail : public isc::Exception {
public:
RunTimeFail(const char* file, size_t line, const char* what) :
- isc::Exception(file, line, what) { };
+ isc::Exception(file, line, what) { }
};
/// @brief Process controller for LFC process
void startLogger(const bool test_mode) const;
};
-}; // namespace isc::lfc
-}; // namespace isc
+} // namespace isc::lfc
+} // namespace isc
#endif // LFC_CONTROLLER_H
class HAConfigValidationError : public Exception {
public:
HAConfigValidationError(const char* file, size_t line, const char* what) :
- isc::Exception(file, line, what) { };
+ isc::Exception(file, line, what) { }
};
class HAConfig;
-// Copyright (C) 2022 Internet Systems Consortium, Inc. ("ISC")
+// Copyright (C) 2022-2024 Internet Systems Consortium, Inc. ("ISC")
//
// This Source Code Form is subject to the terms of the Mozilla Public
// License, v. 2.0. If a copy of the MPL was not distributed with this
class LeaseCmdsConflict : public isc::Exception {
public:
LeaseCmdsConflict(const char* file, size_t line, const char* what) :
- isc::Exception(file, line, what) { };
+ isc::Exception(file, line, what) { }
};
#endif // LEASE_CMDS_EXCEPTIONS_H
-// Copyright (C) 2017-2022 Internet Systems Consortium, Inc. ("ISC")
+// Copyright (C) 2017-2024 Internet Systems Consortium, Inc. ("ISC")
//
// This Source Code Form is subject to the terms of the Mozilla Public
// License, v. 2.0. If a copy of the MPL was not distributed with this
virtual ~Lease6Parser() {}
};
-}; // end of isc::dhcp namespace
-}; // end of isc namespace
+} // end of isc::dhcp namespace
+} // end of isc namespace
#endif
class NotFound: public isc::Exception {
public:
NotFound (const char* file, size_t line, const char* what) :
- isc::Exception(file, line, what) { };
+ isc::Exception(file, line, what) { }
};
/// @brief Implements command handling for stat-leaseX-get commands
-// Copyright (C) 2013-2015 Internet Systems Consortium, Inc. ("ISC")
+// Copyright (C) 2013-2024 Internet Systems Consortium, Inc. ("ISC")
//
// This Source Code Form is subject to the terms of the Mozilla Public
// License, v. 2.0. If a copy of the MPL was not distributed with this
public:
UserDataSourceError(const char* file, size_t line,
const char* what) :
- isc::Exception(file, line, what) { };
+ isc::Exception(file, line, what) { }
};
/// @brief Defines an interface for reading user data into a registry.
class ProcessSpawnError : public Exception {
public:
ProcessSpawnError(const char* file, size_t line, const char* what) :
- isc::Exception(file, line, what) { };
+ isc::Exception(file, line, what) { }
};
/// @brief Forward declaration to the implementation of the @c ProcessSpawn
class UnixDomainSocketError : public Exception {
public:
UnixDomainSocketError(const char* file, size_t line, const char* what) :
- isc::Exception(file, line, what) { };
+ isc::Exception(file, line, what) { }
};
class UnixDomainSocketImpl;
-// Copyright (C) 2017 Internet Systems Consortium, Inc. ("ISC")
+// Copyright (C) 2017-2024 Internet Systems Consortium, Inc. ("ISC")
//
// This Source Code Form is subject to the terms of the Mozilla Public
// License, v. 2.0. If a copy of the MPL was not distributed with this
class ToElementError : public isc::Exception {
public:
ToElementError(const char* file, size_t line, const char* what) :
- isc::Exception(file, line, what) { };
+ isc::Exception(file, line, what) { }
};
namespace data {
virtual isc::data::ElementPtr toElement() const = 0;
};
-}; // namespace isc::dhcp
-}; // namespace isc
+} // namespace dhcp
+} // namespace isc
#endif // CFG_TO_ELEMENT_H
combineCommandsLists(const isc::data::ConstElementPtr& response1,
const isc::data::ConstElementPtr& response2);
-}; // end of namespace isc::config
-}; // end of namespace isc
+} // namespace config
+} // namespace isc
#endif // COMMAND_INTERPRETER_H
public:
// base class; make dtor virtual
- virtual ~Element() {};
+ virtual ~Element() {}
/// @return the type of this element
types getType() const { return (type_); }
/// getValue() below
//@{
virtual int64_t intValue() const
- { throwTypeError("intValue() called on non-integer Element"); };
+ { throwTypeError("intValue() called on non-integer Element"); }
virtual isc::util::int128_t bigIntValue() const {
throwTypeError("bigIntValue() called on non-big-integer Element");
}
virtual double doubleValue() const
- { throwTypeError("doubleValue() called on non-double Element"); };
+ { throwTypeError("doubleValue() called on non-double Element"); }
virtual bool boolValue() const
- { throwTypeError("boolValue() called on non-Bool Element"); };
+ { throwTypeError("boolValue() called on non-Bool Element"); }
virtual std::string stringValue() const
- { throwTypeError("stringValue() called on non-string Element"); };
+ { throwTypeError("stringValue() called on non-string Element"); }
virtual const std::vector<ElementPtr>& listValue() const {
// replace with real exception or empty vector?
throwTypeError("listValue() called on non-list Element");
- };
+ }
virtual const std::map<std::string, ConstElementPtr>& mapValue() const {
// replace with real exception or empty map?
throwTypeError("mapValue() called on non-map Element");
- };
+ }
//@}
/// @name Exception-safe getters
//@{
virtual bool setValue(const long long int v);
virtual bool setValue(const isc::util::int128_t& v);
- bool setValue(const long int i) { return (setValue(static_cast<long long int>(i))); };
- bool setValue(const int i) { return (setValue(static_cast<long long int>(i))); };
+ bool setValue(const long int i) { return (setValue(static_cast<long long int>(i))); }
+ bool setValue(const int i) { return (setValue(static_cast<long long int>(i))); }
virtual bool setValue(const double v);
virtual bool setValue(const bool t);
virtual bool setValue(const std::string& v);
public:
DoubleElement(double v, const Position& pos = ZERO_POSITION())
- : Element(real, pos), d(v) {};
+ : Element(real, pos), d(v) {}
double doubleValue() const { return (d); }
using Element::getValue;
bool getValue(double& t) const { t = d; return (true); }
public:
BoolElement(const bool v, const Position& pos = ZERO_POSITION())
- : Element(boolean, pos), b(v) {};
+ : Element(boolean, pos), b(v) {}
bool boolValue() const { return (b); }
using Element::getValue;
bool getValue(bool& t) const { t = b; return (true); }
class NullElement : public Element {
public:
NullElement(const Position& pos = ZERO_POSITION())
- : Element(null, pos) {};
+ : Element(null, pos) {}
void toJSON(std::ostream& ss) const;
bool equals(const Element& other) const;
};
public:
StringElement(std::string v, const Position& pos = ZERO_POSITION())
- : Element(string, pos), s(v) {};
+ : Element(string, pos), s(v) {}
std::string stringValue() const { return (s); }
using Element::getValue;
bool getValue(std::string& t) const { t = s; return (true); }
void set(size_t i, ElementPtr e) {
l.at(i) = e;
}
- void add(ElementPtr e) { l.push_back(e); };
+ void add(ElementPtr e) { l.push_back(e); }
using Element::remove;
- void remove(int i) { l.erase(l.begin() + i); };
+ void remove(int i) { l.erase(l.begin() + i); }
void toJSON(std::ostream& ss) const;
size_t size() const { return (l.size()); }
bool empty() const { return (l.empty()); }
-// Copyright (C) 2017 Internet Systems Consortium, Inc. ("ISC")
+// Copyright (C) 2017-2024 Internet Systems Consortium, Inc. ("ISC")
//
// This Source Code Form is subject to the terms of the Mozilla Public
// License, v. 2.0. If a copy of the MPL was not distributed with this
class ParseError : public isc::Exception {
public:
ParseError(const char* file, size_t line, const char* what) :
- isc::Exception(file, line, what) { };
+ isc::Exception(file, line, what) { }
};
/// An exception that is thrown if an error occurs while configuring
: isc::Exception(file, line, what) {}
};
-}; // end of isc::dhcp namespace
-}; // end of isc namespace
+} // namespace dhcp
+} // namespace isc
#endif // DHCP_CONFIG_ERROR_H
-// Copyright (C) 2017-2021 Internet Systems Consortium, Inc. ("ISC")
+// Copyright (C) 2017-2024 Internet Systems Consortium, Inc. ("ISC")
//
// This Source Code Form is subject to the terms of the Mozilla Public
// License, v. 2.0. If a copy of the MPL was not distributed with this
class JSONFeedError : public Exception {
public:
JSONFeedError(const char* file, size_t line, const char* what) :
- isc::Exception(file, line, what) { };
+ isc::Exception(file, line, what) { }
};
/// @brief State model for asynchronous read of data in JSON format.
-// Copyright (C) 2017-2020 Internet Systems Consortium, Inc. ("ISC")
+// Copyright (C) 2017-2024 Internet Systems Consortium, Inc. ("ISC")
//
// This Source Code Form is subject to the terms of the Mozilla Public
// License, v. 2.0. If a copy of the MPL was not distributed with this
return (result);
}
-}; // end of isc::dhcp namespace
-}; // end of isc namespace
+} // end of isc::dhcp namespace
+} // end of isc namespace
// module is called.
BaseCommandMgrHooks Hooks;
-}; // anonymous namespace
+} // anonymous namespace
namespace isc {
namespace config {
-// Copyright (C) 2017-2023 Internet Systems Consortium, Inc. ("ISC")
+// Copyright (C) 2017-2024 Internet Systems Consortium, Inc. ("ISC")
//
// This Source Code Form is subject to the terms of the Mozilla Public
// License, v. 2.0. If a copy of the MPL was not distributed with this
class InvalidCommandHandler : public Exception {
public:
InvalidCommandHandler(const char* file, size_t line, const char* what) :
- isc::Exception(file, line, what) { };
+ isc::Exception(file, line, what) { }
};
/// @brief Exception indicating that the command name is not valid
class InvalidCommandName : public Exception {
public:
InvalidCommandName(const char* file, size_t line, const char* what) :
- isc::Exception(file, line, what) { };
+ isc::Exception(file, line, what) { }
};
/// @brief Commands Manager, responsible for processing external commands.
BaseCommandMgr();
/// @brief Destructor.
- virtual ~BaseCommandMgr() { };
+ virtual ~BaseCommandMgr() { }
/// @brief Triggers command processing.
///
class BadSocketInfo : public Exception {
public:
BadSocketInfo(const char* file, size_t line, const char* what) :
- isc::Exception(file, line, what) { };
+ isc::Exception(file, line, what) { }
};
/// @brief An exception indicating a problem with socket operation
class SocketError : public Exception {
public:
SocketError(const char* file, size_t line, const char* what) :
- isc::Exception(file, line, what) { };
+ isc::Exception(file, line, what) { }
};
class UnixCommandMgrImpl;
class D2CfgError : public isc::Exception {
public:
D2CfgError(const char* file, size_t line, const char* what) :
- isc::Exception(file, line, what) { };
+ isc::Exception(file, line, what) { }
};
/// @brief Acts as a storage vault for D2 global scalar parameters
-// Copyright (C) 2013-2021 Internet Systems Consortium, Inc. ("ISC")
+// Copyright (C) 2013-2024 Internet Systems Consortium, Inc. ("ISC")
//
// This Source Code Form is subject to the terms of the Mozilla Public
// License, v. 2.0. If a copy of the MPL was not distributed with this
public:
NameChangeTransactionError(const char* file, size_t line,
const char* what) :
- isc::Exception(file, line, what) { };
+ isc::Exception(file, line, what) { }
};
/// @brief Defines the type used as the unique key for transactions.
EXPECT_EQ(ncr->getFqdn(), rdata_it->getCurrent().toText());
}
-}; // anonymous namespace
+} // anonymous namespace
}
/// @brief Destructor
- virtual ~DatabaseConnection(){};
+ virtual ~DatabaseConnection(){}
/// @brief Instantiates a ReconnectCtl based on the connection's
/// reconnect parameters
-// Copyright (C) 2015-2018 Internet Systems Consortium, Inc. ("ISC")
+// Copyright (C) 2015-2024 Internet Systems Consortium, Inc. ("ISC")
//
// This Source Code Form is subject to the terms of the Mozilla Public
// License, v. 2.0. If a copy of the MPL was not distributed with this
};
-}; // end of isc::dhcp namespace
-}; // end of isc namespace
+} // end of isc::dhcp namespace
+} // end of isc namespace
#endif /* DUID_FACTORY_H */
return !(*this == other);
}
-}; // end of isc::dhcp namespace
-}; // end of isc namespace
+} // end of isc::dhcp namespace
+} // end of isc namespace
-// Copyright (C) 2013-2015 Internet Systems Consortium, Inc. ("ISC")
+// Copyright (C) 2013-2024 Internet Systems Consortium, Inc. ("ISC")
//
// This Source Code Form is subject to the terms of the Mozilla Public
// License, v. 2.0. If a copy of the MPL was not distributed with this
/// @brief Shared pointer to a hardware address structure
typedef boost::shared_ptr<HWAddr> HWAddrPtr;
-}; // end of isc::dhcp namespace
-}; // end of isc namespace
+} // namespace dhcp
+} // namespace isc
#endif // HWADDR_H
class IfaceDetectError : public Exception {
public:
IfaceDetectError(const char* file, size_t line, const char* what) :
- isc::Exception(file, line, what) { };
+ isc::Exception(file, line, what) { }
};
/// @brief Exception thrown when it is not allowed to set new Packet Filter.
class PacketFilterChangeDenied : public Exception {
public:
PacketFilterChangeDenied(const char* file, size_t line, const char* what) :
- isc::Exception(file, line, what) { };
+ isc::Exception(file, line, what) { }
};
/// @brief Exception thrown when a call to select is interrupted by a signal.
class SignalInterruptOnSelect : public Exception {
public:
SignalInterruptOnSelect(const char* file, size_t line, const char* what) :
- isc::Exception(file, line, what) { };
+ isc::Exception(file, line, what) { }
};
/// @brief IfaceMgr exception thrown thrown when socket opening
class SocketConfigError : public Exception {
public:
SocketConfigError(const char* file, size_t line, const char* what) :
- isc::Exception(file, line, what) { };
+ isc::Exception(file, line, what) { }
};
/// @brief IfaceMgr exception thrown thrown when error occurred during
class SocketReadError : public Exception {
public:
SocketReadError(const char* file, size_t line, const char* what) :
- isc::Exception(file, line, what) { };
+ isc::Exception(file, line, what) { }
};
/// @brief IfaceMgr exception thrown thrown when error occurred during
class SocketWriteError : public Exception {
public:
SocketWriteError(const char* file, size_t line, const char* what) :
- isc::Exception(file, line, what) { };
+ isc::Exception(file, line, what) { }
};
/// @brief IfaceMgr exception thrown when there is no suitable interface.
class IfaceNotFound : public Exception {
public:
IfaceNotFound(const char* file, size_t line, const char* what) :
- isc::Exception(file, line, what) { };
+ isc::Exception(file, line, what) { }
};
/// @brief IfaceMgr exception thrown when there is no suitable socket found.
class SocketNotFound : public Exception {
public:
SocketNotFound(const char* file, size_t line, const char* what) :
- isc::Exception(file, line, what) { };
+ isc::Exception(file, line, what) { }
};
/// @brief Represents a single network interface
/// @brief Returns interface name.
///
/// @return interface name
- std::string getName() const { return name_; };
+ std::string getName() const { return name_; }
/// @brief Sets up hardware type of the interface.
///
class OpaqueDataTupleError : public Exception {
public:
OpaqueDataTupleError(const char* file, size_t line, const char* what) :
- isc::Exception(file, line, what) { };
+ isc::Exception(file, line, what) { }
};
class SkipRemainingOptionsError : public Exception {
public:
SkipRemainingOptionsError (const char* file, size_t line, const char* what) :
- isc::Exception(file, line, what) { };
+ isc::Exception(file, line, what) { }
};
/// @brief Exception thrown during option unpacking
class SkipThisOptionError : public Exception {
public:
SkipThisOptionError (const char* file, size_t line, const char* what) :
- isc::Exception(file, line, what) { };
+ isc::Exception(file, line, what) { }
};
/// @brief Wrapper exception thrown by unpackOptionsX functions to
class OptionParseError : public Exception {
public:
OptionParseError (const char* file, size_t line, const char* what) :
- isc::Exception(file, line, what) { };
+ isc::Exception(file, line, what) { }
};
class Option {
const size_t OPTION6_STATUS_CODE_MIN_LEN = sizeof(uint16_t);
const size_t OPTION4_SLP_SERVICE_SCOPEMIN_LEN = sizeof(uint8_t);
-}; // end of anonymous namespace
+} // end of anonymous namespace
namespace isc {
namespace dhcp {
class InvalidDataType : public Exception {
public:
InvalidDataType(const char* file, size_t line, const char* what) :
- isc::Exception(file, line, what) { };
+ isc::Exception(file, line, what) { }
};
/// @brief Exception to be thrown when cast to the data type was unsuccessful.
class BadDataTypeCast : public Exception {
public:
BadDataTypeCast(const char* file, size_t line, const char* what) :
- isc::Exception(file, line, what) { };
+ isc::Exception(file, line, what) { }
};
/// @brief Data types of DHCP option fields.
class InvalidOptionValue : public Exception {
public:
InvalidOptionValue(const char* file, size_t line, const char* what) :
- isc::Exception(file, line, what) { };
+ isc::Exception(file, line, what) { }
};
/// @brief Exception to be thrown when option definition is invalid.
class MalformedOptionDefinition : public Exception {
public:
MalformedOptionDefinition(const char* file, size_t line, const char* what) :
- isc::Exception(file, line, what) { };
+ isc::Exception(file, line, what) { }
};
/// @brief Exception to be thrown when the particular option definition
class DuplicateOptionDefinition : public Exception {
public:
DuplicateOptionDefinition(const char* file, size_t line, const char* what) :
- isc::Exception(file, line, what) { };
+ isc::Exception(file, line, what) { }
};
/// @brief Forward declaration to OptionDefinition.
/// @brief Return option data type.
///
/// @return option data type.
- OptionDataType getType() const { return (type_); };
+ OptionDataType getType() const { return (type_); }
/// @brief Returns const pointer to the user context
data::ConstElementPtr getContext() const {
-// Copyright (C) 2012-2020 Internet Systems Consortium, Inc. ("ISC")
+// Copyright (C) 2012-2024 Internet Systems Consortium, Inc. ("ISC")
//
// This Source Code Form is subject to the terms of the Mozilla Public
// License, v. 2.0. If a copy of the MPL was not distributed with this
class InvalidOptionSpace : public Exception {
public:
InvalidOptionSpace(const char* file, size_t line, const char* what) :
- isc::Exception(file, line, what) { };
+ isc::Exception(file, line, what) { }
};
/// OptionSpace forward declaration.
-// Copyright (C) 2018-2022 Internet Systems Consortium, Inc. ("ISC")
+// Copyright (C) 2018-2024 Internet Systems Consortium, Inc. ("ISC")
//
// This Source Code Form is subject to the terms of the Mozilla Public
// License, v. 2.0. If a copy of the MPL was not distributed with this
: queue_type_(queue_type) {}
/// Virtual destructor
- virtual ~PacketQueue(){};
+ virtual ~PacketQueue(){}
/// @brief Adds a packet to the queue
///
/// @return Fetches the logical name of the type of this queue.
std::string getQueueType() {
return (queue_type_);
- };
+ }
private:
/// @brief Logical name of the this queue's implementation type.
/// DHCPv6 packet queue factories.
typedef boost::shared_ptr<PacketQueue<Pkt6Ptr>> PacketQueue6Ptr;
-}; // namespace isc::dhcp
-}; // namespace isc
+} // namespace dhcp
+} // namespace isc
#endif // PACKET_QUEUE_H
-// Copyright (C) 2018-2022 Internet Systems Consortium, Inc. ("ISC")
+// Copyright (C) 2018-2024 Internet Systems Consortium, Inc. ("ISC")
//
// This Source Code Form is subject to the terms of the Mozilla Public
// License, v. 2.0. If a copy of the MPL was not distributed with this
virtual ~PacketQueueRing6(){}
};
-}; // namespace isc::dhcp
-}; // namespace isc
+} // namespace isc::dhcp
+} // namespace isc
#endif // PACKET_QUEUE_RING_H
-// Copyright (C) 2011-2023 Internet Systems Consortium, Inc. ("ISC")
+// Copyright (C) 2011-2024 Internet Systems Consortium, Inc. ("ISC")
//
// This Source Code Form is subject to the terms of the Mozilla Public
// License, v. 2.0. If a copy of the MPL was not distributed with this
/// @brief Sets hops field.
///
/// @param hops value to be set
- void setHops(uint8_t hops) { hops_ = hops; };
+ void setHops(uint8_t hops) { hops_ = hops; }
/// @brief Returns hops field.
///
/// @return hops field
- uint8_t getHops() const { return (hops_); };
+ uint8_t getHops() const { return (hops_); }
// Note: There's no need to manipulate OP field directly,
// thus no setOp() method. See op_ comment.
/// @brief Returns op field.
///
/// @return op field
- uint8_t getOp() const { return (op_); };
+ uint8_t getOp() const { return (op_); }
/// @brief Sets secs field.
///
/// @param secs value to be set
- void setSecs(uint16_t secs) { secs_ = secs; };
+ void setSecs(uint16_t secs) { secs_ = secs; }
/// @brief Returns secs field.
///
/// @return secs field
- uint16_t getSecs() const { return (secs_); };
+ uint16_t getSecs() const { return (secs_); }
/// @brief Sets flags field.
///
/// @param flags value to be set
- void setFlags(uint16_t flags) { flags_ = flags; };
+ void setFlags(uint16_t flags) { flags_ = flags; }
/// @brief Returns flags field.
///
/// @return flags field
- uint16_t getFlags() const { return (flags_); };
+ uint16_t getFlags() const { return (flags_); }
/// @brief Returns ciaddr field.
///
/// @return ciaddr field
const isc::asiolink::IOAddress&
- getCiaddr() const { return (ciaddr_); };
+ getCiaddr() const { return (ciaddr_); }
/// @brief Sets ciaddr field.
///
/// @param ciaddr value to be set
void
- setCiaddr(const isc::asiolink::IOAddress& ciaddr) { ciaddr_ = ciaddr; };
+ setCiaddr(const isc::asiolink::IOAddress& ciaddr) { ciaddr_ = ciaddr; }
/// @brief Returns siaddr field.
///
/// @return siaddr field
const isc::asiolink::IOAddress&
- getSiaddr() const { return (siaddr_); };
+ getSiaddr() const { return (siaddr_); }
/// @brief Sets siaddr field.
///
/// @param siaddr value to be set
void
- setSiaddr(const isc::asiolink::IOAddress& siaddr) { siaddr_ = siaddr; };
+ setSiaddr(const isc::asiolink::IOAddress& siaddr) { siaddr_ = siaddr; }
/// @brief Returns yiaddr field.
///
/// @return yiaddr field
const isc::asiolink::IOAddress&
- getYiaddr() const { return (yiaddr_); };
+ getYiaddr() const { return (yiaddr_); }
/// @brief Sets yiaddr field.
///
/// @param yiaddr value to be set
void
- setYiaddr(const isc::asiolink::IOAddress& yiaddr) { yiaddr_ = yiaddr; };
+ setYiaddr(const isc::asiolink::IOAddress& yiaddr) { yiaddr_ = yiaddr; }
/// @brief Returns giaddr field.
///
/// @return giaddr field
const isc::asiolink::IOAddress&
- getGiaddr() const { return (giaddr_); };
+ getGiaddr() const { return (giaddr_); }
/// @brief Sets giaddr field.
///
/// @param giaddr value to be set
void
- setGiaddr(const isc::asiolink::IOAddress& giaddr) { giaddr_ = giaddr; };
+ setGiaddr(const isc::asiolink::IOAddress& giaddr) { giaddr_ = giaddr; }
/// @brief Returns DHCP message type (e.g. 1 = DHCPDISCOVER).
///
///
/// @return sname field
const OptionBuffer
- getSname() const { return (std::vector<uint8_t>(sname_, &sname_[MAX_SNAME_LEN])); };
+ getSname() const { return (std::vector<uint8_t>(sname_, &sname_[MAX_SNAME_LEN])); }
/// @brief Sets sname field.
///
///
/// @return pointer to file field
const OptionBuffer
- getFile() const { return (std::vector<uint8_t>(file_, &file_[MAX_FILE_LEN])); };
+ getFile() const { return (std::vector<uint8_t>(file_, &file_[MAX_FILE_LEN])); }
/// Sets file field
///
-// Copyright (C) 2011-2022 Internet Systems Consortium, Inc. ("ISC")
+// Copyright (C) 2011-2024 Internet Systems Consortium, Inc. ("ISC")
//
// This Source Code Form is subject to the terms of the Mozilla Public
// License, v. 2.0. If a copy of the MPL was not distributed with this
/// @brief Sets message type (e.g. 1 = SOLICIT).
///
/// @param type message type to be set
- virtual void setType(uint8_t type) { msg_type_=type; };
+ virtual void setType(uint8_t type) { msg_type_=type; }
/// @brief Retrieves the DUID from the Client Identifier option.
///
class InvalidPacketFilter : public Exception {
public:
InvalidPacketFilter(const char* file, size_t line, const char* what) :
- isc::Exception(file, line, what) { };
+ isc::Exception(file, line, what) { }
};
/// Forward declaration to the structure describing a socket.
-// Copyright (C) 2013-2021 Internet Systems Consortium, Inc. ("ISC")
+// Copyright (C) 2013-2024 Internet Systems Consortium, Inc. ("ISC")
//
// This Source Code Form is subject to the terms of the Mozilla Public
// License, v. 2.0. If a copy of the MPL was not distributed with this
class InvalidPacketHeader : public Exception {
public:
InvalidPacketHeader(const char* file, size_t line, const char* what) :
- isc::Exception(file, line, what) { };
+ isc::Exception(file, line, what) { }
};
/// Size of the Ethernet frame header.
-// Copyright (C) 2018 Internet Systems Consortium, Inc. ("ISC")
+// Copyright (C) 2018-2024 Internet Systems Consortium, Inc. ("ISC")
//
// This Source Code Form is subject to the terms of the Mozilla Public
// License, v. 2.0. If a copy of the MPL was not distributed with this
};
-}; // namespace isc::dhcp
-}; // namespace isc
+} // namespace dhcp
+} // namespace isc
#endif // DHCP_SOCKET_INFO_H
-// Copyright (C) 2012-2017 Internet Systems Consortium, Inc. ("ISC")
+// Copyright (C) 2012-2024 Internet Systems Consortium, Inc. ("ISC")
//
// This Source Code Form is subject to the terms of the Mozilla Public
// License, v. 2.0. If a copy of the MPL was not distributed with this
}
-}; // end of anonymous namespace
+} // end of anonymous namespace
};
-}; // end of isc::dhcp::test namespace
-}; // end of isc::dhcp namespace
-}; // end of isc namespace
+} // end of isc::dhcp::test namespace
+} // end of isc::dhcp namespace
+} // end of isc namespace
#endif // PKT_FILTER6_TEST_UTILS_H
};
-}; // end of isc::dhcp::test namespace
-}; // end of isc::dhcp namespace
-}; // end of isc namespace
+} // end of isc::dhcp::test namespace
+} // end of isc::dhcp namespace
+} // end of isc namespace
#endif // PKT_FILTER_TEST_UTILS_H
-// Copyright (C) 2014-2023 Internet Systems Consortium, Inc. ("ISC")
+// Copyright (C) 2014-2024 Internet Systems Consortium, Inc. ("ISC")
//
// This Source Code Form is subject to the terms of the Mozilla Public
// License, v. 2.0. If a copy of the MPL was not distributed with this
static void captureSetDefaultFields(const isc::dhcp::Pkt4Ptr& pkt);
};
-}; // end of namespace isc::dhcp::test
-}; // end of namespace isc::dhcp
-}; // end of namespace isc
+} // namespace test
+} // namespace dhcp
+} // namespace isc
#endif
return (packetFromCapture(hex_string));
}
-}; // end of isc::dhcp::test namespace
-}; // end of isc::dhcp namespace
-}; // end of isc namespace
+} // end of isc::dhcp::test namespace
+} // end of isc::dhcp namespace
+} // end of isc namespace
return (pkt);
}
-}; // end of isc::dhcp::test namespace
-}; // end of isc::dhcp namespace
-}; // end of isc namespace
+} // end of isc::dhcp::test namespace
+} // end of isc::dhcp namespace
+} // end of isc namespace
class NcrListenerError : public isc::Exception {
public:
NcrListenerError(const char* file, size_t line, const char* what) :
- isc::Exception(file, line, what) { };
+ isc::Exception(file, line, what) { }
};
/// @brief Exception thrown if an error occurs during IO source open.
class NcrListenerOpenError : public isc::Exception {
public:
NcrListenerOpenError(const char* file, size_t line, const char* what) :
- isc::Exception(file, line, what) { };
+ isc::Exception(file, line, what) { }
};
/// @brief Exception thrown if an error occurs initiating an IO receive.
class NcrListenerReceiveError : public isc::Exception {
public:
NcrListenerReceiveError(const char* file, size_t line, const char* what) :
- isc::Exception(file, line, what) { };
+ isc::Exception(file, line, what) { }
};
/// @brief Abstract interface for receiving NameChangeRequests.
/// @brief Destructor
virtual ~NameChangeListener() {
- };
+ }
/// @brief Prepares the IO for reception and initiates the first receive.
///
class NcrSenderError : public isc::Exception {
public:
NcrSenderError(const char* file, size_t line, const char* what) :
- isc::Exception(file, line, what) { };
+ isc::Exception(file, line, what) { }
};
/// @brief Exception thrown if an error occurs during IO source open.
class NcrSenderOpenError : public isc::Exception {
public:
NcrSenderOpenError(const char* file, size_t line, const char* what) :
- isc::Exception(file, line, what) { };
+ isc::Exception(file, line, what) { }
};
/// @brief Exception thrown if an error occurs initiating an IO send.
class NcrSenderQueueFull : public isc::Exception {
public:
NcrSenderQueueFull(const char* file, size_t line, const char* what) :
- isc::Exception(file, line, what) { };
+ isc::Exception(file, line, what) { }
};
/// @brief Exception thrown if an error occurs initiating an IO send.
class NcrSenderSendError : public isc::Exception {
public:
NcrSenderSendError(const char* file, size_t line, const char* what) :
- isc::Exception(file, line, what) { };
+ isc::Exception(file, line, what) { }
};
/// @brief Abstract interface for sending NameChangeRequests.
}
-}; // end of isc::dhcp namespace
-}; // end of isc namespace
+} // end of isc::dhcp namespace
+} // end of isc namespace
class NcrMessageError : public isc::Exception {
public:
NcrMessageError(const char* file, size_t line, const char* what) :
- isc::Exception(file, line, what) { };
+ isc::Exception(file, line, what) { }
};
/// @brief Exception thrown when there is an error occurred during computation
class DhcidRdataComputeError : public isc::Exception {
public:
DhcidRdataComputeError(const char* file, size_t line, const char* what) :
- isc::Exception(file, line, what) { };
+ isc::Exception(file, line, what) { }
};
/// @brief Defines the types of DNS updates that can be requested.
NameChangeStatus status_;
};
-
-}; // end of isc::dhcp_ddns namespace
-}; // end of isc namespace
+} // namespace dhcp_ddns
+} // namespace isc
#endif
class NcrUDPError : public isc::Exception {
public:
NcrUDPError(const char* file, size_t line, const char* what) :
- isc::Exception(file, line, what) { };
+ isc::Exception(file, line, what) { }
};
class UDPCallback;
-// Copyright (C) 2014-2015 Internet Systems Consortium, Inc. ("ISC")
+// Copyright (C) 2014-2024 Internet Systems Consortium, Inc. ("ISC")
//
// This Source Code Form is subject to the terms of the Mozilla Public
// License, v. 2.0. If a copy of the MPL was not distributed with this
return (select(maxfd + 1, &read_fds, NULL, NULL, &select_timeout));
}
-}; // namespace isc::d2
-}; // namespace isc
+} // namespace isc::d2
+} // namespace isc
-// Copyright (C) 2014-2023 Internet Systems Consortium, Inc. ("ISC")
+// Copyright (C) 2014-2024 Internet Systems Consortium, Inc. ("ISC")
//
// This Source Code Form is subject to the terms of the Mozilla Public
// License, v. 2.0. If a copy of the MPL was not distributed with this
/// read, > 0 if it is ready to read.
int selectCheck(int fd_to_check);
-}; // namespace isc::dhcp_ddns;
-}; // namespace isc;
+} // namespace isc::dhcp_ddns;
+} // namespace isc;
#endif
-// Copyright (C) 2012-2023 Internet Systems Consortium, Inc. ("ISC")
+// Copyright (C) 2012-2024 Internet Systems Consortium, Inc. ("ISC")
//
// This Source Code Form is subject to the terms of the Mozilla Public
// License, v. 2.0. If a copy of the MPL was not distributed with this
/// in the client's message.
void createIAContext() {
ias_.push_back(IAContext());
- };
+ }
/// @brief Returns host from the most preferred subnet.
///
-// Copyright (C) 2022-2023 Internet Systems Consortium, Inc. ("ISC")
+// Copyright (C) 2022-2024 Internet Systems Consortium, Inc. ("ISC")
//
// This Source Code Form is subject to the terms of the Mozilla Public
// License, v. 2.0. If a copy of the MPL was not distributed with this
///
/// It is called by the @c initAfterConfigure and can be overridden in the
/// derived allocators.
- virtual void initAfterConfigureInternal() {};
+ virtual void initAfterConfigureInternal() {}
private:
-// Copyright (C) 2014-2023 Internet Systems Consortium, Inc. ("ISC")
+// Copyright (C) 2014-2024 Internet Systems Consortium, Inc. ("ISC")
//
// This Source Code Form is subject to the terms of the Mozilla Public
// License, v. 2.0. If a copy of the MPL was not distributed with this
class DuplicateHost : public Exception {
public:
DuplicateHost(const char* file, size_t line, const char* what) :
- isc::Exception(file, line, what) { };
+ isc::Exception(file, line, what) { }
};
/// @brief Exception thrown when a @c Host object is expected, but none are found.
class HostNotFound : public Exception {
public:
HostNotFound(const char* file, size_t line, const char* what) :
- isc::Exception(file, line, what) { };
+ isc::Exception(file, line, what) { }
};
/// @brief Exception thrown when an address is already reserved by a @c Host
class ReservedAddress : public Exception {
public:
ReservedAddress(const char* file, size_t line, const char* what) :
- isc::Exception(file, line, what) { };
+ isc::Exception(file, line, what) { }
};
/// @brief Exception thrown when invalid IP address has been specified for
class BadHostAddress : public isc::BadValue {
public:
BadHostAddress(const char* file, size_t line, const char* what) :
- isc::BadValue(file, line, what) { };
+ isc::BadValue(file, line, what) { }
};
/// @brief Wraps value holding size of the page with host reservations.
///
/// Commits all pending database operations. On databases that don't
/// support transactions, this is a no-op.
- virtual void commit() {};
+ virtual void commit() {}
/// @brief Rollback Transactions
///
/// Rolls back all pending database operations. On databases that don't
/// support transactions, this is a no-op.
- virtual void rollback() {};
+ virtual void rollback() {}
/// @brief Controls whether IP reservations are unique or non-unique.
///
// module is called.
CbCtlHooks hooks_;
-}; // anonymous namespace
+} // anonymous namespace
namespace isc {
namespace dhcp {
// module is called.
CbCtlHooks hooks_;
-}; // anonymous namespace
+} // anonymous namespace
namespace isc {
namespace dhcp {
-// Copyright (C) 2014-2022 Internet Systems Consortium, Inc. ("ISC")
+// Copyright (C) 2014-2024 Internet Systems Consortium, Inc. ("ISC")
//
// This Source Code Form is subject to the terms of the Mozilla Public
// License, v. 2.0. If a copy of the MPL was not distributed with this
class DuplicateIfaceName : public Exception {
public:
DuplicateIfaceName(const char* file, size_t line, const char* what) :
- isc::Exception(file, line, what) { };
+ isc::Exception(file, line, what) { }
};
/// @brief Exception thrown when specified interface name is invalid.
class InvalidIfaceName : public Exception {
public:
InvalidIfaceName(const char* file, size_t line, const char* what) :
- isc::Exception(file, line, what) { };
+ isc::Exception(file, line, what) { }
};
/// @brief Exception thrown when specified interface doesn't exist in a system.
class NoSuchIface : public Exception {
public:
NoSuchIface(const char* file, size_t line, const char* what) :
- isc::Exception(file, line, what) { };
+ isc::Exception(file, line, what) { }
};
/// @brief Exception thrown when duplicated address specified.
class DuplicateAddress : public Exception {
public:
DuplicateAddress(const char* file, size_t line, const char* what) :
- isc::Exception(file, line, what) { };
+ isc::Exception(file, line, what) { }
};
/// @brief Exception thrown when specified unicast address is not assigned
class NoSuchAddress : public Exception {
public:
NoSuchAddress(const char* file, size_t line, const char* what) :
- isc::Exception(file, line, what) { };
+ isc::Exception(file, line, what) { }
};
/// @brief Exception thrown when invalid socket type has been specified
class InvalidSocketType : public Exception {
public:
InvalidSocketType(const char* file, size_t line, const char* what) :
- isc::Exception(file, line, what) { };
+ isc::Exception(file, line, what) { }
};
/// @brief Represents selection of interfaces for DHCP server.
-// Copyright (C) 2014-2015,2017 Internet Systems Consortium, Inc. ("ISC")
+// Copyright (C) 2014-2024 Internet Systems Consortium, Inc. ("ISC")
//
// This Source Code Form is subject to the terms of the Mozilla Public
// License, v. 2.0. If a copy of the MPL was not distributed with this
};
-};
-};
+} // namespace dhcp
+} // namespace isc
#endif
cancelled_(cancel), formatted_value_(formatted_value),
space_name_() {
setContext(user_context);
- };
+ }
/// @brief Constructor.
///
/// @param cancel if true, option is never sent.
OptionDescriptor(bool persist, bool cancel)
: data::StampedElement(), option_(OptionPtr()), persistent_(persist),
- cancelled_(cancel), formatted_value_(), space_name_() {};
+ cancelled_(cancel), formatted_value_(), space_name_() {}
/// @brief Copy constructor.
///
space_name_(desc.space_name_),
client_classes_(desc.client_classes_) {
setContext(desc.getContext());
- };
+ }
/// @brief Assignment operator.
///
class DuplicateListeningIface : public Exception {
public:
DuplicateListeningIface(const char* file, size_t line, const char* what) :
- isc::Exception(file, line, what) { };
+ isc::Exception(file, line, what) { }
};
/// @brief Configuration Manager
return (os);
}
-}; // namespace dhcp
-}; // namespace isc
+} // namespace dhcp
+} // namespace isc
-// Copyright (C) 2015-2017 Internet Systems Consortium, Inc. ("ISC")
+// Copyright (C) 2015-2024 Internet Systems Consortium, Inc. ("ISC")
//
// This Source Code Form is subject to the terms of the Mozilla Public
// License, v. 2.0. If a copy of the MPL was not distributed with this
class Dhcp4o6IpcError : public Exception {
public:
Dhcp4o6IpcError(const char* file, size_t line, const char* what) :
- isc::Exception(file, line, what) { };
+ isc::Exception(file, line, what) { }
};
/// @brief This class implements the communication between the DHCPv4
-// Copyright (C) 2014-2023 Internet Systems Consortium, Inc. ("ISC")
+// Copyright (C) 2014-2024 Internet Systems Consortium, Inc. ("ISC")
//
// This Source Code Form is subject to the terms of the Mozilla Public
// License, v. 2.0. If a copy of the MPL was not distributed with this
typedef std::pair<HostContainer6Index4::iterator,
HostContainer6Index4::iterator> HostContainer6Index4Range;
-}; // end of isc::dhcp namespace
-}; // end of isc namespace
+} // namespace dhcp
+} // namespace isc
#endif // HOST_CONTAINER_H
-// Copyright (C) 2013-2015 Internet Systems Consortium, Inc. ("ISC")
+// Copyright (C) 2013-2024 Internet Systems Consortium, Inc. ("ISC")
//
// This Source Code Form is subject to the terms of the Mozilla Public
// License, v. 2.0. If a copy of the MPL was not distributed with this
/// @brief Constructor.
KeyFromKeyExtractor()
- : key1_(KeyExtractor1()), key2_(KeyExtractor2()) { };
+ : key1_(KeyExtractor1()), key2_(KeyExtractor2()) { }
/// @brief Extract key value from the object hierarchy.
///
LeaseStatsQuery(const SubnetID& first_subnet_id, const SubnetID& last_subnet_id);
/// @brief virtual destructor
- virtual ~LeaseStatsQuery() {};
+ virtual ~LeaseStatsQuery() {}
/// @brief Executes the query
///
/// This method should conduct whatever steps are required to
/// calculate the lease statistical data by examining the
/// lease data and making that results available row by row.
- virtual void start() {};
+ virtual void start() {}
/// @brief Fetches the next row of data
///
/// @brief Returns the value of first subnet ID specified (or zero)
SubnetID getFirstSubnetID() const {
return (first_subnet_id_);
- };
+ }
/// @brief Returns the value of last subnet ID specified (or zero)
SubnetID getLastSubnetID() const {
return (last_subnet_id_);
- };
+ }
/// @brief Returns the selection criteria mode
/// The value returned is based upon the constructor variant used
/// and it indicates which query variant will be executed.
SelectMode getSelectMode() const {
return (select_mode_);
- };
+ }
protected:
/// @brief First (or only) subnet_id in the selection criteria
/// @brief Virtual destructor.
///
/// Does nothing at the moment.
- virtual ~Network() { };
+ virtual ~Network() { }
/// @brief Sets the optional callback function used to fetch globally
/// configured parameters.
getIface(const Inheritance& inheritance = Inheritance::ALL) const {
return (getProperty<Network>(&Network::getIface, iface_name_,
inheritance));
- };
+ }
/// @brief Sets information about relay
///
/// option support is enabled (if true), or disabled (if false).
void setRapidCommit(const util::Optional<bool>& rapid_commit) {
rapid_commit_ = rapid_commit;
- };
+ }
/// @brief Returns allocator type for prefix delegation.
///
class FuzzInitFail : public Exception {
public:
FuzzInitFail(const char* file, size_t line, const char* what) :
- isc::Exception(file, line, what) { };
+ isc::Exception(file, line, what) { }
}; // class FuzzInitFail
} // namespace isc
class DdnsParams {
public:
/// @brief Default constructor
- DdnsParams() : subnet_(), d2_client_enabled_(false) {};
+ DdnsParams() : subnet_(), d2_client_enabled_(false) {}
/// @brief Constructor for DHPCv4 subnets
///
///
/// A virtual destructor is needed because other classes
/// derive from this class.
- virtual ~Subnet() { };
+ virtual ~Subnet() { }
/// @brief Checks if used pool type is valid.
///
-// Copyright (C) 2014-2022 Internet Systems Consortium, Inc. ("ISC")
+// Copyright (C) 2014-2024 Internet Systems Consortium, Inc. ("ISC")
//
// This Source Code Form is subject to the terms of the Mozilla Public
// License, v. 2.0. If a copy of the MPL was not distributed with this
class DuplicateSubnetID : public Exception {
public:
DuplicateSubnetID(const char* file, size_t line, const char* what) :
- isc::Exception(file, line, what) { };
+ isc::Exception(file, line, what) { }
};
/// @brief Ordered list aka set of subnetIDs.
EXPECT_EQ("false", queue_control->get("enable-queue")->str());
}
-}; // anonymous namespace
+} // anonymous namespace
namespace {
-// @brief Register memFactory
+// @brief Register memFactory
bool registerFactory() {
static auto db_version = []() -> std::string {
return (std::string("version 1"));
EXPECT_FALSE(HostDataSourceFactory::del(sources_, "mem2"));
}
-}; // end of anonymous namespace
+} // end of anonymous namespace
-// Copyright (C) 2015-2016 Internet Systems Consortium, Inc. ("ISC")
+// Copyright (C) 2015-2024 Internet Systems Consortium, Inc. ("ISC")
//
// This Source Code Form is subject to the terms of the Mozilla Public
// License, v. 2.0. If a copy of the MPL was not distributed with this
Pkt6Ptr pkt_received_;
};
-}; // end of isc::dhcp::test namespace
-}; // end of isc::dhcp namespace
-}; // end of isc namespace
+} // end of isc::dhcp::test namespace
+} // end of isc::dhcp namespace
+} // end of isc namespace
#endif // DHCP4O6_TEST_IPC_H
-// Copyright (C) 2012-2015 Internet Systems Consortium, Inc. ("ISC")
+// Copyright (C) 2012-2024 Internet Systems Consortium, Inc. ("ISC")
//
// This Source Code Form is subject to the terms of the Mozilla Public
// License, v. 2.0. If a copy of the MPL was not distributed with this
isc::Exception(file, line, what) {}
};
-}; // namespace isc::dhcp
-}; // namespace isc
+} // namespace isc::dhcp
+} // namespace isc
#endif // DHCPSRV_UTILS_H
-// Copyright (C) 2018 Internet Systems Consortium, Inc. ("ISC")
+// Copyright (C) 2018-2024 Internet Systems Consortium, Inc. ("ISC")
//
// This Source Code Form is subject to the terms of the Mozilla Public
// License, v. 2.0. If a copy of the MPL was not distributed with this
/// @return true if a member of expr depends on name, false if not.
bool dependOnClass(const ExpressionPtr& expr, const std::string& name);
-}; // end of isc::dhcp namespace
-}; // end of isc namespace
+} // end of isc::dhcp namespace
+} // end of isc namespace
#endif
class EvalParseError : public isc::Exception {
public:
EvalParseError(const char* file, size_t line, const char* what) :
- isc::Exception(file, line, what) { };
+ isc::Exception(file, line, what) { }
};
-// Copyright (C) 2015 Internet Systems Consortium, Inc. ("ISC")
+// Copyright (C) 2015-2024 Internet Systems Consortium, Inc. ("ISC")
//
// This Source Code Form is subject to the terms of the Mozilla Public
// License, v. 2.0. If a copy of the MPL was not distributed with this
class EvalContext;
-}; // end of isc::eval namespace
-}; // end of isc namespace
+} // end of isc::eval namespace
+} // end of isc namespace
#endif
/// @throw EvalBadLabel if there is a forward branch to a not found target.
std::string evaluateString(const Expression& expr, Pkt& pkt);
-}; // end of isc::dhcp namespace
-}; // end of isc namespace
+} // end of isc::dhcp namespace
+} // end of isc namespace
#endif
class EvalBadStack : public Exception {
public:
EvalBadStack(const char* file, size_t line, const char* what) :
- isc::Exception(file, line, what) { };
+ isc::Exception(file, line, what) { }
};
/// @brief EvalTypeError is thrown when a value on the stack has a content
class EvalTypeError : public Exception {
public:
EvalTypeError(const char* file, size_t line, const char* what) :
- isc::Exception(file, line, what) { };
+ isc::Exception(file, line, what) { }
};
/// @brief EvalBadLabel is thrown when a label can't be found.
class EvalBadLabel : public Exception {
public:
EvalBadLabel(const char* file, size_t line, const char* what) :
- isc::Exception(file, line, what) { };
+ isc::Exception(file, line, what) { }
};
/// @brief Base class for all tokens
-// Copyright (C) 2017-2023 Internet Systems Consortium, Inc. ("ISC")
+// Copyright (C) 2017-2024 Internet Systems Consortium, Inc. ("ISC")
//
// This Source Code Form is subject to the terms of the Mozilla Public
// License, v. 2.0. If a copy of the MPL was not distributed with this
class InvalidHooksLibraries : public Exception {
public:
InvalidHooksLibraries(const char* file, size_t line, const char* what) :
- isc::Exception(file, line, what) { };
+ isc::Exception(file, line, what) { }
};
/// @brief Wrapper class that holds hooks libraries configuration
-// Copyright (C) 2017 Internet Systems Consortium, Inc. ("ISC")
+// Copyright (C) 2017-2024 Internet Systems Consortium, Inc. ("ISC")
//
// This Source Code Form is subject to the terms of the Mozilla Public
// License, v. 2.0. If a copy of the MPL was not distributed with this
void parse(HooksConfig& libraries, isc::data::ConstElementPtr value);
};
-}; // namespace isc::hooks
-}; // namespace isc
+} // namespace isc::hooks
+} // namespace isc
#endif
-// Copyright (C) 2016 Internet Systems Consortium, Inc. ("ISC")
+// Copyright (C) 2016-2024 Internet Systems Consortium, Inc. ("ISC")
//
// This Source Code Form is subject to the terms of the Mozilla Public
// License, v. 2.0. If a copy of the MPL was not distributed with this
/// @brief Extracts library names from full library information structure
std::vector<std::string> extractNames(const HookLibsCollection& libinfo);
-};
-};
+} // namespace hooks
+} // namespace isc
#endif
-// Copyright (C) 2013-2020 Internet Systems Consortium, Inc. ("ISC")
+// Copyright (C) 2013-2024 Internet Systems Consortium, Inc. ("ISC")
//
// This Source Code Form is subject to the terms of the Mozilla Public
// License, v. 2.0. If a copy of the MPL was not distributed with this
/// Typedef for a callout pointer. (Callouts must have "C" linkage.)
extern "C" {
typedef int (*CalloutPtr)(CalloutHandle&);
-};
+}
/// @brief Library handle
///
class HttpClientError : public Exception {
public:
HttpClientError(const char* file, size_t line, const char* what) :
- isc::Exception(file, line, what) { };
+ isc::Exception(file, line, what) { }
};
class HttpClientImpl;
class HttpConnectionError : public Exception {
public:
HttpConnectionError(const char* file, size_t line, const char* what) :
- isc::Exception(file, line, what) { };
+ isc::Exception(file, line, what) { }
};
/// @brief Forward declaration to the @ref HttpConnectionPool.
-// Copyright (C) 2016-2019 Internet Systems Consortium, Inc. ("ISC")
+// Copyright (C) 2016-2024 Internet Systems Consortium, Inc. ("ISC")
//
// This Source Code Form is subject to the terms of the Mozilla Public
// License, v. 2.0. If a copy of the MPL was not distributed with this
class HttpTimeConversionError : public Exception {
public:
HttpTimeConversionError(const char* file, size_t line, const char* what) :
- isc::Exception(file, line, what) { };
+ isc::Exception(file, line, what) { }
};
/// @brief This class parses and generates time values used in HTTP.
-// Copyright (C) 2017-2018 Internet Systems Consortium, Inc. ("ISC")
+// Copyright (C) 2017-2024 Internet Systems Consortium, Inc. ("ISC")
//
// This Source Code Form is subject to the terms of the Mozilla Public
// License, v. 2.0. If a copy of the MPL was not distributed with this
class HttpMessageError : public Exception {
public:
HttpMessageError(const char* file, size_t line, const char* what) :
- isc::Exception(file, line, what) { };
+ isc::Exception(file, line, what) { }
};
/// @brief Exception thrown when attempt is made to retrieve a
public:
HttpMessageNonExistingHeader(const char* file, size_t line,
const char* what) :
- HttpMessageError(file, line, what) { };
+ HttpMessageError(file, line, what) { }
};
-// Copyright (C) 2016-2017 Internet Systems Consortium, Inc. ("ISC")
+// Copyright (C) 2016-2024 Internet Systems Consortium, Inc. ("ISC")
//
// This Source Code Form is subject to the terms of the Mozilla Public
// License, v. 2.0. If a copy of the MPL was not distributed with this
static const HttpVersion& HTTP_10() {
static HttpVersion ver(1, 0);
return (ver);
- };
+ }
/// @brief HTTP version 1.1.
static const HttpVersion& HTTP_11() {
class HttpListenerError : public Exception {
public:
HttpListenerError(const char* file, size_t line, const char* what) :
- isc::Exception(file, line, what) { };
+ isc::Exception(file, line, what) { }
};
/// @brief HttpListener implementation.
-// Copyright (C) 2016-2020 Internet Systems Consortium, Inc. ("ISC")
+// Copyright (C) 2016-2024 Internet Systems Consortium, Inc. ("ISC")
//
// This Source Code Form is subject to the terms of the Mozilla Public
// License, v. 2.0. If a copy of the MPL was not distributed with this
class HttpRequestJsonError : public HttpRequestError {
public:
HttpRequestJsonError(const char* file, size_t line, const char* what) :
- HttpRequestError(file, line, what) { };
+ HttpRequestError(file, line, what) { }
};
class PostHttpRequestJson;
-// Copyright (C) 2016-2022 Internet Systems Consortium, Inc. ("ISC")
+// Copyright (C) 2016-2024 Internet Systems Consortium, Inc. ("ISC")
//
// This Source Code Form is subject to the terms of the Mozilla Public
// License, v. 2.0. If a copy of the MPL was not distributed with this
class HttpRequestError : public HttpMessageError {
public:
HttpRequestError(const char* file, size_t line, const char* what) :
- HttpMessageError(file, line, what) { };
+ HttpMessageError(file, line, what) { }
};
class HttpRequest;
-// Copyright (C) 2016-2022 Internet Systems Consortium, Inc. ("ISC")
+// Copyright (C) 2016-2024 Internet Systems Consortium, Inc. ("ISC")
//
// This Source Code Form is subject to the terms of the Mozilla Public
// License, v. 2.0. If a copy of the MPL was not distributed with this
class HttpResponseError : public HttpMessageError {
public:
HttpResponseError(const char* file, size_t line, const char* what) :
- HttpMessageError(file, line, what) { };
+ HttpMessageError(file, line, what) { }
};
/// @brief HTTP status codes (cf RFC 2068)
///
/// @param status_code Status code for which the body should be
/// generated.
- void setGenericBody(const HttpStatusCode& /*status_code*/) { };
+ void setGenericBody(const HttpStatusCode& /*status_code*/) { }
protected:
-// Copyright (C) 2016-2020 Internet Systems Consortium, Inc. ("ISC")
+// Copyright (C) 2016-2024 Internet Systems Consortium, Inc. ("ISC")
//
// This Source Code Form is subject to the terms of the Mozilla Public
// License, v. 2.0. If a copy of the MPL was not distributed with this
/// @brief Destructor.
///
/// Classes with virtual functions need virtual destructors.
- virtual ~HttpResponseCreator() { };
+ virtual ~HttpResponseCreator() { }
/// @brief Create HTTP response from HTTP request received.
///
-// Copyright (C) 2016-2018 Internet Systems Consortium, Inc. ("ISC")
+// Copyright (C) 2016-2024 Internet Systems Consortium, Inc. ("ISC")
//
// This Source Code Form is subject to the terms of the Mozilla Public
// License, v. 2.0. If a copy of the MPL was not distributed with this
class HttpResponseJsonError : public HttpResponseError {
public:
HttpResponseJsonError(const char* file, size_t line, const char* what) :
- HttpResponseError(file, line, what) { };
+ HttpResponseError(file, line, what) { }
};
class HttpResponseJson;
-// Copyright (C) 2018-2019 Internet Systems Consortium, Inc. ("ISC")
+// Copyright (C) 2018-2024 Internet Systems Consortium, Inc. ("ISC")
//
// This Source Code Form is subject to the terms of the Mozilla Public
// License, v. 2.0. If a copy of the MPL was not distributed with this
/// @brief Non-const pointer to the @c ConfigBase.
typedef boost::shared_ptr<ConfigBase> ConfigPtr;
-};
-};
+} // namespace process
+} // namespace isc
#endif /* CONFIG_BASE_H */
-// Copyright (C) 2018-2022 Internet Systems Consortium, Inc. ("ISC")
+// Copyright (C) 2018-2024 Internet Systems Consortium, Inc. ("ISC")
//
// This Source Code Form is subject to the terms of the Mozilla Public
// License, v. 2.0. If a copy of the MPL was not distributed with this
class ConfigDbInfo : public isc::data::CfgToElement {
public:
/// @brief Constructor
- ConfigDbInfo() {};
+ ConfigDbInfo() {}
/// @brief Set the access string.
///
/// @brief Constructor.
ConfigControlInfo()
- : config_fetch_wait_time_(30, true) {};
+ : config_fetch_wait_time_(30, true) {}
/// @brief Copy Constructor.
ConfigControlInfo(const ConfigControlInfo& other);
-// Copyright (C) 2013-2021 Internet Systems Consortium, Inc. ("ISC")
+// Copyright (C) 2013-2024 Internet Systems Consortium, Inc. ("ISC")
//
// This Source Code Form is subject to the terms of the Mozilla Public
// License, v. 2.0. If a copy of the MPL was not distributed with this
class DCfgMgrBaseError : public isc::Exception {
public:
DCfgMgrBaseError(const char* file, size_t line, const char* what) :
- isc::Exception(file, line, what) { };
+ isc::Exception(file, line, what) { }
};
/// @brief Configuration Manager
class InvalidUsage : public isc::Exception {
public:
InvalidUsage(const char* file, size_t line, const char* what) :
- isc::Exception(file, line, what) { };
+ isc::Exception(file, line, what) { }
};
/// @brief Exception used to convey version info upwards.
class VersionMessage : public isc::Exception {
public:
VersionMessage(const char* file, size_t line, const char* what) :
- isc::Exception(file, line, what) { };
+ isc::Exception(file, line, what) { }
};
/// @brief Exception thrown when the controller launch fails.
class LaunchError: public isc::Exception {
public:
LaunchError (const char* file, size_t line, const char* what) :
- isc::Exception(file, line, what) { };
+ isc::Exception(file, line, what) { }
};
/// @brief Exception thrown when the application process fails.
class ProcessInitError: public isc::Exception {
public:
ProcessInitError (const char* file, size_t line, const char* what) :
- isc::Exception(file, line, what) { };
+ isc::Exception(file, line, what) { }
};
/// @brief Exception thrown when the application process encounters an
class ProcessRunError: public isc::Exception {
public:
ProcessRunError (const char* file, size_t line, const char* what) :
- isc::Exception(file, line, what) { };
+ isc::Exception(file, line, what) { }
};
/// @brief Exception thrown when the controller encounters an operational error.
class DControllerBaseError : public isc::Exception {
public:
DControllerBaseError (const char* file, size_t line, const char* what) :
- isc::Exception(file, line, what) { };
+ isc::Exception(file, line, what) { }
};
/// @brief Defines a shared pointer to DControllerBase.
class DProcessBaseError : public isc::Exception {
public:
DProcessBaseError(const char* file, size_t line, const char* what) :
- isc::Exception(file, line, what) { };
+ isc::Exception(file, line, what) { }
};
/// @brief String value for the version-get command.
if (!cfg_mgr_) {
isc_throw (DProcessBaseError, "CfgMgr cannot be null");
}
- };
+ }
/// @brief May be used after instantiation to perform initialization unique
/// to application. It must be invoked prior to invoking run. This would
-// Copyright (C) 2014-2021 Internet Systems Consortium, Inc. ("ISC")
+// Copyright (C) 2014-2024 Internet Systems Consortium, Inc. ("ISC")
//
// This Source Code Form is subject to the terms of the Mozilla Public
// License, v. 2.0. If a copy of the MPL was not distributed with this
class DaemonPIDExists : public Exception {
public:
DaemonPIDExists(const char* file, size_t line, const char* what) :
- isc::Exception(file, line, what) { };
+ isc::Exception(file, line, what) { }
};
/// @brief Base class for all services
EXPECT_TRUE(elapsed_time.total_milliseconds() < 300);
}
-}; // end of isc::process namespace
-}; // end of isc namespace
+} // end of isc::process namespace
+} // end of isc namespace
class TcpConnectionError : public Exception {
public:
TcpConnectionError(const char* file, size_t line, const char* what) :
- isc::Exception(file, line, what) { };
+ isc::Exception(file, line, what) { }
};
/// @brief Forward declaration to the @ref TcpConnectionPool.
class TcpListenerError : public Exception {
public:
TcpListenerError(const char* file, size_t line, const char* what) :
- isc::Exception(file, line, what) { };
+ isc::Exception(file, line, what) { }
};
/// @brief Implements a class that listens for, accepts, and manages
-// Copyright (C) 2015-2017 Internet Systems Consortium, Inc. ("ISC")
+// Copyright (C) 2015-2024 Internet Systems Consortium, Inc. ("ISC")
//
// This Source Code Form is subject to the terms of the Mozilla Public
// License, v. 2.0. If a copy of the MPL was not distributed with this
return (outfile);
}
-}; // end of isc::test namespace
-}; // end of isc namespace
+} // end of isc::test namespace
+} // end of isc namespace
-// Copyright (C) 2015-2017 Internet Systems Consortium, Inc. ("ISC")
+// Copyright (C) 2015-2024 Internet Systems Consortium, Inc. ("ISC")
//
// This Source Code Form is subject to the terms of the Mozilla Public
// License, v. 2.0. If a copy of the MPL was not distributed with this
/// @throw BadValue if the input file cannot be opened
std::string decommentJSONfile(const std::string& input_file);
-}; // end of isc::test namespace
-}; // end of isc namespace
+} // end of isc::test namespace
+} // end of isc namespace
#endif // TEST_IO_UTILS_H
-// Copyright (C) 2019,2021 Internet Systems Consortium, Inc. ("ISC")
+// Copyright (C) 2019-2024 Internet Systems Consortium, Inc. ("ISC")
//
// This Source Code Form is subject to the terms of the Mozilla Public
// License, v. 2.0. If a copy of the MPL was not distributed with this
};
-}; // end of isc::test namespace
-}; // end of isc namespace
+} // end of isc::test namespace
+} // end of isc namespace
#endif // SANDBOX_H
-// Copyright (C) 2017-2020 Internet Systems Consortium, Inc. ("ISC")
+// Copyright (C) 2017-2024 Internet Systems Consortium, Inc. ("ISC")
//
// This Source Code Form is subject to the terms of the Mozilla Public
// License, v. 2.0. If a copy of the MPL was not distributed with this
/// extractComments was removed.
-}; // end of isc::test namespace
-}; // end of isc namespace
+} // end of isc::test namespace
+} // end of isc namespace
#endif // USER_CONTEXT_UTILS_H
-// Copyright (C) 2015-2019 Internet Systems Consortium, Inc. ("ISC")
+// Copyright (C) 2015-2024 Internet Systems Consortium, Inc. ("ISC")
//
// This Source Code Form is subject to the terms of the Mozilla Public
// License, v. 2.0. If a copy of the MPL was not distributed with this
std::string durationToText(boost::posix_time::time_duration dur,
size_t fsecs_precision = MAX_FSECS_PRECISION);
-}; // end of isc::util namespace
-}; // end of isc namespace
+} // end of isc::util namespace
+} // end of isc namespace
#endif
-// Copyright (C) 2014-2020 Internet Systems Consortium, Inc. ("ISC")
+// Copyright (C) 2014-2024 Internet Systems Consortium, Inc. ("ISC")
//
// This Source Code Form is subject to the terms of the Mozilla Public
// License, v. 2.0. If a copy of the MPL was not distributed with this
class CSVFileError : public Exception {
public:
CSVFileError(const char* file, size_t line, const char* what) :
- isc::Exception(file, line, what) { };
+ isc::Exception(file, line, what) { }
};
/// @brief Represents a single row of the CSV file.
-// Copyright (C) 2013-2016 Internet Systems Consortium, Inc. ("ISC")
+// Copyright (C) 2013-2024 Internet Systems Consortium, Inc. ("ISC")
//
// This Source Code Form is subject to the terms of the Mozilla Public
// License, v. 2.0. If a copy of the MPL was not distributed with this
class LabeledValueError : public isc::Exception {
public:
LabeledValueError(const char* file, size_t line, const char* what) :
- isc::Exception(file, line, what) { };
+ isc::Exception(file, line, what) { }
};
/// @brief Implements the concept of a constant value with a text label.
-// Copyright (C) 2015 Internet Systems Consortium, Inc. ("ISC")
+// Copyright (C) 2015-2024 Internet Systems Consortium, Inc. ("ISC")
//
// This Source Code Form is subject to the terms of the Mozilla Public
// License, v. 2.0. If a copy of the MPL was not distributed with this
class PIDFileError : public Exception {
public:
PIDFileError(const char* file, size_t line, const char* what) :
- isc::Exception(file, line, what) { };
+ isc::Exception(file, line, what) { }
};
/// @brief Exception thrown when an error occurs trying to read a PID
class PIDCantReadPID : public Exception {
public:
PIDCantReadPID(const char* file, size_t line, const char* what) :
- isc::Exception(file, line, what) { };
+ isc::Exception(file, line, what) { }
};
/// @brief Class to help with processing PID files
-// Copyright (C) 2013-2021 Internet Systems Consortium, Inc. ("ISC")
+// Copyright (C) 2013-2024 Internet Systems Consortium, Inc. ("ISC")
//
// This Source Code Form is subject to the terms of the Mozilla Public
// License, v. 2.0. If a copy of the MPL was not distributed with this
class StateModelError : public isc::Exception {
public:
StateModelError(const char* file, size_t line, const char* what) :
- isc::Exception(file, line, what) { };
+ isc::Exception(file, line, what) { }
};
/// @brief Define an Event.
-// Copyright (C) 2012-2021 Internet Systems Consortium, Inc. ("ISC")
+// Copyright (C) 2012-2024 Internet Systems Consortium, Inc. ("ISC")
//
// This Source Code Form is subject to the terms of the Mozilla Public
// License, v. 2.0. If a copy of the MPL was not distributed with this
}
-}; // end of anonymous namespace
+} // end of anonymous namespace
-// Copyright (C) 2015,2017 Internet Systems Consortium, Inc. ("ISC")
+// Copyright (C) 2015-2024 Internet Systems Consortium, Inc. ("ISC")
//
// This Source Code Form is subject to the terms of the Mozilla Public
// License, v. 2.0. If a copy of the MPL was not distributed with this
class VersionedCSVFileError : public Exception {
public:
VersionedCSVFileError(const char* file, size_t line, const char* what) :
- isc::Exception(file, line, what) { };
+ isc::Exception(file, line, what) { }
};
/// @brief Contains the metadata for a single column in a file.
-// Copyright (C) 2014-2015 Internet Systems Consortium, Inc. ("ISC")
+// Copyright (C) 2014-2024 Internet Systems Consortium, Inc. ("ISC")
//
// This Source Code Form is subject to the terms of the Mozilla Public
// License, v. 2.0. If a copy of the MPL was not distributed with this
class WatchSocketError : public isc::Exception {
public:
WatchSocketError(const char* file, size_t line, const char* what) :
- isc::Exception(file, line, what) { };
+ isc::Exception(file, line, what) { }
};
/// @brief Provides an IO "ready" semaphore for use with select() or poll()
-// Copyright (C) 2018-2020 Internet Systems Consortium, Inc. ("ISC")
+// Copyright (C) 2018-2024 Internet Systems Consortium, Inc. ("ISC")
//
// This Source Code Form is subject to the terms of the Mozilla Public
// License, v. 2.0. If a copy of the MPL was not distributed with this
};
/// @brief Constructor
- WatchedThread(){};
+ WatchedThread(){}
/// @brief Virtual destructor
virtual ~WatchedThread(){}