}; // ControlSocketBase
/// @brief Type definition for the pointer to the @c ControlSocketBase.
-typedef boost::shared_ptr<ControlSocketBase> ControlSocketBasePtr;
+using ControlSocketBasePtr = boost::shared_ptr<ControlSocketBase>;
/// @brief Factory template for control sockets.
///
}; // HttpControlSocket
/// @brief Type definition for the pointer to the @c HttpControlSocket.
-typedef boost::shared_ptr<HttpControlSocket> HttpControlSocketPtr;
+using HttpControlSocketPtr = boost::shared_ptr<HttpControlSocket>;
/// @brief Factory template specialization for http control sockets.
///
class NetconfAgent;
/// @brief Type definition for the pointer to the @c NetconfAgent.
-typedef boost::shared_ptr<NetconfAgent> NetconfAgentPtr;
+using NetconfAgentPtr = boost::shared_ptr<NetconfAgent>;
/// @brief Netconf agent.
///
class NetconfConfig;
/// @brief Pointer to a configuration context.
-typedef boost::shared_ptr<NetconfConfig> NetconfConfigPtr;
+using NetconfConfigPtr = boost::shared_ptr<NetconfConfig>;
/// @brief Netconf Configuration Context.
///
}; // NetconfCfgMgr
/// @brief Defines a shared pointer to NetconfCfgMgr.
-typedef boost::shared_ptr<NetconfCfgMgr> NetconfCfgMgrPtr;
+using NetconfCfgMgrPtr = boost::shared_ptr<NetconfCfgMgr>;
} // namespace netconf
} // namespace isc
}; // CfgControlSocket
/// @brief Defines a pointer for CfgControlSocket instances.
-typedef boost::shared_ptr<CfgControlSocket> CfgControlSocketPtr;
+using CfgControlSocketPtr = boost::shared_ptr<CfgControlSocket>;
/// @brief Represents a Managed CfgServer.
///
}; // CfgServer
/// @brief Defines a pointer for CfgServer instances.
-typedef boost::shared_ptr<CfgServer> CfgServerPtr;
+using CfgServerPtr = boost::shared_ptr<CfgServer>;
/// @brief Defines a map of CfgServers, keyed by the name.
-typedef std::map<std::string, CfgServerPtr> CfgServersMap;
+using CfgServersMap = std::map<std::string, CfgServerPtr>;
/// @brief Defines a iterator pairing of name and CfgServer
-typedef std::pair<std::string, CfgServerPtr> CfgServersMapPair;
+using CfgServersMapPair = std::pair<std::string, CfgServerPtr>;
/// @brief Defines a pointer to map of CfgServers.
-typedef boost::shared_ptr<CfgServersMap> CfgServersMapPtr;
+using CfgServersMapPtr = boost::shared_ptr<CfgServersMap>;
/// @brief Dumps the contents of a CfgServer as text to a output stream.
///
}; // NetconfController
// @Defines a shared pointer to NetconfController
-typedef boost::shared_ptr<NetconfController> NetconfControllerPtr;
+using NetconfControllerPtr = boost::shared_ptr<NetconfController>;
} // namespace netconf
} // namespace isc
}; // NetconfProcess
/// @brief Defines a shared pointer to NetconfProcess.
-typedef boost::shared_ptr<NetconfProcess> NetconfProcessPtr;
+using NetconfProcessPtr = boost::shared_ptr<NetconfProcess>;
} // namespace netconf
} // namespace isc
}; // StdoutControlSocket
/// @brief Type definition for the pointer to the @c StdoutControlSocket.
-typedef boost::shared_ptr<StdoutControlSocket> StdoutControlSocketPtr;
+using StdoutControlSocketPtr = boost::shared_ptr<StdoutControlSocket>;
/// @brief Factory template specialization for stdout control sockets.
///
namespace {
/// @brief Type definition for the pointer to Thread objects.
-typedef boost::shared_ptr<thread> ThreadPtr;
+using ThreadPtr = boost::shared_ptr<thread>;
//////////////////////////////// STDOUT ////////////////////////////////
}; // TestStdoutControlSocket
/// @brief Type definition for the pointer to the @c TestStdoutControlSocket.
-typedef boost::shared_ptr<TestStdoutControlSocket> TestStdoutControlSocketPtr;
+using TestStdoutControlSocketPtr = boost::shared_ptr<TestStdoutControlSocket>;
// Verifies that the createControlSocket template can create a stdout
// control socket.
const uint16_t SERVER_PORT = 18123;
/// @brief Test HTTP JSON response.
-typedef TestHttpResponseBase<HttpResponseJson> Response;
+using Response = TestHttpResponseBase<HttpResponseJson>;
/// @brief Pointer to test HTTP JSON response.
-typedef boost::shared_ptr<Response> ResponsePtr;
+using ResponsePtr = boost::shared_ptr<Response>;
/// @brief Generic test HTTP response.
-typedef TestHttpResponseBase<HttpResponse> GenericResponse;
+using GenericResponse = TestHttpResponseBase<HttpResponse>;
/// @brief Pointer to generic test HTTP response.
-typedef boost::shared_ptr<GenericResponse> GenericResponsePtr;
+using GenericResponsePtr = boost::shared_ptr<GenericResponse>;
/// @brief Implementation of the HttpResponseCreator.
///
const string TEST_SOCKET = "test-socket";
/// @brief Type definition for the pointer to Thread objects.
-typedef boost::shared_ptr<thread> ThreadPtr;
+using ThreadPtr = boost::shared_ptr<thread>;
/// @brief Test version of the NetconfAgent class.
class NakedNetconfAgent : public NetconfAgent {
}; // NakedNetconfAgent
/// @brief Type definition for the pointer to NakedNetconfAgent objects.
-typedef boost::shared_ptr<NakedNetconfAgent> NakedNetconfAgentPtr;
+using NakedNetconfAgentPtr = boost::shared_ptr<NakedNetconfAgent>;
/// @brief Clear YANG configuration.
///
// This test checks that all map entries are in the sample file.
TEST(ParserTest, mapEntries) {
// Type of keyword set.
- typedef set<string> KeywordSet;
+ using KeywordSet = set<string>;
// Get keywords from the syntax file (netconf_parser.yy).
ifstream syntax_file(SYNTAX_FILE);
}; // UnixControlSocket
/// @brief Type definition for the pointer to the @c UnixControlSocket.
-typedef boost::shared_ptr<UnixControlSocket> UnixControlSocketPtr;
+using UnixControlSocketPtr = boost::shared_ptr<UnixControlSocket>;
/// @brief Factory template specialization for unix control sockets.
///
///
/// The map is used to store space+name to code mappings so for
/// an option data without a code entry the code entry can be supplied.
-typedef std::map<std::string, uint16_t> OptionCodes;
+using OptionCodes = std::map<std::string, uint16_t>;
/// @brief JSON adaptor for option data or definition setting defaults.
///
namespace yang {
/// @brief Set of SubnetIDs.
-typedef std::set<isc::dhcp::SubnetID> SubnetIDSet;
+using SubnetIDSet = std::set<isc::dhcp::SubnetID>;
/// @brief JSON adaptor for subnets adding IDs and canonizes relays.
///
}; // YangRepr
/// @brief Alias for Items.
-typedef YangRepr::YangReprItem YRItem;
+using YRItem = YangRepr::YangReprItem;
/// @brief Alias for Trees.
-typedef YangRepr::Tree YRTree;
+using YRTree = YangRepr::Tree;
/// @brief Overrides standard output operator for LeafBaseType.
std::ostream& operator<<(std::ostream& os, libyang::LeafBaseType type);