DI-Guy SDK Documentation  13.1
diguyLogChannel.h
Go to the documentation of this file.
1 
2 /*********************************************************************
3  ** Copyright (c) 1992-2015 VT MAK
4  ** All rights reserved.
5  *********************************************************************/
6 
7 /*********************************************************************/
13 #ifndef __diguyLogChannel_H
14 #define __diguyLogChannel_H
15 
16 #ifdef SWIG
17 %module diguyLogChannel
18 #else
19 #define CPLUSPLUS_ONLY
20 #endif
21 
22 #ifdef CPLUSPLUS_ONLY
23 class bdiLog;
24 
25 #include <stdio.h> // for NULL definition
26 #include <diguy_constants.h>
27 
28 typedef const char* diguyLogPrefixFunction(void* user_data);
29 
30 #endif
31 
32 
33 #include <declspec_diguy.h>
34 
35 
36 /****************************************************************************/
37 class BDI_DECLSPEC_diguy diguyLogChannel
38 {
39 
40 public:
41 
42  /*l
43  *b Description:
44  **
45  ** Documentation pending.
46  */
47  int print(int notify_level, const char* text);
48 
49  /*l
50  *b Description:
51  **
52  ** Documentation pending.
53  */
54  void set_text_color(float r, float g, float b, float a);
55  void get_text_color(float* r, float* g, float* b, float* a);
56 
57  void set_static_prefix(const char* prefix);
58  const char* get_static_prefix();
59 
60 #ifdef CPLUSPLUS_ONLY
61 
62  void set_prefix_function(diguyLogPrefixFunction* prefix_function,
63  void* prefix_function_user_data);
64  diguyLogPrefixFunction* get_prefix_function();
65  void* get_prefix_function_user_data();
66 
67 #endif
68 
69  int file_enable(int notify_level,
70  const char* filename,
71  int clear_file = 1);
72  int file_disable();
73 
78 #ifdef CPLUSPLUS_ONLY
79 
80  bdiLog* get_scripted_object() {return m_scripted_object;}
81 
82 private:
83 
84  /*l
85  ** A private constructor.
86  */
87  diguyLogChannel(bdiLog* scripted_object);
88 
89  /*l
90  ** A pointer to internal data.
91  */
92  bdiLog* m_scripted_object;
93 
94  friend class bdiLog;
95 
96 #endif
97 
98 };
99 
100 #endif /* __diguyLogChannel_H */
101 
Definition: diguyLogChannel.h:34
const char * diguyLogPrefixFunction(void *user_data)
Definition: diguyLogChannel.h:27