ChimeraTK-DeviceAccess-TangoBackend 00.01.02
Loading...
Searching...
No Matches
TangoTestServer.h
Go to the documentation of this file.
1/*----- PROTECTED REGION ID(TangoTestServer.h) ENABLED START -----*/
2/* clang-format on */
3//=============================================================================
4//
5// file : TangoTestServer.h
6//
7// description : Include file for the TangoTestServer class
8//
9// project : TangoTestServer
10//
11// This file is part of Tango device class.
12//
13// Tango is free software: you can redistribute it and/or modify
14// it under the terms of the GNU Lesser General Public License as published by
15// the Free Software Foundation, either version 3 of the License, or
16// (at your option) any later version.
17//
18// Tango is distributed in the hope that it will be useful,
19// but WITHOUT ANY WARRANTY; without even the implied warranty of
20// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
21// GNU Lesser General Public License for more details.
22//
23// You should have received a copy of the GNU Lesser General Public License
24// along with Tango. If not, see <http://www.gnu.org/licenses/>.
25//
26//
27//
28//=============================================================================
29// This file is generated by POGO
30// (Program Obviously used to Generate tango Object)
31//=============================================================================
32
33#ifndef TangoTestServer_H
34#define TangoTestServer_H
35
36#include <tango/tango.h>
37
38#include <atomic>
39
40/* clang-format off */
41/*----- PROTECTED REGION END -----*/ // TangoTestServer.h
42
43#ifdef TANGO_LOG
44 // cppTango after c934adea (Merge branch 'remove-cout-definition' into 'main', 2022-05-23)
45 // nothing to do
46#else
47 // cppTango 9.3-backports and older
48 #define TANGO_LOG cout
49 #define TANGO_LOG_INFO cout2
50 #define TANGO_LOG_DEBUG cout3
51#endif // TANGO_LOG
52
59namespace TangoTestServer_ns
60{
61/*----- PROTECTED REGION ID(TangoTestServer::Additional Class Declarations) ENABLED START -----*/
62 /* clang-format on */
63 // Additional Class Declarations
64 /* clang-format off */
65/*----- PROTECTED REGION END -----*/ // TangoTestServer::Additional Class Declarations
66
67class TangoTestServer : public TANGO_BASE_CLASS
68{
69
70/*----- PROTECTED REGION ID(TangoTestServer::Data Members) ENABLED START -----*/
71 /* clang-format on */
72 public:
73 std::atomic_bool runtimeError{false};
74 /* clang-format off */
75/*----- PROTECTED REGION END -----*/ // TangoTestServer::Data Members
76
77
78// Attribute data members
79public:
80 Tango::DevDouble *attr_DoubleScalar_read;
81 Tango::DevFloat *attr_FloatScalar_read;
82 Tango::DevLong *attr_IntScalar_read;
83 Tango::DevString *attr_StringScalar_read;
84 Tango::DevBoolean *attr_BooleanScalar_read;
85 Tango::DevDouble *attr_DoubleSpectrum_read;
86 Tango::DevFloat *attr_FloatSpectrum_read;
87 Tango::DevLong *attr_IntSpectrum_read;
88 Tango::DevString *attr_StringSpectrum_read;
89Tango::DevBoolean *attr_BooleanSpectrum_read;
90
91// Constructors and destructors
92public:
99 TangoTestServer(Tango::DeviceClass *cl,std::string &s);
106 TangoTestServer(Tango::DeviceClass *cl,const char *s);
114 TangoTestServer(Tango::DeviceClass *cl,const char *s,const char *d);
119
120
121// Miscellaneous methods
122public:
123 /*
124 * will be called at device destruction or at init command.
125 */
126 void delete_device();
127 /*
128 * Initialize the device
129 */
130 virtual void init_device();
131 /*
132 * Always executed method before execution command method.
133 */
134 virtual void always_executed_hook();
135
136
137// Attribute methods
138public:
139 /*-------------------------------------------------------------------------------------------------------------------*/
140 /*
141 * Method : TangoTestServer::read_attr_hardware()
142 * Description: Hardware acquisition for attributes.
143 */
144 /*-------------------------------------------------------------------------------------------------------------------*/
145 virtual void read_attr_hardware(std::vector<long> &attr_list);
146 /*-------------------------------------------------------------------------------------------------------------------*/
147 /*
148 * Method : TangoTestServer::write_attr_hardware()
149 * Description: Hardware writing for attributes.
150 */
151 /*-------------------------------------------------------------------------------------------------------------------*/
152 virtual void write_attr_hardware(std::vector<long> &attr_list);
153
161 virtual void read_DoubleScalar(Tango::Attribute &attr);
162 virtual void write_DoubleScalar(Tango::WAttribute &attr);
163 virtual bool is_DoubleScalar_allowed(Tango::AttReqType type);
171 virtual void read_DoubleRoScalar(Tango::Attribute &attr);
172 virtual bool is_DoubleRoScalar_allowed(Tango::AttReqType type);
180 virtual void write_DoubleWoScalar(Tango::WAttribute &attr);
181 virtual bool is_DoubleWoScalar_allowed(Tango::AttReqType type);
189 virtual void read_FloatScalar(Tango::Attribute &attr);
190 virtual void write_FloatScalar(Tango::WAttribute &attr);
191 virtual bool is_FloatScalar_allowed(Tango::AttReqType type);
199 virtual void read_FloatRoScalar(Tango::Attribute &attr);
200 virtual bool is_FloatRoScalar_allowed(Tango::AttReqType type);
208 virtual void read_FloatWoScalar(Tango::Attribute &attr);
209 virtual void write_FloatWoScalar(Tango::WAttribute &attr);
210 virtual bool is_FloatWoScalar_allowed(Tango::AttReqType type);
218 virtual void read_IntScalar(Tango::Attribute &attr);
219 virtual void write_IntScalar(Tango::WAttribute &attr);
220 virtual bool is_IntScalar_allowed(Tango::AttReqType type);
228 virtual void read_IntRoScalar(Tango::Attribute &attr);
229 virtual bool is_IntRoScalar_allowed(Tango::AttReqType type);
237 virtual void write_IntWoScalar(Tango::WAttribute &attr);
238 virtual bool is_IntWoScalar_allowed(Tango::AttReqType type);
246 virtual void read_StringScalar(Tango::Attribute &attr);
247 virtual void write_StringScalar(Tango::WAttribute &attr);
248 virtual bool is_StringScalar_allowed(Tango::AttReqType type);
256 virtual void read_StringRoScalar(Tango::Attribute &attr);
257 virtual bool is_StringRoScalar_allowed(Tango::AttReqType type);
265 virtual void write_StringWoScalar(Tango::WAttribute &attr);
266 virtual bool is_StringWoScalar_allowed(Tango::AttReqType type);
274 virtual void read_BooleanScalar(Tango::Attribute &attr);
275 virtual void write_BooleanScalar(Tango::WAttribute &attr);
276 virtual bool is_BooleanScalar_allowed(Tango::AttReqType type);
284 virtual void read_BooleanRoScalar(Tango::Attribute &attr);
285 virtual bool is_BooleanRoScalar_allowed(Tango::AttReqType type);
293 virtual void write_BooleanWoScalar(Tango::WAttribute &attr);
294 virtual bool is_BooleanWoScalar_allowed(Tango::AttReqType type);
302 virtual void read_DoubleSpectrum(Tango::Attribute &attr);
303 virtual void write_DoubleSpectrum(Tango::WAttribute &attr);
304 virtual bool is_DoubleSpectrum_allowed(Tango::AttReqType type);
312 virtual void read_DoubleRoSpectrum(Tango::Attribute &attr);
313 virtual bool is_DoubleRoSpectrum_allowed(Tango::AttReqType type);
321 virtual void write_DoubleWoSpectrum(Tango::WAttribute &attr);
322 virtual bool is_DoubleWoSpectrum_allowed(Tango::AttReqType type);
330 virtual void read_FloatSpectrum(Tango::Attribute &attr);
331 virtual void write_FloatSpectrum(Tango::WAttribute &attr);
332 virtual bool is_FloatSpectrum_allowed(Tango::AttReqType type);
340 virtual void read_FloatRoSpectrum(Tango::Attribute &attr);
341 virtual bool is_FloatRoSpectrum_allowed(Tango::AttReqType type);
349 virtual void read_FloatWoSpectrum(Tango::Attribute &attr);
350 virtual void write_FloatWoSpectrum(Tango::WAttribute &attr);
351 virtual bool is_FloatWoSpectrum_allowed(Tango::AttReqType type);
359 virtual void read_IntSpectrum(Tango::Attribute &attr);
360 virtual void write_IntSpectrum(Tango::WAttribute &attr);
361 virtual bool is_IntSpectrum_allowed(Tango::AttReqType type);
369 virtual void read_IntRoSpectrum(Tango::Attribute &attr);
370 virtual bool is_IntRoSpectrum_allowed(Tango::AttReqType type);
378 virtual void write_IntWoSpectrum(Tango::WAttribute &attr);
379 virtual bool is_IntWoSpectrum_allowed(Tango::AttReqType type);
387 virtual void read_StringSpectrum(Tango::Attribute &attr);
388 virtual void write_StringSpectrum(Tango::WAttribute &attr);
389 virtual bool is_StringSpectrum_allowed(Tango::AttReqType type);
397 virtual void read_StringRoSpectrum(Tango::Attribute &attr);
398 virtual bool is_StringRoSpectrum_allowed(Tango::AttReqType type);
406 virtual void read_StringWoSpectrum(Tango::Attribute &attr);
407 virtual void write_StringWoSpectrum(Tango::WAttribute &attr);
408 virtual bool is_StringWoSpectrum_allowed(Tango::AttReqType type);
409
410
418 virtual void read_BooleanSpectrum(Tango::Attribute &attr);
419 virtual void write_BooleanSpectrum(Tango::WAttribute &attr);
420 virtual bool is_BooleanSpectrum_allowed(Tango::AttReqType type);
421
422 /*-------------------------------------------------------------------------------------------------------------------*/
427 /*-------------------------------------------------------------------------------------------------------------------*/
429
430
431
432
433// Command related methods
434public:
435
436
437 /*-------------------------------------------------------------------------------------------------------------------*/
442 /*-------------------------------------------------------------------------------------------------------------------*/
444
445/*----- PROTECTED REGION ID(TangoTestServer::Additional Method prototypes) ENABLED START -----*/
446 /* clang-format on */
447 // Additional Method prototypes
448 /* clang-format off */
449/*----- PROTECTED REGION END -----*/ // TangoTestServer::Additional Method prototypes
450};
451
452/*----- PROTECTED REGION ID(TangoTestServer::Additional Classes Definitions) ENABLED START -----*/
453 /* clang-format on */
454 // Additional Classes Definitions
455 /* clang-format off */
456/*----- PROTECTED REGION END -----*/ // TangoTestServer::Additional Classes Definitions
457
458} // End of namespace
459
460#endif // TangoTestServer_H
virtual bool is_IntSpectrum_allowed(Tango::AttReqType type)
virtual void read_StringRoSpectrum(Tango::Attribute &attr)
Attribute StringRoSpectrum related methods.
virtual void write_StringWoScalar(Tango::WAttribute &attr)
Attribute StringWoScalar related methods.
virtual void write_StringWoSpectrum(Tango::WAttribute &attr)
Write attribute StringWoSpectrum related method.
Tango::DevBoolean * attr_BooleanSpectrum_read
virtual void read_StringRoScalar(Tango::Attribute &attr)
Attribute StringRoScalar related methods.
virtual bool is_IntRoScalar_allowed(Tango::AttReqType type)
virtual void write_IntSpectrum(Tango::WAttribute &attr)
Write attribute IntSpectrum related method.
virtual void read_StringSpectrum(Tango::Attribute &attr)
Attribute StringSpectrum related methods.
virtual void write_FloatSpectrum(Tango::WAttribute &attr)
Write attribute FloatSpectrum related method.
virtual bool is_DoubleRoScalar_allowed(Tango::AttReqType type)
virtual void read_attr_hardware(std::vector< long > &attr_list)
virtual void write_IntWoScalar(Tango::WAttribute &attr)
Attribute IntWoScalar related methods.
virtual bool is_DoubleWoScalar_allowed(Tango::AttReqType type)
virtual bool is_BooleanRoScalar_allowed(Tango::AttReqType type)
virtual void read_BooleanSpectrum(Tango::Attribute &attr)
Attribute BooleanSpectrum related methods.
virtual void write_IntWoSpectrum(Tango::WAttribute &attr)
Attribute IntWoSpectrum related methods.
virtual void write_StringScalar(Tango::WAttribute &attr)
Write attribute StringScalar related method.
virtual void read_IntScalar(Tango::Attribute &attr)
Attribute IntScalar related methods.
virtual bool is_FloatRoSpectrum_allowed(Tango::AttReqType type)
virtual bool is_StringRoScalar_allowed(Tango::AttReqType type)
virtual bool is_FloatWoSpectrum_allowed(Tango::AttReqType type)
virtual void write_BooleanSpectrum(Tango::WAttribute &attr)
Write attribute StringSpectrum related method.
virtual bool is_BooleanSpectrum_allowed(Tango::AttReqType type)
virtual void write_DoubleScalar(Tango::WAttribute &attr)
Write attribute DoubleScalar related method.
virtual void read_FloatScalar(Tango::Attribute &attr)
Attribute FloatScalar related methods.
virtual void read_FloatWoSpectrum(Tango::Attribute &attr)
Attribute FloatWoSpectrum related methods.
virtual void read_IntRoSpectrum(Tango::Attribute &attr)
Attribute IntRoSpectrum related methods.
virtual bool is_IntWoScalar_allowed(Tango::AttReqType type)
virtual bool is_DoubleWoSpectrum_allowed(Tango::AttReqType type)
virtual void write_DoubleWoScalar(Tango::WAttribute &attr)
Attribute DoubleWoScalar related methods.
virtual void write_FloatScalar(Tango::WAttribute &attr)
Write attribute FloatScalar related method.
virtual bool is_FloatScalar_allowed(Tango::AttReqType type)
virtual bool is_FloatSpectrum_allowed(Tango::AttReqType type)
Tango::DevString * attr_StringSpectrum_read
virtual void read_FloatWoScalar(Tango::Attribute &attr)
Attribute FloatWoScalar related methods.
virtual bool is_BooleanWoScalar_allowed(Tango::AttReqType type)
virtual void read_IntRoScalar(Tango::Attribute &attr)
Attribute IntRoScalar related methods.
virtual bool is_IntScalar_allowed(Tango::AttReqType type)
virtual bool is_IntWoSpectrum_allowed(Tango::AttReqType type)
virtual void write_FloatWoScalar(Tango::WAttribute &attr)
Write attribute FloatWoScalar related method.
virtual bool is_StringScalar_allowed(Tango::AttReqType type)
virtual void write_StringSpectrum(Tango::WAttribute &attr)
Write attribute StringSpectrum related method.
virtual void read_BooleanRoScalar(Tango::Attribute &attr)
Attribute BooleanRoScalar related methods.
virtual bool is_StringRoSpectrum_allowed(Tango::AttReqType type)
virtual void write_attr_hardware(std::vector< long > &attr_list)
virtual bool is_DoubleSpectrum_allowed(Tango::AttReqType type)
virtual void read_DoubleRoScalar(Tango::Attribute &attr)
Attribute DoubleRoScalar related methods.
virtual void read_StringWoSpectrum(Tango::Attribute &attr)
Attribute StringWoSpectrum related methods.
virtual bool is_FloatRoScalar_allowed(Tango::AttReqType type)
virtual void read_DoubleScalar(Tango::Attribute &attr)
Attribute DoubleScalar related methods.
virtual bool is_StringWoScalar_allowed(Tango::AttReqType type)
virtual void write_IntScalar(Tango::WAttribute &attr)
Write attribute IntScalar related method.
~TangoTestServer()
The device object destructor.
virtual bool is_DoubleScalar_allowed(Tango::AttReqType type)
virtual void read_IntSpectrum(Tango::Attribute &attr)
Attribute IntSpectrum related methods.
virtual bool is_BooleanScalar_allowed(Tango::AttReqType type)
Tango::DevBoolean * attr_BooleanScalar_read
virtual void read_StringScalar(Tango::Attribute &attr)
Attribute StringScalar related methods.
virtual void read_FloatRoScalar(Tango::Attribute &attr)
Attribute FloatRoScalar related methods.
virtual bool is_FloatWoScalar_allowed(Tango::AttReqType type)
virtual bool is_StringSpectrum_allowed(Tango::AttReqType type)
virtual void read_FloatSpectrum(Tango::Attribute &attr)
Attribute FloatSpectrum related methods.
virtual bool is_StringWoSpectrum_allowed(Tango::AttReqType type)
virtual void read_FloatRoSpectrum(Tango::Attribute &attr)
Attribute FloatRoSpectrum related methods.
virtual void write_DoubleSpectrum(Tango::WAttribute &attr)
Write attribute DoubleSpectrum related method.
virtual bool is_IntRoSpectrum_allowed(Tango::AttReqType type)
Tango::DevDouble * attr_DoubleSpectrum_read
virtual void write_BooleanScalar(Tango::WAttribute &attr)
Write attribute BooleanScalar related method.
virtual void read_DoubleSpectrum(Tango::Attribute &attr)
Attribute DoubleSpectrum related methods.
virtual void read_BooleanScalar(Tango::Attribute &attr)
Attribute BooleanScalar related methods.
virtual void write_BooleanWoScalar(Tango::WAttribute &attr)
Attribute BooleanWoScalar related methods.
virtual void read_DoubleRoSpectrum(Tango::Attribute &attr)
Attribute DoubleRoSpectrum related methods.
virtual void write_FloatWoSpectrum(Tango::WAttribute &attr)
Write attribute FloatWoSpectrum related method.
virtual void write_DoubleWoSpectrum(Tango::WAttribute &attr)
Attribute DoubleWoSpectrum related methods.
virtual bool is_DoubleRoSpectrum_allowed(Tango::AttReqType type)
TangoTestServer class description: