E UROPEAN S YNCHROTRON R ADIATION F ACILITY ##### INSTALLATION EUROPEENNE DE RAYONNEMENT SYNCHROTRON |

Main Page Namespace List Alphabetical List Compound List File List Namespace Members Compound Members File Members

# TangoTestClass.h

Go to the documentation of this file.

    00001 //=============================================================================
    00002 //
    00003 // file :         TangoTestClass.h
    00004 //
    00005 // description :  Include for the TangoTestClass root class.
    00006 //                This class is represents the singleton class for
    00007 //                the TangoTest device class.
    00008 //                It contains all properties and methods which the
    00009 //                TangoTest requires only once e.g. the commands.
    00010 //
    00011 // project :      TANGO Device Server
    00012 //
    00013 // $Author$
    00014 //
    00015 // $Revision$
    00016 //
    00017 // $Log$
    00018 //
    00019 // copyleft :     European Synchrotron Radiation Facility
    00020 //                BP 220, Grenoble 38043
    00021 //                FRANCE
    00022 //
    00023 //=============================================================================
    00024 //
    00025 //              This file is generated by POGO
    00026 //      (Program Obviously used to Generate tango Object)
    00027 //
    00028 //         (c) - Software Engineering Group - ESRF
    00029 //=============================================================================
    00030
    00031 #ifndef _TANGOTESTCLASS_H
    00032 #define _TANGOTESTCLASS_H
    00033
    00034 #include <tango.h>
    00035
    00036
    00037 namespace TangoTest
    00038 {
    00039 //
    00040 // Define classes for commands
    00041 //
    00042 class DevVarDoubleStringArrayCmd : public Tango::Command
    00043 {
    00044 public:
    00045         DevVarDoubleStringArrayCmd(const char *,Tango::CmdArgType, Tango::CmdArgType,const char *,const char *, Tango::DispLevel);
    00046         DevVarDoubleStringArrayCmd(const char *,Tango::CmdArgType, Tango::CmdArgType);
    00047         ~DevVarDoubleStringArrayCmd() {};
    00048
    00049         virtual bool is_allowed (Tango::DeviceImpl *, const CORBA::Any &);
    00050         virtual CORBA::Any *execute (Tango::DeviceImpl *, const CORBA::Any &);
    00051 };
    00052
    00053
    00054 class DevVarLongStringArrayCmd : public Tango::Command
    00055 {
    00056 public:
    00057         DevVarLongStringArrayCmd(const char *,Tango::CmdArgType, Tango::CmdArgType,const char *,const char *, Tango::DispLevel);
    00058         DevVarLongStringArrayCmd(const char *,Tango::CmdArgType, Tango::CmdArgType);
    00059         ~DevVarLongStringArrayCmd() {};
    00060
    00061         virtual bool is_allowed (Tango::DeviceImpl *, const CORBA::Any &);
    00062         virtual CORBA::Any *execute (Tango::DeviceImpl *, const CORBA::Any &);
    00063 };
    00064
    00065
    00066 class DevVarStringArrayCmd : public Tango::Command
    00067 {
    00068 public:
    00069         DevVarStringArrayCmd(const char *,Tango::CmdArgType, Tango::CmdArgType,const char *,const char *, Tango::DispLevel);
    00070         DevVarStringArrayCmd(const char *,Tango::CmdArgType, Tango::CmdArgType);
    00071         ~DevVarStringArrayCmd() {};
    00072
    00073         virtual bool is_allowed (Tango::DeviceImpl *, const CORBA::Any &);
    00074         virtual CORBA::Any *execute (Tango::DeviceImpl *, const CORBA::Any &);
    00075 };
    00076
    00077
    00078 class DevVarDoubleArrayCmd : public Tango::Command
    00079 {
    00080 public:
    00081         DevVarDoubleArrayCmd(const char *,Tango::CmdArgType, Tango::CmdArgType,const char *,const char *, Tango::DispLevel);
    00082         DevVarDoubleArrayCmd(const char *,Tango::CmdArgType, Tango::CmdArgType);
    00083         ~DevVarDoubleArrayCmd() {};
    00084
    00085         virtual bool is_allowed (Tango::DeviceImpl *, const CORBA::Any &);
    00086         virtual CORBA::Any *execute (Tango::DeviceImpl *, const CORBA::Any &);
    00087 };
    00088
    00089
    00090 class DevVarFloatArrayCmd : public Tango::Command
    00091 {
    00092 public:
    00093         DevVarFloatArrayCmd(const char *,Tango::CmdArgType, Tango::CmdArgType,const char *,const char *, Tango::DispLevel);
    00094         DevVarFloatArrayCmd(const char *,Tango::CmdArgType, Tango::CmdArgType);
    00095         ~DevVarFloatArrayCmd() {};
    00096
    00097         virtual bool is_allowed (Tango::DeviceImpl *, const CORBA::Any &);
    00098         virtual CORBA::Any *execute (Tango::DeviceImpl *, const CORBA::Any &);
    00099 };
    00100
    00101
    00102 class DevVarULongArrayCmd : public Tango::Command
    00103 {
    00104 public:
    00105         DevVarULongArrayCmd(const char *,Tango::CmdArgType, Tango::CmdArgType,const char *,const char *, Tango::DispLevel);
    00106         DevVarULongArrayCmd(const char *,Tango::CmdArgType, Tango::CmdArgType);
    00107         ~DevVarULongArrayCmd() {};
    00108
    00109         virtual bool is_allowed (Tango::DeviceImpl *, const CORBA::Any &);
    00110         virtual CORBA::Any *execute (Tango::DeviceImpl *, const CORBA::Any &);
    00111 };
    00112
    00113
    00114 class DevVarLongArrayCmd : public Tango::Command
    00115 {
    00116 public:
    00117         DevVarLongArrayCmd(const char *,Tango::CmdArgType, Tango::CmdArgType,const char *,const char *, Tango::DispLevel);
    00118         DevVarLongArrayCmd(const char *,Tango::CmdArgType, Tango::CmdArgType);
    00119         ~DevVarLongArrayCmd() {};
    00120
    00121         virtual bool is_allowed (Tango::DeviceImpl *, const CORBA::Any &);
    00122         virtual CORBA::Any *execute (Tango::DeviceImpl *, const CORBA::Any &);
    00123 };
    00124
    00125
    00126 class DevVarUShortArrayCmd : public Tango::Command
    00127 {
    00128 public:
    00129         DevVarUShortArrayCmd(const char *,Tango::CmdArgType, Tango::CmdArgType,const char *,const char *, Tango::DispLevel);
    00130         DevVarUShortArrayCmd(const char *,Tango::CmdArgType, Tango::CmdArgType);
    00131         ~DevVarUShortArrayCmd() {};
    00132
    00133         virtual bool is_allowed (Tango::DeviceImpl *, const CORBA::Any &);
    00134         virtual CORBA::Any *execute (Tango::DeviceImpl *, const CORBA::Any &);
    00135 };
    00136
    00137
    00138 class DevVarShortArrayCmd : public Tango::Command
    00139 {
    00140 public:
    00141         DevVarShortArrayCmd(const char *,Tango::CmdArgType, Tango::CmdArgType,const char *,const char *, Tango::DispLevel);
    00142         DevVarShortArrayCmd(const char *,Tango::CmdArgType, Tango::CmdArgType);
    00143         ~DevVarShortArrayCmd() {};
    00144
    00145         virtual bool is_allowed (Tango::DeviceImpl *, const CORBA::Any &);
    00146         virtual CORBA::Any *execute (Tango::DeviceImpl *, const CORBA::Any &);
    00147 };
    00148
    00149
    00150 class DevVarCharArrayCmd : public Tango::Command
    00151 {
    00152 public:
    00153         DevVarCharArrayCmd(const char *,Tango::CmdArgType, Tango::CmdArgType,const char *,const char *, Tango::DispLevel);
    00154         DevVarCharArrayCmd(const char *,Tango::CmdArgType, Tango::CmdArgType);
    00155         ~DevVarCharArrayCmd() {};
    00156
    00157         virtual bool is_allowed (Tango::DeviceImpl *, const CORBA::Any &);
    00158         virtual CORBA::Any *execute (Tango::DeviceImpl *, const CORBA::Any &);
    00159 };
    00160
    00161
    00162 class DevStringCmd : public Tango::Command
    00163 {
    00164 public:
    00165         DevStringCmd(const char *,Tango::CmdArgType, Tango::CmdArgType,const char *,const char *, Tango::DispLevel);
    00166         DevStringCmd(const char *,Tango::CmdArgType, Tango::CmdArgType);
    00167         ~DevStringCmd() {};
    00168
    00169         virtual bool is_allowed (Tango::DeviceImpl *, const CORBA::Any &);
    00170         virtual CORBA::Any *execute (Tango::DeviceImpl *, const CORBA::Any &);
    00171 };
    00172
    00173
    00174 class DevDoubleCmd : public Tango::Command
    00175 {
    00176 public:
    00177         DevDoubleCmd(const char *,Tango::CmdArgType, Tango::CmdArgType,const char *,const char *, Tango::DispLevel);
    00178         DevDoubleCmd(const char *,Tango::CmdArgType, Tango::CmdArgType);
    00179         ~DevDoubleCmd() {};
    00180
    00181         virtual bool is_allowed (Tango::DeviceImpl *, const CORBA::Any &);
    00182         virtual CORBA::Any *execute (Tango::DeviceImpl *, const CORBA::Any &);
    00183 };
    00184
    00185
    00186 class DevFloatCmd : public Tango::Command
    00187 {
    00188 public:
    00189         DevFloatCmd(const char *,Tango::CmdArgType, Tango::CmdArgType,const char *,const char *, Tango::DispLevel);
    00190         DevFloatCmd(const char *,Tango::CmdArgType, Tango::CmdArgType);
    00191         ~DevFloatCmd() {};
    00192
    00193         virtual bool is_allowed (Tango::DeviceImpl *, const CORBA::Any &);
    00194         virtual CORBA::Any *execute (Tango::DeviceImpl *, const CORBA::Any &);
    00195 };
    00196
    00197
    00198 class DevULongCmd : public Tango::Command
    00199 {
    00200 public:
    00201         DevULongCmd(const char *,Tango::CmdArgType, Tango::CmdArgType,const char *,const char *, Tango::DispLevel);
    00202         DevULongCmd(const char *,Tango::CmdArgType, Tango::CmdArgType);
    00203         ~DevULongCmd() {};
    00204
    00205         virtual bool is_allowed (Tango::DeviceImpl *, const CORBA::Any &);
    00206         virtual CORBA::Any *execute (Tango::DeviceImpl *, const CORBA::Any &);
    00207 };
    00208
    00209
    00210 class DevLongCmd : public Tango::Command
    00211 {
    00212 public:
    00213         DevLongCmd(const char *,Tango::CmdArgType, Tango::CmdArgType,const char *,const char *, Tango::DispLevel);
    00214         DevLongCmd(const char *,Tango::CmdArgType, Tango::CmdArgType);
    00215         ~DevLongCmd() {};
    00216
    00217         virtual bool is_allowed (Tango::DeviceImpl *, const CORBA::Any &);
    00218         virtual CORBA::Any *execute (Tango::DeviceImpl *, const CORBA::Any &);
    00219 };
    00220
    00221
    00222 class DevUShortCmd : public Tango::Command
    00223 {
    00224 public:
    00225         DevUShortCmd(const char *,Tango::CmdArgType, Tango::CmdArgType,const char *,const char *, Tango::DispLevel);
    00226         DevUShortCmd(const char *,Tango::CmdArgType, Tango::CmdArgType);
    00227         ~DevUShortCmd() {};
    00228
    00229         virtual bool is_allowed (Tango::DeviceImpl *, const CORBA::Any &);
    00230         virtual CORBA::Any *execute (Tango::DeviceImpl *, const CORBA::Any &);
    00231 };
    00232
    00233
    00234 class DevShortCmd : public Tango::Command
    00235 {
    00236 public:
    00237         DevShortCmd(const char *,Tango::CmdArgType, Tango::CmdArgType,const char *,const char *, Tango::DispLevel);
    00238         DevShortCmd(const char *,Tango::CmdArgType, Tango::CmdArgType);
    00239         ~DevShortCmd() {};
    00240
    00241         virtual bool is_allowed (Tango::DeviceImpl *, const CORBA::Any &);
    00242         virtual CORBA::Any *execute (Tango::DeviceImpl *, const CORBA::Any &);
    00243 };
    00244
    00245
    00246 class DevBooleanCmd : public Tango::Command
    00247 {
    00248 public:
    00249         DevBooleanCmd(const char *,Tango::CmdArgType, Tango::CmdArgType,const char *,const char *, Tango::DispLevel);
    00250         DevBooleanCmd(const char *,Tango::CmdArgType, Tango::CmdArgType);
    00251         ~DevBooleanCmd() {};
    00252
    00253         virtual bool is_allowed (Tango::DeviceImpl *, const CORBA::Any &);
    00254         virtual CORBA::Any *execute (Tango::DeviceImpl *, const CORBA::Any &);
    00255 };
    00256
    00257
    00258 class DevVoidCmd : public Tango::Command
    00259 {
    00260 public:
    00261         DevVoidCmd(const char *,Tango::CmdArgType, Tango::CmdArgType,const char *,const char *, Tango::DispLevel);
    00262         DevVoidCmd(const char *,Tango::CmdArgType, Tango::CmdArgType);
    00263         ~DevVoidCmd() {};
    00264
    00265         virtual bool is_allowed (Tango::DeviceImpl *, const CORBA::Any &);
    00266         virtual CORBA::Any *execute (Tango::DeviceImpl *, const CORBA::Any &);
    00267 };
    00268
    00269
    00270
    00271 //
    00272 // The TangoTestClass singleton definition
    00273 //
    00274
    00275 class TangoTestClass : public Tango::DeviceClass
    00276 {
    00277 public:
    00278
    00279 //      add your own data members here
    00280 //------------------------------------
    00281
    00282 public:
    00283
    00284 //      Method prototypes
    00285         static TangoTestClass *init(const char *);
    00286         static TangoTestClass *instance();
    00287         ~TangoTestClass();
    00288
    00289 protected:
    00290         TangoTestClass(string &);
    00291         static TangoTestClass *_instance;
    00292         void command_factory();
    00293         void attribute_factory(vector<Tango::Attr *> &);
    00294         void write_class_property();
    00295
    00296 private:
    00297         void device_factory(const Tango::DevVarStringArray *);
    00298 };
    00299
    00300
    00301 }       //      namespace TangoTest
    00302
    00303 #endif // _TANGOTESTCLASS_H

Tango Device Server User's Guide

### (c) ESRF - Software Engineering Group