HDK
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Groups Pages
HOM_logging_LogEntry.h
Go to the documentation of this file.
1 /*
2  * PROPRIETARY INFORMATION. This software is proprietary to
3  * Side Effects Software Inc., and is not to be reproduced,
4  * transmitted, or disclosed in any way without written permission.
5  *
6  * COMMENTS:
7  */
8 
9 #ifndef __HOM_logging_LogEntry_h__
10 #define __HOM_logging_LogEntry_h__
11 
12 #include "HOM_API.h"
13 #include "HOM_Defines.h"
14 #include "HOM_Module.h"
16 
17 SWIGOUT(%rename(_logging_LogEntry) HOM_logging_LogEntry;)
18 
20 {
21 public:
24  : myLogEntry(log_entry)
25  { HOM_CONSTRUCT_OBJECT(this) }
26 
28  HOM_logging_LogEntry(const char *message = nullptr,
29  const char *source = nullptr,
30  const char *source_context = nullptr,
31  HOM_EnumValue *severity = nullptr,
32  int verbosity = 0,
33  double time = 0.0,
34  int thread_id = 0,
35  bool has_external_info = false,
36  const char *external_host_name = nullptr,
37  const char *external_identifier = nullptr,
38  const char *external_command_line = nullptr,
39  int external_process_id = 0);
40 
42  { HOM_DESTRUCT_OBJECT(this) }
43 
44  int __hash__();
45  std::string __repr__() const;
46 
47  std::string source() const;
48  std::string sourceContext() const;
49  std::string message() const;
50  HOM_EnumValue *severity() const;
51  int verbosity() const;
52  double time() const;
53  int threadId() const;
54 
55  bool hasExternalInfo() const;
56  std::string externalHostName() const;
57  std::string externalIdentifier() const;
58  std::string externalCommandLine() const;
59  int externalProcessId() const;
60 
62  { return &myLogEntry; }
63 
64  SWIGOUT(%ignore myLogEntry;)
66 };
67 
68 #endif
GLuint GLsizei const GLchar * message
Definition: glcorearb.h:2543
#define HOM_DESTRUCT_OBJECT(pointer)
Definition: HOM_Module.h:1291
GT_API const UT_StringHolder time
GLsizei const GLchar *const * string
Definition: glcorearb.h:814
#define SWIGOUT(x)
Definition: HOM_Defines.h:24
string __repr__(VtArray< T > const &self)
Definition: wrapArray.h:352
virtual ~HOM_logging_LogEntry()
#define HOM_API
Definition: HOM_API.h:13
void ignore(T const &) VULKAN_HPP_NOEXCEPT
Definition: vulkan.hpp:6508
HOM_logging_LogEntry(const UT_UniversalLogEntry &log_entry)
#define HOM_CONSTRUCT_OBJECT(pointer)
Definition: HOM_Module.h:1290
GLsizei GLsizei GLchar * source
Definition: glcorearb.h:803
GLenum GLenum severity
Definition: glcorearb.h:2539
OIIO_UTIL_API bool rename(string_view from, string_view to, std::string &err)
virtual int __hash__()=0
void * _asVoidPointer()
Simple object to hold the data associated with a single log entry event.
**Note that the tasks the thread_id
Definition: thread.h:637