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 "HOM_logging_FileSink.h"
17 #include "HOM_logging_MemorySink.h"
18 #include <vector>
19 
20 SWIGOUT(%rename(logging) HOM_logging;)
21 
23 {
24 public:
25  virtual ~HOM_logging()
26  { }
27 
28  virtual std::string __repr__() = 0;
29 
30  virtual std::vector<std::string> sources() = 0;
31  virtual void setRenderLogVerbosity(int verbosity) = 0;
32  virtual int renderLogVerbosity() = 0;
33 
34  virtual void saveLogsToFile(const std::vector<HOM_logging_LogEntry> &logs,
35  const char *filepath) = 0;
36  virtual std::vector<HOM_logging_LogEntry> loadLogsFromFile(
37  const char *filepath) = 0;
38 
39  virtual void createSource(const char *source_name) = 0;
40  virtual void log(const HOM_logging_LogEntry &entry,
41  const char *source_name = nullptr) = 0;
42 
43  SWIGOUT(%newobject defaultSink;)
44  virtual HOM_logging_MemorySink *defaultSink(bool force_create = false) = 0;
45  SWIGOUT(%newobject defaultFileSink;)
46  virtual HOM_logging_FileSink *defaultFileSink() = 0;
47 };
48 
49 #endif
virtual ~HOM_logging()
Definition: HOM_logging.h:25
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:349
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