24 #ifndef PXR_BASE_TF_ERROR_TRANSPORT_H 25 #define PXR_BASE_TF_ERROR_TRANSPORT_H 32 #include "pxr/base/tf/api.h" 34 PXR_NAMESPACE_OPEN_SCOPE
49 typedef TfDiagnosticMgr::ErrorList ErrorList;
63 bool IsEmpty()
const {
return _errorList.empty(); }
69 _errorList.swap(other._errorList);
76 ErrorList::iterator first,
77 ErrorList::iterator last) {
78 _errorList.splice(_errorList.begin(), src, first, last);
93 PXR_NAMESPACE_CLOSE_SCOPE
95 #endif // PXR_BASE_TF_ERROR_TRANSPORT_H void swap(ArAssetInfo &lhs, ArAssetInfo &rhs)
TfErrorTransport()
Construct an empty TfErrorTransport.
void Post()
Post all contained errors to the current thread's error list, leaving this TfErrorTransport empty.
Class used to record the end of the error-list.
bool IsEmpty() const
Return true if this TfErrorTransport contains no errors, false otherwise.
void swap(TfErrorTransport &other)
Swap this TfErrorTransport's content with other.
A facility for transporting errors from thread to thread.