EUROPEAN SYNCHROTRON RADIATION FACILITY
INSTALLATION EUROPEENNE DE RAYONNEMENT SYNCHROTRON
ESRF Logo
Main Page   Namespace List   Alphabetical List   Compound List   File List   Compound Members   File Members  

TextTalkerClass.h

Go to the documentation of this file.
00001 //=============================================================================
00002 //
00003 // file :         TextTalkerClass.h
00004 //
00005 // description :  Include for the TextTalkerClass root class.
00006 //                This class is represents the singleton class for
00007 //                the TextTalker device class.
00008 //                It contains all properties and methods which the 
00009 //                TextTalker requires only once e.g. the commands.
00010 //                      
00011 // project :      TextTalker TANGO Device Server
00012 //
00013 // $Author: bourtemb $
00014 //
00015 // $Revision: 1.1 $
00016 //
00017 // $Log: TextTalkerClass_8h-source.html,v $
00017 // Revision 1.1  2005/06/30 15:24:54  bourtemb
00017 // Initial revision
00017 //
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 _TEXTTALKERCLASS_H
00032 #define _TEXTTALKERCLASS_H
00033 
00034 #include <tango.h>
00035 
00036 
00037 namespace TextTalker
00038 {
00039 //
00040 // Define classes for commands
00041 //
00042 class ReadWelcomeTextCmd : public Tango::Command
00043 {
00044 public:
00045         ReadWelcomeTextCmd(const char *,Tango::CmdArgType, Tango::CmdArgType,const char *,const char *, Tango::DispLevel);
00046         ReadWelcomeTextCmd(const char *,Tango::CmdArgType, Tango::CmdArgType);
00047         ~ReadWelcomeTextCmd() {};
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 WriteWelcomeTextCmd : public Tango::Command
00055 {
00056 public:
00057         WriteWelcomeTextCmd(const char *,Tango::CmdArgType, Tango::CmdArgType,const char *,const char *, Tango::DispLevel);
00058         WriteWelcomeTextCmd(const char *,Tango::CmdArgType, Tango::CmdArgType);
00059         ~WriteWelcomeTextCmd() {};
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 ResumeCmd : public Tango::Command
00067 {
00068 public:
00069         ResumeCmd(const char *,Tango::CmdArgType, Tango::CmdArgType,const char *,const char *, Tango::DispLevel);
00070         ResumeCmd(const char *,Tango::CmdArgType, Tango::CmdArgType);
00071         ~ResumeCmd() {};
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 PauseCmd : public Tango::Command
00079 {
00080 public:
00081         PauseCmd(const char *,Tango::CmdArgType, Tango::CmdArgType,const char *,const char *, Tango::DispLevel);
00082         PauseCmd(const char *,Tango::CmdArgType, Tango::CmdArgType);
00083         ~PauseCmd() {};
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 DevRunCmd : public Tango::Command
00091 {
00092 public:
00093         DevRunCmd(const char *,Tango::CmdArgType, Tango::CmdArgType,const char *,const char *, Tango::DispLevel);
00094         DevRunCmd(const char *,Tango::CmdArgType, Tango::CmdArgType);
00095         ~DevRunCmd() {};
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 DevReadParamCmd : public Tango::Command
00103 {
00104 public:
00105         DevReadParamCmd(const char *,Tango::CmdArgType, Tango::CmdArgType,const char *,const char *, Tango::DispLevel);
00106         DevReadParamCmd(const char *,Tango::CmdArgType, Tango::CmdArgType);
00107         ~DevReadParamCmd() {};
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 DevClearCmd : public Tango::Command
00115 {
00116 public:
00117         DevClearCmd(const char *,Tango::CmdArgType, Tango::CmdArgType,const char *,const char *, Tango::DispLevel);
00118         DevClearCmd(const char *,Tango::CmdArgType, Tango::CmdArgType);
00119         ~DevClearCmd() {};
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 DevReadCmd : public Tango::Command
00127 {
00128 public:
00129         DevReadCmd(const char *,Tango::CmdArgType, Tango::CmdArgType,const char *,const char *, Tango::DispLevel);
00130         DevReadCmd(const char *,Tango::CmdArgType, Tango::CmdArgType);
00131         ~DevReadCmd() {};
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 DevStopCmd : public Tango::Command
00139 {
00140 public:
00141         DevStopCmd(const char *,Tango::CmdArgType, Tango::CmdArgType,const char *,const char *, Tango::DispLevel);
00142         DevStopCmd(const char *,Tango::CmdArgType, Tango::CmdArgType);
00143         ~DevStopCmd() {};
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 DevSetParamCmd : public Tango::Command
00151 {
00152 public:
00153         DevSetParamCmd(const char *,Tango::CmdArgType, Tango::CmdArgType,const char *,const char *, Tango::DispLevel);
00154         DevSetParamCmd(const char *,Tango::CmdArgType, Tango::CmdArgType);
00155         ~DevSetParamCmd() {};
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 DevTalkCmd : public Tango::Command
00163 {
00164 public:
00165         DevTalkCmd(const char *,Tango::CmdArgType, Tango::CmdArgType,const char *,const char *, Tango::DispLevel);
00166         DevTalkCmd(const char *,Tango::CmdArgType, Tango::CmdArgType);
00167         ~DevTalkCmd() {};
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 DevWriteCmd : public Tango::Command
00175 {
00176 public:
00177         DevWriteCmd(const char *,Tango::CmdArgType, Tango::CmdArgType,const char *,const char *, Tango::DispLevel);
00178         DevWriteCmd(const char *,Tango::CmdArgType, Tango::CmdArgType);
00179         ~DevWriteCmd() {};
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 
00187 //
00188 // The TextTalkerClass singleton definition
00189 //
00190 
00191 class TextTalkerClass : public Tango::DeviceClass
00192 {
00193 public:
00194 
00195 //      add your own data members here
00196 //------------------------------------
00197 
00198 public:
00199 
00200 //      Method prototypes
00201         static TextTalkerClass *init(const char *);
00202         static TextTalkerClass *instance();
00203         ~TextTalkerClass();
00204         
00205 protected:
00206         TextTalkerClass(string &);
00207         static TextTalkerClass *_instance;
00208         void command_factory();
00209         void attribute_factory(vector<Tango::Attr *> &);
00210         void write_class_property();
00211 
00212 private:
00213         void device_factory(const Tango::DevVarStringArray *);
00214 };
00215 
00216 
00217 }       //      namespace TextTalker
00218 
00219 #endif // _TEXTTALKERCLASS_H
Tango Device Server User's Guide



(c) ESRF - Software Engineering Group