7#ifndef PXR_EXEC_VDF_EXECUTOR_ERROR_LOGGER_H
8#define PXR_EXEC_VDF_EXECUTOR_ERROR_LOGGER_H
12#include "pxr/exec/vdf/api.h"
13#include <tbb/concurrent_unordered_map.h>
16PXR_NAMESPACE_OPEN_SCOPE
50 tbb::concurrent_unordered_map<const VdfNode *, std::string>;
78 const std::string &warning);
97 mutable std::atomic<NodeToStringMap *> _warnings;
102PXR_NAMESPACE_CLOSE_SCOPE
A client may instantiate an object of this class and set it in an executor, to collect errors that ma...
VDF_API void LogWarning(const VdfNode &node, const std::string &warning) const
Logs a warning against node.
VDF_API VdfExecutorErrorLogger()
Ctor.
VDF_API ~VdfExecutorErrorLogger()
Dtor.
VDF_API void ReportWarnings() const
Reports warnings using node debug names.
static VDF_API void IssueDefaultWarning(const VdfNode &node, const std::string &warning)
Prints out default warning message based on node's debug name.
VDF_API const NodeToStringMap & GetWarnings() const
Returns a map that maps nodes to warning strings that were encountered during a call to Run().
tbb::concurrent_unordered_map< const VdfNode *, std::string > NodeToStringMap
A thread safe map from node pointer to string for logging warnings.
This is the base class for all nodes in a VdfNetwork.