Renamed YAML type checking function

This commit is contained in:
Nav
2022-09-17 00:07:20 +01:00
parent c32cd03872
commit 0e9eba22bc
2 changed files with 3 additions and 3 deletions

View File

@@ -9,7 +9,7 @@ namespace Bloom::DebugServer::Gdb
: DebugServerConfig(debugServerConfig)
{
if (debugServerConfig.debugServerNode["ipAddress"]) {
if (!YamlUtilities::isType<std::string>(debugServerConfig.debugServerNode["ipAddress"])) {
if (!YamlUtilities::isCastable<std::string>(debugServerConfig.debugServerNode["ipAddress"])) {
Logger::error(
"Invalid GDB debug server config parameter ('ipAddress') provided - must be a string. The "
"parameter will be ignored."
@@ -20,7 +20,7 @@ namespace Bloom::DebugServer::Gdb
}
if (debugServerConfig.debugServerNode["port"]) {
if (YamlUtilities::isType<std::uint16_t>(debugServerConfig.debugServerNode["port"])) {
if (YamlUtilities::isCastable<std::uint16_t>(debugServerConfig.debugServerNode["port"])) {
this->listeningPortNumber = debugServerConfig.debugServerNode["port"].as<std::uint16_t>();
} else {