HDK
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Groups Pages
status.h
Go to the documentation of this file.
1 //
2 // Copyright 2016 Pixar
3 //
4 // Licensed under the terms set forth in the LICENSE.txt file available at
5 // https://openusd.org/license.
6 //
7 #ifndef PXR_BASE_TF_STATUS_H
8 #define PXR_BASE_TF_STATUS_H
9 
10 #include "pxr/pxr.h"
11 
13 
15 
16 /// \class TfStatus
17 /// \ingroup group_tf_Diagnostic
18 ///
19 /// Represents an object that contains information about a status message.
20 ///
21 /// See \ref page_tf_Diagnostic in the C++ API reference for a detailed
22 /// description of the status message issuing API. For a example of how to
23 /// post a status message, see \c TF_STATUS(), also in the C++ API reference.
24 ///
25 /// In the Python API, you can issue a status message with Tf.Status().
26 ///
28 {
29 private:
30  TfStatus(TfEnum statusCode, char const *statusCodeString,
31  TfCallContext const &context, const std::string& commentary,
32  TfDiagnosticInfo info, bool quiet)
33  : TfDiagnosticBase(statusCode, statusCodeString, context,
34  commentary, info, quiet)
35  { }
36 
37  friend class TfDiagnosticMgr;
38 };
39 
41 
42 #endif // PXR_BASE_TF_STATUS_H
TF_API TfDiagnosticBase(TfEnum code, char const *codeString, TfCallContext const &context, const std::string &commentary, TfDiagnosticInfo info, bool quiet)
Construct an instance.
Definition: enum.h:119
PXR_NAMESPACE_OPEN_SCOPE typedef std::any TfDiagnosticInfo
PXR_NAMESPACE_CLOSE_SCOPE PXR_NAMESPACE_OPEN_SCOPE
Definition: path.h:1425
#define PXR_NAMESPACE_CLOSE_SCOPE
Definition: pxr.h:74