2
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff
changeset
|
1 /*
|
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff
changeset
|
2 +-----------------------------------------------------------------------------
|
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff
changeset
|
3 | Project : PCO2
|
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff
changeset
|
4 | Modul : PCO_VIEW_CORE
|
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff
changeset
|
5 +-----------------------------------------------------------------------------
|
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff
changeset
|
6 | Copyright 2002 Texas Instruments Berlin, AG
|
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff
changeset
|
7 | All rights reserved.
|
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff
changeset
|
8 |
|
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff
changeset
|
9 | This file is confidential and a trade secret of Texas
|
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff
changeset
|
10 | Instruments Berlin, AG
|
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff
changeset
|
11 | The receipt of or possession of this file does not convey
|
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff
changeset
|
12 | any rights to reproduce or disclose its contents or to
|
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff
changeset
|
13 | manufacture, use, or sell anything it may describe, in
|
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff
changeset
|
14 | whole, or in part, without the specific written consent of
|
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff
changeset
|
15 | Texas Instruments Berlin, AG.
|
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff
changeset
|
16 +-----------------------------------------------------------------------------
|
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff
changeset
|
17 | Purpose : This Modul contains the core viewer class
|
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff
changeset
|
18 | with basic functions and handlers for several PCO control
|
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff
changeset
|
19 | messages.
|
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff
changeset
|
20 | It is intended to be specialized and extended, e.g. in
|
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff
changeset
|
21 | GUI-server-applications.
|
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff
changeset
|
22 | Some member functions are totally virtual without any
|
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff
changeset
|
23 | standard body and have to be provided by the child class !
|
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff
changeset
|
24 +-----------------------------------------------------------------------------
|
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff
changeset
|
25 */
|
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff
changeset
|
26
|
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff
changeset
|
27 #ifndef _PCO_VIEW_CORE_H_
|
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff
changeset
|
28 #define _PCO_VIEW_CORE_H_
|
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff
changeset
|
29
|
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff
changeset
|
30 /*==== INCLUDES ===================================================*/
|
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff
changeset
|
31 #ifndef PCO_VIEW_CORE_CPP
|
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff
changeset
|
32 #include "pco_view_templ.h"
|
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff
changeset
|
33 #else
|
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff
changeset
|
34 #include "view/pco_view_templ.h"
|
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff
changeset
|
35 #endif
|
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff
changeset
|
36 #include "pco_inifile.h"
|
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff
changeset
|
37
|
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff
changeset
|
38 /*==== DEFINES =====================================================*/
|
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff
changeset
|
39
|
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff
changeset
|
40 /*==== PROTOTYPES ==================================================*/
|
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff
changeset
|
41
|
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff
changeset
|
42 /*==== CLASSES =====================================================*/
|
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff
changeset
|
43 class PCOView_core : public PCOView_templ
|
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff
changeset
|
44 {
|
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff
changeset
|
45 public:
|
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff
changeset
|
46 PCOView_core(const char* ini_file, int& err,
|
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff
changeset
|
47 const char* primq_name="", const char* ctrlq_name="");
|
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff
changeset
|
48 virtual ~PCOView_core();
|
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff
changeset
|
49
|
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff
changeset
|
50 /*
|
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff
changeset
|
51 +-------------------------------------------------------------------------------+
|
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff
changeset
|
52 | PROJECT : PCO2 MODULE : PCO_CTRL_CORE |
|
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff
changeset
|
53 | STATE : code ROUTINE : PCOView_core::dispatch_message |
|
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff
changeset
|
54 +-------------------------------------------------------------------------------+
|
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff
changeset
|
55
|
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff
changeset
|
56 PURPOSE : parses a PCO control message
|
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff
changeset
|
57 PARAMS: buf ... the data
|
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff
changeset
|
58 size .. size of buf
|
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff
changeset
|
59 id ... id of the message
|
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff
changeset
|
60 sender .. queue name of sender
|
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff
changeset
|
61
|
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff
changeset
|
62 RETURNS: 0 .. if message has been handled
|
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff
changeset
|
63 -1 .. otherwise
|
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff
changeset
|
64
|
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff
changeset
|
65 */
|
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff
changeset
|
66 virtual int dispatch_message(void* buf, U16 size, U16 id, const char* sender);
|
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff
changeset
|
67
|
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff
changeset
|
68
|
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff
changeset
|
69 /*
|
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff
changeset
|
70 +-------------------------------------------------------------------------------+
|
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff
changeset
|
71 | PROJECT : PCO2 MODULE : PCO_CTRL_CORE |
|
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff
changeset
|
72 | STATE : code ROUTINE : PCOView_core::interpret_message|
|
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff
changeset
|
73 +-------------------------------------------------------------------------------+
|
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff
changeset
|
74
|
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff
changeset
|
75 PURPOSE : here interpretation of received raw data takes place
|
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff
changeset
|
76 (has to be implemented by derived classes !)
|
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff
changeset
|
77
|
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff
changeset
|
78 PARAMS: buffer .. raw data to be interpretated
|
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff
changeset
|
79 bufsize .. size of buffer
|
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff
changeset
|
80 data .. actual data
|
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff
changeset
|
81 size .. size of data
|
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff
changeset
|
82 id .. id of data message
|
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff
changeset
|
83 index .. index of data message (e.g. in logfile) ... 0 means no index!!
|
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff
changeset
|
84 ttype .. type of time stamp - see PCO_TTYPE_XXX constants
|
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff
changeset
|
85 time .. time stamp
|
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff
changeset
|
86 sender .. name of sender
|
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff
changeset
|
87 receiver.. name of original receiver
|
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff
changeset
|
88
|
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff
changeset
|
89 RETURNS: 0 .. success
|
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff
changeset
|
90 -1 .. interpretation was not possible
|
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff
changeset
|
91
|
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff
changeset
|
92 */
|
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff
changeset
|
93 virtual int interpret_message(void* buffer, U16 bufsize,
|
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff
changeset
|
94 void* &data, U16 &size, ULONG &id, ULONG& index, ULONG& ttype, U32 &time,
|
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff
changeset
|
95 char* &sender, char* &receiver) {return -1;}
|
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff
changeset
|
96
|
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff
changeset
|
97 /*
|
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff
changeset
|
98 +-------------------------------------------------------------------------------+
|
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff
changeset
|
99 | PROJECT : PCO2 MODULE : PCO_VIEW_CORE |
|
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff
changeset
|
100 | STATE : code ROUTINE : PCOView_core::on_data |
|
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff
changeset
|
101 +-------------------------------------------------------------------------------+
|
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff
changeset
|
102
|
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff
changeset
|
103 PURPOSE : here reaction to received data takes place
|
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff
changeset
|
104 (has to be implemented by derived classes !)
|
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff
changeset
|
105
|
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff
changeset
|
106 PARAMS: data .. the data
|
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff
changeset
|
107 size .. size of data
|
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff
changeset
|
108 id .. id of data message
|
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff
changeset
|
109 index .. index of data message (e.g. in logfile) ... 0 means no index!!
|
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff
changeset
|
110 ttype .. type of time stamp - see PCO_TTYPE_XXX constants
|
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff
changeset
|
111 time .. time stamp
|
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff
changeset
|
112 sender .. name of sender
|
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff
changeset
|
113 receiver.. name of original receiver
|
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff
changeset
|
114
|
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff
changeset
|
115 */
|
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff
changeset
|
116 virtual void on_data(void* data, U16 size, ULONG id, ULONG index,
|
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff
changeset
|
117 ULONG ttype, U32 time, const char* sender, char* receiver) {}
|
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff
changeset
|
118
|
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff
changeset
|
119 /*
|
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff
changeset
|
120 +-------------------------------------------------------------------------------+
|
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff
changeset
|
121 | PROJECT : PCO2 MODULE : PCO_VIEW_CORE |
|
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff
changeset
|
122 | STATE : code ROUTINE : PCOView_core::on_raw_data |
|
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff
changeset
|
123 +-------------------------------------------------------------------------------+
|
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff
changeset
|
124
|
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff
changeset
|
125 PURPOSE : here reaction to the raw data just as received from server takes place
|
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff
changeset
|
126 (may be implemented by derived classes)
|
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff
changeset
|
127 if interpretation succeeded it will be called AFTER on_data(), otherwise
|
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff
changeset
|
128 only on_raw_data() is called
|
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff
changeset
|
129
|
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff
changeset
|
130 PARAMS: rawdata .. the data
|
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff
changeset
|
131 rawsize .. size of data
|
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff
changeset
|
132
|
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff
changeset
|
133 */
|
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff
changeset
|
134 virtual void on_raw_data(void* rawdata, U16 rawsize) {}
|
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff
changeset
|
135
|
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff
changeset
|
136 /*
|
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff
changeset
|
137 +-------------------------------------------------------------------------------+
|
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff
changeset
|
138 | PROJECT : PCO2 MODULE : PCO_VIEW_CORE |
|
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff
changeset
|
139 | STATE : code ROUTINE : PCOView_core::on_corrupt_data |
|
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff
changeset
|
140 +-------------------------------------------------------------------------------+
|
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff
changeset
|
141
|
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff
changeset
|
142 PURPOSE : this function is called if corrupt data has been received
|
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff
changeset
|
143 deriving viewers may, e.g., release semaphores
|
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff
changeset
|
144
|
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff
changeset
|
145 PARAMS:
|
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff
changeset
|
146 */
|
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff
changeset
|
147 virtual void on_corrupt_data() {}
|
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff
changeset
|
148
|
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff
changeset
|
149 /*
|
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff
changeset
|
150 +----------------------------------------------------------------------------------+
|
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff
changeset
|
151 | PROJECT : PCO2 MODULE : PCO_VIEW_CORE |
|
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff
changeset
|
152 | STATE : code ROUTINE : PCOView_core::propagate_inichange |
|
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff
changeset
|
153 +----------------------------------------------------------------------------------+
|
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff
changeset
|
154
|
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff
changeset
|
155 PURPOSE : saves ini-file and sends an information about important ini-file changes
|
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff
changeset
|
156 to the server, which will propagate it to all connected viewers
|
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff
changeset
|
157
|
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff
changeset
|
158 PARAMS:
|
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff
changeset
|
159
|
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff
changeset
|
160 RETURNS: 0 .. sucess
|
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff
changeset
|
161 -1 .. Server not found
|
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff
changeset
|
162 -2 .. error while contacting Server
|
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff
changeset
|
163 */
|
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff
changeset
|
164 int propagate_inichange();
|
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff
changeset
|
165
|
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff
changeset
|
166 /*
|
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff
changeset
|
167 +--------------------------------------------------------------------------------+
|
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff
changeset
|
168 | PROJECT : PCO2 MODULE : PCO_VIEW_CORE |
|
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff
changeset
|
169 | STATE : code ROUTINE : PCOView_core::self_trace |
|
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff
changeset
|
170 +--------------------------------------------------------------------------------+
|
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff
changeset
|
171
|
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff
changeset
|
172 PURPOSE : adds a new trace string to the queue of this viewer
|
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff
changeset
|
173 (has to be implemented by derived classes !)
|
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff
changeset
|
174
|
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff
changeset
|
175 PARAMS:
|
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff
changeset
|
176
|
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff
changeset
|
177 */
|
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff
changeset
|
178 virtual void self_trace(const char* trace)=0;
|
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff
changeset
|
179
|
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff
changeset
|
180 /*
|
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff
changeset
|
181 +-------------------------------------------------------------------------------+
|
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff
changeset
|
182 | PROJECT : PCO2 MODULE : PCO_VIEW_CORE |
|
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff
changeset
|
183 | STATE : code ROUTINE : PCOView_core::on_inichange |
|
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff
changeset
|
184 +-------------------------------------------------------------------------------+
|
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff
changeset
|
185
|
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff
changeset
|
186 PURPOSE : reloads important changes from ini-file
|
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff
changeset
|
187
|
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff
changeset
|
188 PARAMS:
|
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff
changeset
|
189
|
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff
changeset
|
190 */
|
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff
changeset
|
191 virtual void on_inichange();
|
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff
changeset
|
192
|
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff
changeset
|
193 bool running() const {return m_running;}
|
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff
changeset
|
194
|
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff
changeset
|
195 int dsize() const { return m_dsize;}
|
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff
changeset
|
196 int qsize() const { return m_qsize;}
|
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff
changeset
|
197
|
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff
changeset
|
198 /*
|
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff
changeset
|
199 +-------------------------------------------------------------------------------+
|
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff
changeset
|
200 | PROJECT : PCO2 MODULE : PCO_VIEW_CORE |
|
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff
changeset
|
201 | STATE : code ROUTINE : PCOView_core::shutdown |
|
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff
changeset
|
202 +-------------------------------------------------------------------------------+
|
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff
changeset
|
203
|
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff
changeset
|
204 PURPOSE : exits the viewer threads
|
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff
changeset
|
205
|
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff
changeset
|
206 PARAMS:
|
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff
changeset
|
207
|
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff
changeset
|
208 */
|
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff
changeset
|
209 void shutdown();
|
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff
changeset
|
210
|
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff
changeset
|
211 virtual IniFile& inifile() { return m_inifile;}
|
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff
changeset
|
212 virtual const IniFile& inifile() const { return m_inifile;}
|
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff
changeset
|
213
|
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff
changeset
|
214 protected:
|
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff
changeset
|
215 CMS_HANDLE m_prim_handle,m_ctrl_handle;
|
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff
changeset
|
216 bool m_running;
|
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff
changeset
|
217
|
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff
changeset
|
218 IniFile m_inifile;
|
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff
changeset
|
219 int m_qsize, m_dsize;
|
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff
changeset
|
220
|
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff
changeset
|
221 static void cms_prim_proc(long view);
|
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff
changeset
|
222 static void cms_ctrl_proc(long view);
|
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff
changeset
|
223 };
|
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff
changeset
|
224
|
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff
changeset
|
225 #endif /* _PCO_VIEW_CORE_H_ */
|