/usr/include/tango/TangoTest.h is in libtango7-dev 7.2.6+dfsg-4build2.
This file is owned by root:root, with mode 0o644.
The actual contents of the file can be viewed below.
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 117 118 119 120 121 122 123 124 125 126 127 128 129 130 131 132 133 134 135 136 137 138 139 140 141 142 143 144 145 146 147 148 149 150 151 152 153 154 155 156 157 158 159 160 161 162 163 164 165 166 167 168 169 170 171 172 173 174 175 176 177 178 179 180 181 182 183 184 185 186 187 188 189 190 191 192 193 194 195 196 197 198 199 200 201 202 203 204 205 206 207 208 209 210 211 212 213 214 215 216 217 218 219 220 221 222 223 224 225 226 227 228 229 230 231 232 233 234 235 236 237 238 239 240 241 242 243 244 245 246 247 248 249 250 251 252 253 254 255 256 257 258 259 260 261 262 263 264 265 266 267 268 269 270 271 272 273 274 275 276 277 278 279 280 281 282 283 284 285 286 287 288 289 290 291 292 293 294 295 296 297 298 299 300 301 302 303 304 305 306 307 308 309 310 311 312 313 314 315 316 317 318 319 320 321 322 323 324 325 326 327 328 329 330 331 332 333 334 335 336 337 338 339 340 341 342 343 344 345 346 347 348 349 350 351 352 353 354 355 356 357 358 359 360 361 362 363 364 365 366 367 368 369 370 371 372 373 374 375 376 377 378 379 380 381 382 383 384 385 386 387 388 389 390 391 392 393 394 395 396 397 398 399 400 401 402 403 404 405 406 407 408 409 410 411 412 413 414 415 416 417 418 419 420 421 422 423 424 425 426 427 428 429 430 431 432 433 434 435 436 437 438 439 440 441 442 443 444 445 446 447 448 449 450 451 452 453 454 455 456 457 458 459 460 461 462 463 464 465 466 467 468 469 470 471 472 473 474 475 476 477 478 479 480 481 482 483 484 485 486 487 488 489 490 491 492 493 494 495 496 497 498 499 500 501 502 503 504 505 506 507 508 509 510 511 512 513 514 515 516 517 518 519 520 521 522 523 524 525 526 527 528 529 530 531 532 533 534 535 536 537 538 539 540 541 542 543 544 545 546 547 548 549 550 551 552 553 554 555 556 557 558 559 560 561 562 563 564 565 566 567 568 569 570 571 572 573 574 575 576 577 578 579 580 581 582 583 584 585 586 587 588 589 590 591 592 593 594 595 596 597 598 599 600 601 602 603 604 605 606 607 608 609 610 611 612 613 614 615 616 617 618 619 620 621 622 623 624 625 626 627 628 629 630 631 632 633 634 635 636 637 638 639 640 641 642 643 644 645 646 647 648 649 650 651 652 653 654 655 656 657 658 659 660 661 662 663 664 665 666 667 668 669 670 671 672 673 674 675 676 677 678 679 680 681 682 683 684 685 686 687 688 689 690 691 692 693 694 695 696 697 698 699 700 701 702 703 704 705 706 707 708 709 710 711 712 713 714 715 716 717 718 719 720 721 722 723 724 725 726 727 728 729 730 731 732 733 734 735 736 737 738 739 740 741 742 743 744 745 746 747 748 749 750 751 752 753 754 755 756 757 758 759 760 761 762 763 764 765 766 767 768 769 770 771 772 773 774 775 776 777 778 779 780 781 782 783 784 785 786 787 788 789 790 791 792 793 794 795 796 797 798 799 800 801 802 803 804 805 806 807 808 809 810 811 812 813 814 815 816 817 818 819 820 821 822 823 824 825 826 827 828 829 830 831 832 833 834 835 836 837 838 839 840 841 842 843 844 845 846 847 848 849 850 851 852 853 854 855 856 857 858 859 860 861 862 863 864 865 866 867 868 869 870 871 872 873 874 875 876 877 878 879 880 881 882 883 884 885 886 887 888 889 890 891 892 893 894 895 896 897 898 899 900 901 902 903 904 905 906 907 908 909 910 911 912 913 914 915 916 917 918 919 920 921 922 923 924 925 926 927 928 929 930 931 932 933 934 935 936 937 938 939 940 941 942 943 944 945 946 947 948 949 950 951 952 953 954 955 956 957 958 959 960 961 962 963 964 965 966 967 968 969 970 971 972 973 974 975 976 977 978 979 980 981 982 983 984 985 986 987 988 989 990 991 992 993 994 995 996 997 998 999 1000 1001 1002 1003 1004 1005 1006 1007 1008 1009 1010 1011 1012 1013 1014 1015 1016 1017 1018 1019 1020 1021 1022 1023 1024 1025 1026 1027 1028 1029 1030 1031 1032 1033 1034 1035 1036 1037 1038 1039 1040 1041 1042 1043 1044 1045 1046 1047 1048 1049 1050 1051 1052 1053 1054 1055 1056 1057 1058 1059 1060 1061 1062 1063 1064 1065 1066 1067 1068 1069 1070 1071 1072 1073 1074 1075 1076 1077 1078 1079 1080 1081 1082 1083 1084 1085 1086 1087 1088 1089 1090 1091 1092 1093 1094 1095 1096 1097 1098 1099 1100 1101 1102 1103 1104 1105 1106 1107 1108 1109 1110 1111 1112 1113 1114 1115 1116 1117 1118 1119 1120 1121 1122 1123 1124 1125 1126 1127 1128 1129 1130 1131 1132 1133 1134 1135 1136 1137 1138 1139 1140 1141 1142 1143 1144 1145 1146 1147 1148 1149 1150 1151 1152 1153 1154 1155 1156 1157 1158 1159 1160 1161 1162 1163 1164 1165 1166 1167 1168 1169 1170 1171 1172 1173 1174 1175 1176 1177 1178 1179 1180 1181 1182 1183 1184 1185 1186 1187 1188 1189 1190 1191 1192 1193 1194 1195 1196 1197 1198 1199 1200 1201 1202 1203 1204 1205 1206 1207 1208 1209 1210 1211 1212 1213 1214 1215 1216 1217 1218 1219 1220 1221 1222 1223 1224 1225 1226 1227 1228 1229 1230 1231 1232 1233 1234 1235 1236 1237 1238 1239 1240 1241 1242 1243 1244 1245 1246 1247 1248 | //=============================================================================
//
// file : TangoTest.h
//
// description : Include for the TangoTest class.
//
// project : TANGO Device Server for testing generic clients
//
// $Author: taurel $N.Leclecq - SOLEIL
//
// Copyright (C) : 2004,2005,2006,2007,2008,2009,2010
// Synchrotron SOLEIL
// L'Orme des Merisiers
// Saint-Aubin - BP 48 - France
//
// This file is part of Tango.
//
// Tango is free software: you can redistribute it and/or modify
// it under the terms of the GNU General Public License as published by
// the Free Software Foundation, either version 3 of the License, or
// (at your option) any later version.
//
// Tango is distributed in the hope that it will be useful,
// but WITHOUT ANY WARRANTY; without even the implied warranty of
// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
// GNU General Public License for more details.
//
// You should have received a copy of the GNU General Public License
// along with Tango. If not, see <http://www.gnu.org/licenses/>.
//
// $Revision: 16156 $1.0
//
// $Log$
// Revision 1.14 2010/09/10 17:21:30 nleclercq
// Added support for crash report (i.e. google breakpad)
// Added ClassID to the cvs repository
//
// Revision 1.13 2010/03/01 16:57:18 nleclercq
// Added 64bits attributes (scalars, spectra & images)
// Tested from a 64bits Matlab session (seems to work :-)
//
// Revision 1.12 2009/04/04 17:42:36 taurel
// Device now inherits from Device_4Impl.
// Environment variable got from Tango library (To manage tangorc files)
//
// Revision 1.11 2008/04/14 05:20:36 taurel
// - Add a forward declaration. Without, it does not compile with gcc 4.1
//
// Revision 1.10 2008/02/20 16:00:34 pierrejoseph
// Add a property (UShort_image_ro_size) which determines the size of the ushort_image_ro attribute.
//
// Revision 1.9 2007/12/11 19:07:52 nleclercq
// added a "no_value" and a "throw_exception" attribute
//
// Revision 1.8 2007/12/04 11:30:40 nleclercq
// Added string spectrum and image attributes
//
// Revision 1.7 2006/08/22 08:28:16 jensmeyer
// Corrections to support gcc version 4.1.1
//
// Revision 1.6 2006/03/20 15:21:51 jensmeyer
// Added some castings for porting to VC8
//
// Revision 1.5 2006/02/08 16:14:28 nleclercq
// Minor modifs in RW spectrum and image attributes
//
// Revision 1.2 2005/01/14 13:45:08 taurel
// - Ported to Tango V5
//
// Revision 1.1.1.1 2004/05/07 12:43:45 taurel
// Initial import
//
//=============================================================================
//
// This file is generated by POGO
// (Program Obviously used to Generate tango Object)
//
// (c) - Software Engineering Group - ESRF
//=============================================================================
#ifndef _TANGOTEST_H
#define _TANGOTEST_H
#include <tango.h>
//using namespace Tango;
/**
* @author $Author: taurel $
* @version $Revision: 16156 $ $
*/
// Add your own constants definitions here.
//-----------------------------------------------
namespace TangoTest_ns
{
class DataGenerator;
}
namespace TangoTest_ns
{
/**
* Class Description:
* A device to test generic clients. It offers a "echo" like command for
* each TANGO data type (i.e. each command returns an exact copy of <argin>).
*/
/*
* Device States Description:
* Tango::FAULT : This state disables all commands
* Tango::RUNNING : This state allows all the commands to be sent
*/
class TangoTest: public Tango::Device_4Impl
{
friend class DataGenerator;
public :
// Add your own data members here
//-----------------------------------------
// Here is the Start of the automatic code generation part
//-------------------------------------------------------------
/**
* @name attributes
* Attributs member data.
*/
//@{
Tango::DevDouble attr_ampli_write;
Tango::DevBoolean *attr_boolean_scalar_read;
Tango::DevBoolean attr_boolean_scalar_write;
Tango::DevDouble *attr_double_scalar_read;
Tango::DevDouble attr_double_scalar_write;
Tango::DevDouble *attr_double_scalar_rww_read;
Tango::DevDouble attr_double_scalar_w_write;
Tango::DevFloat *attr_float_scalar_read;
Tango::DevFloat attr_float_scalar_write;
Tango::DevLong64 *attr_long64_scalar_read;
Tango::DevLong64 attr_long64_scalar_write;
Tango::DevLong *attr_long_scalar_read;
Tango::DevLong attr_long_scalar_write;
Tango::DevLong *attr_long_scalar_rww_read;
Tango::DevLong attr_long_scalar_w_write;
Tango::DevLong *attr_no_value_read;
Tango::DevShort *attr_short_scalar_read;
Tango::DevShort attr_short_scalar_write;
Tango::DevShort *attr_short_scalar_ro_read;
Tango::DevShort *attr_short_scalar_rww_read;
Tango::DevShort attr_short_scalar_w_write;
Tango::DevString *attr_string_scalar_read;
Tango::DevString attr_string_scalar_write;
Tango::DevLong *attr_throw_exception_read;
Tango::DevUChar *attr_uchar_scalar_read;
Tango::DevUChar attr_uchar_scalar_write;
Tango::DevULong64 *attr_ulong64_scalar_read;
Tango::DevULong64 attr_ulong64_scalar_write;
Tango::DevUShort *attr_ushort_scalar_read;
Tango::DevUShort attr_ushort_scalar_write;
Tango::DevULong *attr_ulong_scalar_read;
Tango::DevULong attr_ulong_scalar_write;
Tango::DevBoolean *attr_boolean_spectrum_read;
Tango::DevBoolean attr_boolean_spectrum_write;
Tango::DevBoolean *attr_boolean_spectrum_ro_read;
Tango::DevDouble *attr_double_spectrum_read;
Tango::DevDouble attr_double_spectrum_write;
Tango::DevDouble *attr_double_spectrum_ro_read;
Tango::DevFloat *attr_float_spectrum_read;
Tango::DevFloat attr_float_spectrum_write;
Tango::DevFloat *attr_float_spectrum_ro_read;
Tango::DevLong64 *attr_long64_spectrum_ro_read;
Tango::DevLong *attr_long_spectrum_read;
Tango::DevLong attr_long_spectrum_write;
Tango::DevLong *attr_long_spectrum_ro_read;
Tango::DevShort *attr_short_spectrum_read;
Tango::DevShort attr_short_spectrum_write;
Tango::DevShort *attr_short_spectrum_ro_read;
Tango::DevString *attr_string_spectrum_read;
Tango::DevString attr_string_spectrum_write;
Tango::DevString *attr_string_spectrum_ro_read;
Tango::DevUChar *attr_uchar_spectrum_read;
Tango::DevUChar attr_uchar_spectrum_write;
Tango::DevUChar *attr_uchar_spectrum_ro_read;
Tango::DevULong64 *attr_ulong64_spectrum_ro_read;
Tango::DevULong *attr_ulong_spectrum_ro_read;
Tango::DevUShort *attr_ushort_spectrum_read;
Tango::DevUShort attr_ushort_spectrum_write;
Tango::DevUShort *attr_ushort_spectrum_ro_read;
Tango::DevDouble *attr_wave_read;
Tango::DevBoolean *attr_boolean_image_read;
Tango::DevBoolean attr_boolean_image_write;
Tango::DevBoolean *attr_boolean_image_ro_read;
Tango::DevDouble *attr_double_image_read;
Tango::DevDouble attr_double_image_write;
Tango::DevDouble *attr_double_image_ro_read;
Tango::DevFloat *attr_float_image_read;
Tango::DevFloat attr_float_image_write;
Tango::DevFloat *attr_float_image_ro_read;
Tango::DevLong64 *attr_long64_image_ro_read;
Tango::DevLong *attr_long_image_read;
Tango::DevLong attr_long_image_write;
Tango::DevLong *attr_long_image_ro_read;
Tango::DevShort *attr_short_image_read;
Tango::DevShort attr_short_image_write;
Tango::DevShort *attr_short_image_ro_read;
Tango::DevString *attr_string_image_read;
Tango::DevString attr_string_image_write;
Tango::DevString *attr_string_image_ro_read;
Tango::DevUChar *attr_uchar_image_read;
Tango::DevUChar attr_uchar_image_write;
Tango::DevUChar *attr_uchar_image_ro_read;
Tango::DevULong64 *attr_ulong64_image_ro_read;
Tango::DevULong *attr_ulong_image_ro_read;
Tango::DevUShort *attr_ushort_image_read;
Tango::DevUShort attr_ushort_image_write;
Tango::DevUShort *attr_ushort_image_ro_read;
//@}
/**
* @name Device properties
* Device properties member data.
*/
//@{
/**
* Multi-threaded implementation (true/false
*/
Tango::DevShort mthreaded_impl;
/**
* Data generation period (in ms
*/
Tango::DevLong sleep_period;
/**
* Size of the ushort_image_ro attribute
*/
Tango::DevLong uShort_image_ro_size;
//@}
/**@name Constructors
* Miscellaneous constructors */
//@{
/**
* Constructs a newly allocated Command object.
*
* @param cl Class.
* @param s Device Name
*/
TangoTest(Tango::DeviceClass *cl,string &s);
/**
* Constructs a newly allocated Command object.
*
* @param cl Class.
* @param s Device Name
*/
TangoTest(Tango::DeviceClass *cl,const char *s);
/**
* Constructs a newly allocated Command object.
*
* @param cl Class.
* @param s Device name
* @param d Device description.
*/
TangoTest(Tango::DeviceClass *cl,const char *s,const char *d);
//@}
/**@name Destructor
* Only one desctructor is defined for this class */
//@{
/**
* The object desctructor.
*/
~TangoTest();
//@}
/**@name Miscellaneous methods */
//@{
/**
* Initialize the device
*/
virtual void init_device();
/**
* Initialize the device
*/
virtual void delete_device();
/**
* Always executed method befor execution command method.
*/
virtual void always_executed_hook();
//@}
/**
* @name TangoTest methods prototypes
*/
//@{
/**
* Hardware acquisition for attributes.
*/
virtual void read_attr_hardware(vector<long> &attr_list);
/**
* Extract real attribute values for ampli acquisition result.
*/
virtual void read_ampli(Tango::Attribute &attr);
/**
* Write ampli attribute values to hardware.
*/
virtual void write_ampli(Tango::WAttribute &attr);
/**
* Extract real attribute values for boolean_scalar acquisition result.
*/
virtual void read_boolean_scalar(Tango::Attribute &attr);
/**
* Write boolean_scalar attribute values to hardware.
*/
virtual void write_boolean_scalar(Tango::WAttribute &attr);
/**
* Extract real attribute values for double_scalar acquisition result.
*/
virtual void read_double_scalar(Tango::Attribute &attr);
/**
* Write double_scalar attribute values to hardware.
*/
virtual void write_double_scalar(Tango::WAttribute &attr);
/**
* Extract real attribute values for double_scalar_rww acquisition result.
*/
virtual void read_double_scalar_rww(Tango::Attribute &attr);
/**
* Extract real attribute values for double_scalar_w acquisition result.
*/
virtual void read_double_scalar_w(Tango::Attribute &attr);
/**
* Write double_scalar_w attribute values to hardware.
*/
virtual void write_double_scalar_w(Tango::WAttribute &attr);
/**
* Extract real attribute values for float_scalar acquisition result.
*/
virtual void read_float_scalar(Tango::Attribute &attr);
/**
* Write float_scalar attribute values to hardware.
*/
virtual void write_float_scalar(Tango::WAttribute &attr);
/**
* Extract real attribute values for long64_scalar acquisition result.
*/
virtual void read_long64_scalar(Tango::Attribute &attr);
/**
* Write long64_scalar attribute values to hardware.
*/
virtual void write_long64_scalar(Tango::WAttribute &attr);
/**
* Extract real attribute values for long_scalar acquisition result.
*/
virtual void read_long_scalar(Tango::Attribute &attr);
/**
* Write long_scalar attribute values to hardware.
*/
virtual void write_long_scalar(Tango::WAttribute &attr);
/**
* Extract real attribute values for long_scalar_rww acquisition result.
*/
virtual void read_long_scalar_rww(Tango::Attribute &attr);
/**
* Extract real attribute values for long_scalar_w acquisition result.
*/
virtual void read_long_scalar_w(Tango::Attribute &attr);
/**
* Write long_scalar_w attribute values to hardware.
*/
virtual void write_long_scalar_w(Tango::WAttribute &attr);
/**
* Extract real attribute values for no_value acquisition result.
*/
virtual void read_no_value(Tango::Attribute &attr);
/**
* Extract real attribute values for short_scalar acquisition result.
*/
virtual void read_short_scalar(Tango::Attribute &attr);
/**
* Write short_scalar attribute values to hardware.
*/
virtual void write_short_scalar(Tango::WAttribute &attr);
/**
* Extract real attribute values for short_scalar_ro acquisition result.
*/
virtual void read_short_scalar_ro(Tango::Attribute &attr);
/**
* Extract real attribute values for short_scalar_rww acquisition result.
*/
virtual void read_short_scalar_rww(Tango::Attribute &attr);
/**
* Extract real attribute values for short_scalar_w acquisition result.
*/
virtual void read_short_scalar_w(Tango::Attribute &attr);
/**
* Write short_scalar_w attribute values to hardware.
*/
virtual void write_short_scalar_w(Tango::WAttribute &attr);
/**
* Extract real attribute values for string_scalar acquisition result.
*/
virtual void read_string_scalar(Tango::Attribute &attr);
/**
* Write string_scalar attribute values to hardware.
*/
virtual void write_string_scalar(Tango::WAttribute &attr);
/**
* Extract real attribute values for throw_exception acquisition result.
*/
virtual void read_throw_exception(Tango::Attribute &attr);
/**
* Extract real attribute values for uchar_scalar acquisition result.
*/
virtual void read_uchar_scalar(Tango::Attribute &attr);
/**
* Write uchar_scalar attribute values to hardware.
*/
virtual void write_uchar_scalar(Tango::WAttribute &attr);
/**
* Extract real attribute values for ulong64_scalar acquisition result.
*/
virtual void read_ulong64_scalar(Tango::Attribute &attr);
/**
* Write ulong64_scalar attribute values to hardware.
*/
virtual void write_ulong64_scalar(Tango::WAttribute &attr);
/**
* Extract real attribute values for ushort_scalar acquisition result.
*/
virtual void read_ushort_scalar(Tango::Attribute &attr);
/**
* Write ushort_scalar attribute values to hardware.
*/
virtual void write_ushort_scalar(Tango::WAttribute &attr);
/**
* Extract real attribute values for ulong_scalar acquisition result.
*/
virtual void read_ulong_scalar(Tango::Attribute &attr);
/**
* Write ulong_scalar attribute values to hardware.
*/
virtual void write_ulong_scalar(Tango::WAttribute &attr);
/**
* Extract real attribute values for boolean_spectrum acquisition result.
*/
virtual void read_boolean_spectrum(Tango::Attribute &attr);
/**
* Write boolean_spectrum attribute values to hardware.
*/
virtual void write_boolean_spectrum(Tango::WAttribute &attr);
/**
* Extract real attribute values for boolean_spectrum_ro acquisition result.
*/
virtual void read_boolean_spectrum_ro(Tango::Attribute &attr);
/**
* Extract real attribute values for double_spectrum acquisition result.
*/
virtual void read_double_spectrum(Tango::Attribute &attr);
/**
* Write double_spectrum attribute values to hardware.
*/
virtual void write_double_spectrum(Tango::WAttribute &attr);
/**
* Extract real attribute values for double_spectrum_ro acquisition result.
*/
virtual void read_double_spectrum_ro(Tango::Attribute &attr);
/**
* Extract real attribute values for float_spectrum acquisition result.
*/
virtual void read_float_spectrum(Tango::Attribute &attr);
/**
* Write float_spectrum attribute values to hardware.
*/
virtual void write_float_spectrum(Tango::WAttribute &attr);
/**
* Extract real attribute values for float_spectrum_ro acquisition result.
*/
virtual void read_float_spectrum_ro(Tango::Attribute &attr);
/**
* Extract real attribute values for long64_spectrum_ro acquisition result.
*/
virtual void read_long64_spectrum_ro(Tango::Attribute &attr);
/**
* Extract real attribute values for long_spectrum acquisition result.
*/
virtual void read_long_spectrum(Tango::Attribute &attr);
/**
* Write long_spectrum attribute values to hardware.
*/
virtual void write_long_spectrum(Tango::WAttribute &attr);
/**
* Extract real attribute values for long_spectrum_ro acquisition result.
*/
virtual void read_long_spectrum_ro(Tango::Attribute &attr);
/**
* Extract real attribute values for short_spectrum acquisition result.
*/
virtual void read_short_spectrum(Tango::Attribute &attr);
/**
* Write short_spectrum attribute values to hardware.
*/
virtual void write_short_spectrum(Tango::WAttribute &attr);
/**
* Extract real attribute values for short_spectrum_ro acquisition result.
*/
virtual void read_short_spectrum_ro(Tango::Attribute &attr);
/**
* Extract real attribute values for string_spectrum acquisition result.
*/
virtual void read_string_spectrum(Tango::Attribute &attr);
/**
* Write string_spectrum attribute values to hardware.
*/
virtual void write_string_spectrum(Tango::WAttribute &attr);
/**
* Extract real attribute values for string_spectrum_ro acquisition result.
*/
virtual void read_string_spectrum_ro(Tango::Attribute &attr);
/**
* Extract real attribute values for uchar_spectrum acquisition result.
*/
virtual void read_uchar_spectrum(Tango::Attribute &attr);
/**
* Write uchar_spectrum attribute values to hardware.
*/
virtual void write_uchar_spectrum(Tango::WAttribute &attr);
/**
* Extract real attribute values for uchar_spectrum_ro acquisition result.
*/
virtual void read_uchar_spectrum_ro(Tango::Attribute &attr);
/**
* Extract real attribute values for ulong64_spectrum_ro acquisition result.
*/
virtual void read_ulong64_spectrum_ro(Tango::Attribute &attr);
/**
* Extract real attribute values for ulong_spectrum_ro acquisition result.
*/
virtual void read_ulong_spectrum_ro(Tango::Attribute &attr);
/**
* Extract real attribute values for ushort_spectrum acquisition result.
*/
virtual void read_ushort_spectrum(Tango::Attribute &attr);
/**
* Write ushort_spectrum attribute values to hardware.
*/
virtual void write_ushort_spectrum(Tango::WAttribute &attr);
/**
* Extract real attribute values for ushort_spectrum_ro acquisition result.
*/
virtual void read_ushort_spectrum_ro(Tango::Attribute &attr);
/**
* Extract real attribute values for wave acquisition result.
*/
virtual void read_wave(Tango::Attribute &attr);
/**
* Extract real attribute values for boolean_image acquisition result.
*/
virtual void read_boolean_image(Tango::Attribute &attr);
/**
* Write boolean_image attribute values to hardware.
*/
virtual void write_boolean_image(Tango::WAttribute &attr);
/**
* Extract real attribute values for boolean_image_ro acquisition result.
*/
virtual void read_boolean_image_ro(Tango::Attribute &attr);
/**
* Extract real attribute values for double_image acquisition result.
*/
virtual void read_double_image(Tango::Attribute &attr);
/**
* Write double_image attribute values to hardware.
*/
virtual void write_double_image(Tango::WAttribute &attr);
/**
* Extract real attribute values for double_image_ro acquisition result.
*/
virtual void read_double_image_ro(Tango::Attribute &attr);
/**
* Extract real attribute values for float_image acquisition result.
*/
virtual void read_float_image(Tango::Attribute &attr);
/**
* Write float_image attribute values to hardware.
*/
virtual void write_float_image(Tango::WAttribute &attr);
/**
* Extract real attribute values for float_image_ro acquisition result.
*/
virtual void read_float_image_ro(Tango::Attribute &attr);
/**
* Extract real attribute values for long64_image_ro acquisition result.
*/
virtual void read_long64_image_ro(Tango::Attribute &attr);
/**
* Extract real attribute values for long_image acquisition result.
*/
virtual void read_long_image(Tango::Attribute &attr);
/**
* Write long_image attribute values to hardware.
*/
virtual void write_long_image(Tango::WAttribute &attr);
/**
* Extract real attribute values for long_image_ro acquisition result.
*/
virtual void read_long_image_ro(Tango::Attribute &attr);
/**
* Extract real attribute values for short_image acquisition result.
*/
virtual void read_short_image(Tango::Attribute &attr);
/**
* Write short_image attribute values to hardware.
*/
virtual void write_short_image(Tango::WAttribute &attr);
/**
* Extract real attribute values for short_image_ro acquisition result.
*/
virtual void read_short_image_ro(Tango::Attribute &attr);
/**
* Extract real attribute values for string_image acquisition result.
*/
virtual void read_string_image(Tango::Attribute &attr);
/**
* Write string_image attribute values to hardware.
*/
virtual void write_string_image(Tango::WAttribute &attr);
/**
* Extract real attribute values for string_image_ro acquisition result.
*/
virtual void read_string_image_ro(Tango::Attribute &attr);
/**
* Extract real attribute values for uchar_image acquisition result.
*/
virtual void read_uchar_image(Tango::Attribute &attr);
/**
* Write uchar_image attribute values to hardware.
*/
virtual void write_uchar_image(Tango::WAttribute &attr);
/**
* Extract real attribute values for uchar_image_ro acquisition result.
*/
virtual void read_uchar_image_ro(Tango::Attribute &attr);
/**
* Extract real attribute values for ulong64_image_ro acquisition result.
*/
virtual void read_ulong64_image_ro(Tango::Attribute &attr);
/**
* Extract real attribute values for ulong_image_ro acquisition result.
*/
virtual void read_ulong_image_ro(Tango::Attribute &attr);
/**
* Extract real attribute values for ushort_image acquisition result.
*/
virtual void read_ushort_image(Tango::Attribute &attr);
/**
* Write ushort_image attribute values to hardware.
*/
virtual void write_ushort_image(Tango::WAttribute &attr);
/**
* Extract real attribute values for ushort_image_ro acquisition result.
*/
virtual void read_ushort_image_ro(Tango::Attribute &attr);
/**
* Read/Write allowed for ampli attribute.
*/
virtual bool is_ampli_allowed(Tango::AttReqType type);
/**
* Read/Write allowed for boolean_scalar attribute.
*/
virtual bool is_boolean_scalar_allowed(Tango::AttReqType type);
/**
* Read/Write allowed for double_scalar attribute.
*/
virtual bool is_double_scalar_allowed(Tango::AttReqType type);
/**
* Read/Write allowed for double_scalar_rww attribute.
*/
virtual bool is_double_scalar_rww_allowed(Tango::AttReqType type);
/**
* Read/Write allowed for double_scalar_w attribute.
*/
virtual bool is_double_scalar_w_allowed(Tango::AttReqType type);
/**
* Read/Write allowed for float_scalar attribute.
*/
virtual bool is_float_scalar_allowed(Tango::AttReqType type);
/**
* Read/Write allowed for long64_scalar attribute.
*/
virtual bool is_long64_scalar_allowed(Tango::AttReqType type);
/**
* Read/Write allowed for long_scalar attribute.
*/
virtual bool is_long_scalar_allowed(Tango::AttReqType type);
/**
* Read/Write allowed for long_scalar_rww attribute.
*/
virtual bool is_long_scalar_rww_allowed(Tango::AttReqType type);
/**
* Read/Write allowed for long_scalar_w attribute.
*/
virtual bool is_long_scalar_w_allowed(Tango::AttReqType type);
/**
* Read/Write allowed for no_value attribute.
*/
virtual bool is_no_value_allowed(Tango::AttReqType type);
/**
* Read/Write allowed for short_scalar attribute.
*/
virtual bool is_short_scalar_allowed(Tango::AttReqType type);
/**
* Read/Write allowed for short_scalar_ro attribute.
*/
virtual bool is_short_scalar_ro_allowed(Tango::AttReqType type);
/**
* Read/Write allowed for short_scalar_rww attribute.
*/
virtual bool is_short_scalar_rww_allowed(Tango::AttReqType type);
/**
* Read/Write allowed for short_scalar_w attribute.
*/
virtual bool is_short_scalar_w_allowed(Tango::AttReqType type);
/**
* Read/Write allowed for string_scalar attribute.
*/
virtual bool is_string_scalar_allowed(Tango::AttReqType type);
/**
* Read/Write allowed for throw_exception attribute.
*/
virtual bool is_throw_exception_allowed(Tango::AttReqType type);
/**
* Read/Write allowed for uchar_scalar attribute.
*/
virtual bool is_uchar_scalar_allowed(Tango::AttReqType type);
/**
* Read/Write allowed for ulong64_scalar attribute.
*/
virtual bool is_ulong64_scalar_allowed(Tango::AttReqType type);
/**
* Read/Write allowed for ushort_scalar attribute.
*/
virtual bool is_ushort_scalar_allowed(Tango::AttReqType type);
/**
* Read/Write allowed for ulong_scalar attribute.
*/
virtual bool is_ulong_scalar_allowed(Tango::AttReqType type);
/**
* Read/Write allowed for boolean_spectrum attribute.
*/
virtual bool is_boolean_spectrum_allowed(Tango::AttReqType type);
/**
* Read/Write allowed for boolean_spectrum_ro attribute.
*/
virtual bool is_boolean_spectrum_ro_allowed(Tango::AttReqType type);
/**
* Read/Write allowed for double_spectrum attribute.
*/
virtual bool is_double_spectrum_allowed(Tango::AttReqType type);
/**
* Read/Write allowed for double_spectrum_ro attribute.
*/
virtual bool is_double_spectrum_ro_allowed(Tango::AttReqType type);
/**
* Read/Write allowed for float_spectrum attribute.
*/
virtual bool is_float_spectrum_allowed(Tango::AttReqType type);
/**
* Read/Write allowed for float_spectrum_ro attribute.
*/
virtual bool is_float_spectrum_ro_allowed(Tango::AttReqType type);
/**
* Read/Write allowed for long64_spectrum_ro attribute.
*/
virtual bool is_long64_spectrum_ro_allowed(Tango::AttReqType type);
/**
* Read/Write allowed for long_spectrum attribute.
*/
virtual bool is_long_spectrum_allowed(Tango::AttReqType type);
/**
* Read/Write allowed for long_spectrum_ro attribute.
*/
virtual bool is_long_spectrum_ro_allowed(Tango::AttReqType type);
/**
* Read/Write allowed for short_spectrum attribute.
*/
virtual bool is_short_spectrum_allowed(Tango::AttReqType type);
/**
* Read/Write allowed for short_spectrum_ro attribute.
*/
virtual bool is_short_spectrum_ro_allowed(Tango::AttReqType type);
/**
* Read/Write allowed for string_spectrum attribute.
*/
virtual bool is_string_spectrum_allowed(Tango::AttReqType type);
/**
* Read/Write allowed for string_spectrum_ro attribute.
*/
virtual bool is_string_spectrum_ro_allowed(Tango::AttReqType type);
/**
* Read/Write allowed for uchar_spectrum attribute.
*/
virtual bool is_uchar_spectrum_allowed(Tango::AttReqType type);
/**
* Read/Write allowed for uchar_spectrum_ro attribute.
*/
virtual bool is_uchar_spectrum_ro_allowed(Tango::AttReqType type);
/**
* Read/Write allowed for ulong64_spectrum_ro attribute.
*/
virtual bool is_ulong64_spectrum_ro_allowed(Tango::AttReqType type);
/**
* Read/Write allowed for ulong_spectrum_ro attribute.
*/
virtual bool is_ulong_spectrum_ro_allowed(Tango::AttReqType type);
/**
* Read/Write allowed for ushort_spectrum attribute.
*/
virtual bool is_ushort_spectrum_allowed(Tango::AttReqType type);
/**
* Read/Write allowed for ushort_spectrum_ro attribute.
*/
virtual bool is_ushort_spectrum_ro_allowed(Tango::AttReqType type);
/**
* Read/Write allowed for wave attribute.
*/
virtual bool is_wave_allowed(Tango::AttReqType type);
/**
* Read/Write allowed for boolean_image attribute.
*/
virtual bool is_boolean_image_allowed(Tango::AttReqType type);
/**
* Read/Write allowed for boolean_image_ro attribute.
*/
virtual bool is_boolean_image_ro_allowed(Tango::AttReqType type);
/**
* Read/Write allowed for double_image attribute.
*/
virtual bool is_double_image_allowed(Tango::AttReqType type);
/**
* Read/Write allowed for double_image_ro attribute.
*/
virtual bool is_double_image_ro_allowed(Tango::AttReqType type);
/**
* Read/Write allowed for float_image attribute.
*/
virtual bool is_float_image_allowed(Tango::AttReqType type);
/**
* Read/Write allowed for float_image_ro attribute.
*/
virtual bool is_float_image_ro_allowed(Tango::AttReqType type);
/**
* Read/Write allowed for long64_image_ro attribute.
*/
virtual bool is_long64_image_ro_allowed(Tango::AttReqType type);
/**
* Read/Write allowed for long_image attribute.
*/
virtual bool is_long_image_allowed(Tango::AttReqType type);
/**
* Read/Write allowed for long_image_ro attribute.
*/
virtual bool is_long_image_ro_allowed(Tango::AttReqType type);
/**
* Read/Write allowed for short_image attribute.
*/
virtual bool is_short_image_allowed(Tango::AttReqType type);
/**
* Read/Write allowed for short_image_ro attribute.
*/
virtual bool is_short_image_ro_allowed(Tango::AttReqType type);
/**
* Read/Write allowed for string_image attribute.
*/
virtual bool is_string_image_allowed(Tango::AttReqType type);
/**
* Read/Write allowed for string_image_ro attribute.
*/
virtual bool is_string_image_ro_allowed(Tango::AttReqType type);
/**
* Read/Write allowed for uchar_image attribute.
*/
virtual bool is_uchar_image_allowed(Tango::AttReqType type);
/**
* Read/Write allowed for uchar_image_ro attribute.
*/
virtual bool is_uchar_image_ro_allowed(Tango::AttReqType type);
/**
* Read/Write allowed for ulong64_image_ro attribute.
*/
virtual bool is_ulong64_image_ro_allowed(Tango::AttReqType type);
/**
* Read/Write allowed for ulong_image_ro attribute.
*/
virtual bool is_ulong_image_ro_allowed(Tango::AttReqType type);
/**
* Read/Write allowed for ushort_image attribute.
*/
virtual bool is_ushort_image_allowed(Tango::AttReqType type);
/**
* Read/Write allowed for ushort_image_ro attribute.
*/
virtual bool is_ushort_image_ro_allowed(Tango::AttReqType type);
/**
* Execution allowed for CrashFromDevelopperThread command.
*/
virtual bool is_CrashFromDevelopperThread_allowed(const CORBA::Any &any);
/**
* Execution allowed for CrashFromOmniThread command.
*/
virtual bool is_CrashFromOmniThread_allowed(const CORBA::Any &any);
/**
* Execution allowed for DevBoolean command.
*/
virtual bool is_DevBoolean_allowed(const CORBA::Any &any);
/**
* Execution allowed for DevDouble command.
*/
virtual bool is_DevDouble_allowed(const CORBA::Any &any);
/**
* Execution allowed for DevFloat command.
*/
virtual bool is_DevFloat_allowed(const CORBA::Any &any);
/**
* Execution allowed for DevLong command.
*/
virtual bool is_DevLong_allowed(const CORBA::Any &any);
/**
* Execution allowed for DevLong64 command.
*/
virtual bool is_DevLong64_allowed(const CORBA::Any &any);
/**
* Execution allowed for DevShort command.
*/
virtual bool is_DevShort_allowed(const CORBA::Any &any);
/**
* Execution allowed for DevString command.
*/
virtual bool is_DevString_allowed(const CORBA::Any &any);
/**
* Execution allowed for DevULong command.
*/
virtual bool is_DevULong_allowed(const CORBA::Any &any);
/**
* Execution allowed for DevULong64 command.
*/
virtual bool is_DevULong64_allowed(const CORBA::Any &any);
/**
* Execution allowed for DevUShort command.
*/
virtual bool is_DevUShort_allowed(const CORBA::Any &any);
/**
* Execution allowed for DevVarCharArray command.
*/
virtual bool is_DevVarCharArray_allowed(const CORBA::Any &any);
/**
* Execution allowed for DevVarDoubleArray command.
*/
virtual bool is_DevVarDoubleArray_allowed(const CORBA::Any &any);
/**
* Execution allowed for DevVarDoubleStringArray command.
*/
virtual bool is_DevVarDoubleStringArray_allowed(const CORBA::Any &any);
/**
* Execution allowed for DevVarFloatArray command.
*/
virtual bool is_DevVarFloatArray_allowed(const CORBA::Any &any);
/**
* Execution allowed for DevVarLong64Array command.
*/
virtual bool is_DevVarLong64Array_allowed(const CORBA::Any &any);
/**
* Execution allowed for DevVarLongArray command.
*/
virtual bool is_DevVarLongArray_allowed(const CORBA::Any &any);
/**
* Execution allowed for DevVarLongStringArray command.
*/
virtual bool is_DevVarLongStringArray_allowed(const CORBA::Any &any);
/**
* Execution allowed for DevVarShortArray command.
*/
virtual bool is_DevVarShortArray_allowed(const CORBA::Any &any);
/**
* Execution allowed for DevVarStringArray command.
*/
virtual bool is_DevVarStringArray_allowed(const CORBA::Any &any);
/**
* Execution allowed for DevVarULong64Array command.
*/
virtual bool is_DevVarULong64Array_allowed(const CORBA::Any &any);
/**
* Execution allowed for DevVarULongArray command.
*/
virtual bool is_DevVarULongArray_allowed(const CORBA::Any &any);
/**
* Execution allowed for DevVarUShortArray command.
*/
virtual bool is_DevVarUShortArray_allowed(const CORBA::Any &any);
/**
* Execution allowed for DevVoid command.
*/
virtual bool is_DevVoid_allowed(const CORBA::Any &any);
/**
* Execution allowed for DumpExecutionState command.
*/
virtual bool is_DumpExecutionState_allowed(const CORBA::Any &any);
/**
* Execution allowed for SwitchStates command.
*/
virtual bool is_SwitchStates_allowed(const CORBA::Any &any);
/**
* Crashes the device!
* @exception DevFailed
*/
void crash_from_developper_thread();
/**
* Crashes the device!
* @exception DevFailed
*/
void crash_from_omni_thread();
/**
* A DevBoolean comand example
* @param argin Any boolean value
* @return Echo of the argin value
* @exception DevFailed
*/
Tango::DevBoolean dev_boolean(Tango::DevBoolean);
/**
* A DevDouble command example
* @param argin Any DevDouble value
* @return Echo of the argin value
* @exception DevFailed
*/
Tango::DevDouble dev_double(Tango::DevDouble);
/**
* A DevFloat command example
* @param argin Any DevFloat value
* @return Echo of the argin value
* @exception DevFailed
*/
Tango::DevFloat dev_float(Tango::DevFloat);
/**
* A DevLong command example
* @param argin Any DevLong value
* @return Echo of the argin value
* @exception DevFailed
*/
Tango::DevLong dev_long(Tango::DevLong);
/**
* A DevLong command example
* @param argin Any DevLong64 value
* @return Echo of the argin value
* @exception DevFailed
*/
Tango::DevLong64 dev_long64(Tango::DevLong64);
/**
* A DevShort command example
* @param argin Any DevShort value
* @return Echo of the argin value
* @exception DevFailed
*/
Tango::DevShort dev_short(Tango::DevShort);
/**
* none
* @param argin -
* @return -
* @exception DevFailed
*/
Tango::DevString dev_string(Tango::DevString);
/**
* A DevULong command example
* @param argin Any DevULong
* @return Echo of the argin value
* @exception DevFailed
*/
Tango::DevULong dev_ulong(Tango::DevULong);
/**
* A DevULong64 command example
* @param argin Any DevULong64 value
* @return Echo of the argin value
* @exception DevFailed
*/
Tango::DevULong64 dev_ulong64(Tango::DevULong64);
/**
* A DevUShort command example
* @param argin Any DevUShort value
* @return Echo of the argin value
* @exception DevFailed
*/
Tango::DevUShort dev_ushort(Tango::DevUShort);
/**
* none
* @param argin -
* @return -
* @exception DevFailed
*/
Tango::DevVarCharArray *dev_var_char_array(const Tango::DevVarCharArray *);
/**
* none
* @param argin -
* @return -
* @exception DevFailed
*/
Tango::DevVarDoubleArray *dev_var_double_array(const Tango::DevVarDoubleArray *);
/**
* none
* @param argin -
* @return -
* @exception DevFailed
*/
Tango::DevVarDoubleStringArray *dev_var_double_string_array(const Tango::DevVarDoubleStringArray *);
/**
* none
* @param argin -
* @return -
* @exception DevFailed
*/
Tango::DevVarFloatArray *dev_var_float_array(const Tango::DevVarFloatArray *);
/**
*
* @param argin
* @return
* @exception DevFailed
*/
Tango::DevVarLong64Array *dev_var_long64_array(const Tango::DevVarLong64Array *);
/**
* none
* @param argin -
* @return -
* @exception DevFailed
*/
Tango::DevVarLongArray *dev_var_long_array(const Tango::DevVarLongArray *);
/**
* none
* @param argin -
* @return -
* @exception DevFailed
*/
Tango::DevVarLongStringArray *dev_var_long_string_array(const Tango::DevVarLongStringArray *);
/**
* none
* @param argin -
* @return -
* @exception DevFailed
*/
Tango::DevVarShortArray *dev_var_short_array(const Tango::DevVarShortArray *);
/**
* none
* @param argin -
* @return -
* @exception DevFailed
*/
Tango::DevVarStringArray *dev_var_string_array(const Tango::DevVarStringArray *);
/**
*
* @param argin
* @return
* @exception DevFailed
*/
Tango::DevVarULong64Array *dev_var_ulong64_array(const Tango::DevVarULong64Array *);
/**
* none
* @param argin -
* @return -
* @exception DevFailed
*/
Tango::DevVarULongArray *dev_var_ulong_array(const Tango::DevVarULongArray *);
/**
* none
* @param argin -
* @return -
* @exception DevFailed
*/
Tango::DevVarUShortArray *dev_var_ushort_array(const Tango::DevVarUShortArray *);
/**
* A DevVoid comand example
* @exception DevFailed
*/
void dev_void();
/**
* Forces mini dump generation
* @exception DevFailed
*/
void dump_execution_state();
/**
* This command changes the device state from RUNNING to FAULT or from FAULT to RUNNING
* @exception DevFailed
*/
void switch_states();
/**
* Read the device properties from database
*/
void get_device_property();
//@}
// Here is the end of the automatic code generation part
//-------------------------------------------------------------
/**
* Generates dummy attribute values
*/
void gen_data (void);
protected :
// Add your own data members here
//-----------------------------------------
//- A mutex to protect the device against race conditions
omni_mutex lock;
// The data generator (thread)
DataGenerator * data_gen;
long dimShortSpectrum;
long dimLongSpectrum;
long dimUcharSpectrum;
long dimUshortSpectrum;
long dimDoubleSpectrum;
long dimFloatSpectrum;
long dimBooleanSpectrum;
long dimStringSpectrum;
long dimXShortImage;
long dimXLongImage;
long dimXFloatImage;
long dimXUcharImage;
long dimXUshortImage;
long dimXDoubleImage;
long dimXBooleanImage;
long dimXStringImage;
long dimYShortImage;
long dimYLongImage;
long dimYFloatImage;
long dimYUcharImage;
long dimYUshortImage;
long dimYDoubleImage;
long dimYBooleanImage;
long dimYStringImage;
};
} // namespace
#endif // _TANGOTEST_H
|