MCPcopy Create free account
hub / github.com/SNAS/openbmp / printWarning

Method printWarning

Server/src/Config.cpp:862–880  ·  view source on GitHub ↗

* print warning message for parsing node * * \param [in] msg Warning message * \param [in] node Offending node that caused the warning */

Source from the content-addressed store, hash-verified

860 * \param [in] node Offending node that caused the warning
861 */
862void Config::printWarning(const std::string msg, const YAML::Node &node) {
863 std::string type;
864
865 switch (node.Type()) {
866 case YAML::NodeType::Null:
867 type = "Null";
868 break;
869 case YAML::NodeType::Scalar:
870 type = "Scalar";
871 break;
872 case YAML::NodeType::Sequence:
873 type = "Sequence";
874 break;
875 default:
876 type = "Unknown";
877 break;
878 }
879 std::cout << "WARN: " << msg << " : " << type << " = " << node.Scalar() << std::endl ;
880}
881

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected