* print warning message for parsing node * * \param [in] msg Warning message * \param [in] node Offending node that caused the warning */
| 860 | * \param [in] node Offending node that caused the warning |
| 861 | */ |
| 862 | void 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 |
nothing calls this directly
no outgoing calls
no test coverage detected