HDK
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Groups Pages
HOM_logging.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_h__
10 #define __HOM_logging_h__
11 
12 #include "HOM_API.h"
13 #include "HOM_Defines.h"
14 #include "HOM_ElemPtr.h"
15 #include "HOM_logging_LogEntry.h"
16 #include <vector>
17 
18 SWIGOUT(%rename(logging) HOM_logging;)
19 
21 {
22 public:
23  virtual ~HOM_logging()
24  { }
25 
26  virtual std::string __repr__() = 0;
27 
28  virtual std::vector<std::string> sources() = 0;
29  virtual void setRenderLogVerbosity(int verbosity) = 0;
30  virtual int renderLogVerbosity() = 0;
31 
32  virtual void saveLogsToFile(const std::vector<HOM_logging_LogEntry> &logs,
33  const char *filepath) = 0;
34  virtual std::vector<HOM_logging_LogEntry> loadLogsFromFile(
35  const char *filepath) = 0;
36 
37  virtual void createSource(const char *source_name) = 0;
38  virtual void log(const HOM_logging_LogEntry &entry,
39  const char *source_name = nullptr) = 0;
40 
41  SWIGOUT(%newobject defaultSink;)
42  virtual HOM_logging_MemorySink *defaultSink(bool force_create = false) = 0;
43 };
44 
45 #endif
virtual ~HOM_logging()
Definition: HOM_logging.h:23
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
GLsizei GLenum * sources
Definition: glcorearb.h:2542
#define HOM_API
Definition: HOM_API.h:13
OIIO_UTIL_API bool rename(string_view from, string_view to, std::string &err)
OIIO_FORCEINLINE T log(const T &v)
Definition: simd.h:7688