HDK
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Groups Pages
HOM_logging_FileSink.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_FileSink_h__
10 #define __HOM_logging_FileSink_h__
11 
12 #include "HOM_API.h"
13 #include "HOM_logging_Sink.h"
14 #include "HOM_logging_LogEntry.h"
15 #include "HOM_IterableList.h"
16 
17 SWIGOUT(%feature("notabstract") HOM_logging_FileSink;)
18 SWIGOUT(%rename(_logging_FileSink) HOM_logging_FileSink;)
19 
21 {
22 public:
23 #ifdef SWIG
24 %extend {
25  %kwargs HOM_logging_FileSink;
26  HOM_logging_FileSink(const char *filepath)
27  {
28  return HOM().newFileSink(filepath);
29  }
30 };
31 #else
33  { HOM_CONSTRUCT_OBJECT(this) }
34 #endif
36  { HOM_DESTRUCT_OBJECT(this) }
37 
38  SWIGOUT(virtual std::string __repr__();)
39 
40  virtual std::string filePath() = 0;
41 };
42 
43 #endif
#define HOM_DESTRUCT_OBJECT(pointer)
Definition: HOM_Module.h:1303
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
#define HOM_API
Definition: HOM_API.h:13
#define HOM_CONSTRUCT_OBJECT(pointer)
Definition: HOM_Module.h:1302
virtual HOM_logging_FileSink * newFileSink(const char *filepath)=0
OIIO_UTIL_API bool rename(string_view from, string_view to, std::string &err)
HOM_API HOM_Module & HOM()