HDK
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Groups Pages
UT_UniversalLogStdStreamSource.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  * NAME: UT_UniversalLogStdStreamSource.h ( FS Library, C++)
7  *
8  * COMMENTS:
9  *
10  */
11 
12 #ifndef __UT_UniversalLogStdStreamSource__
13 #define __UT_UniversalLogStdStreamSource__
14 
15 #include "UT_API.h"
16 #include "UT_UniversalLogSource.h"
18 #include "UT_UniquePtr.h"
19 
20 /// A log source for collecting data printed to stdout or stderr. Dedicated
21 /// subclasses for these two cases just override the display name, and
22 /// construct the base class with a flag indicating if the source is stdout
23 /// or stderr.
25 {
26 protected:
27  UT_UniversalLogStdStreamSource(bool is_stdout);
29 
30 private:
32  bool myIsStdout;
33 };
34 
36 {
37 public:
39  ~UT_UniversalLogStdOutSource() override;
40 
41  static const UT_StringHolder &staticName();
42 
43 };
44 
46 {
47 public:
49  ~UT_UniversalLogStdErrSource() override;
50 
51  static const UT_StringHolder &staticName();
52 };
53 
55 {
56 public:
58  ~UT_UniversalLogSpamSource() override;
59 
60  static const UT_StringHolder &staticName();
61 };
62 
63 
64 #endif
65 
#define UT_API
Definition: UT_API.h:14