Param.h

00001 // *** this file is generated by genconfig, do not modify it ***
00002 
00003 #ifndef _Param_0_SCTDAL_0__H_
00004 #define _Param_0_SCTDAL_0__H_
00005 
00006 #include <iostream>
00007 #include <string>
00008 #include <map>
00009 #include <vector>
00010 
00011 #include <config/Configuration.h>
00012 #include <config/DalObject.h>
00013 
00014 
00015 
00016 namespace SCTDAL {
00021   class Param : public virtual ::DalObject {
00022 
00023     friend class ::Configuration;
00024 
00025     public:
00026 
00027       Param(::Configuration& conf, ::ConfigObject& obj);
00028       virtual ~Param();
00029 
00037       static Param * create(::Configuration& conf, const std::string& id = "");
00038 
00044       bool destroy(::Configuration& conf);
00045 
00046 
00047     public:
00048 
00049       static const std::string s_class_name;
00050       virtual void init(bool init_children);
00051 
00052 
00053     private:
00054 
00055       void check_init() const {if(!p_was_read) const_cast<Param*>(this)->init(false);}
00056       static void update(::Configuration& conf, const ::ConfigurationChange * change);
00057       static void reset(::Configuration& conf, bool re_initialise_obj);
00058 
00059 
00060     public:
00061 
00062       virtual void print(unsigned int, bool, std::ostream&) const;
00063 
00064 
00065     private:
00066 
00067       std::string m_name;
00068       float m_value;
00069       float m_loAlarm;
00070       float m_loWarn;
00071       float m_hiWarn;
00072       float m_hiAlarm;
00073 
00074 
00075     public:
00076 
00081       const std::string& get_name() const { check_init(); return m_name; }
00082       const std::string& name() const { check_init(); return m_name; }
00083 
00088       bool set_name(const std::string& value) { clear(); return p_obj.set_by_ref("name", value); }
00089 
00094       float get_value() const { check_init(); return m_value; }
00095       float value() const { check_init(); return m_value; }
00096 
00101       bool set_value(float value) { clear(); return p_obj.set_by_val("value", value); }
00102 
00107       float get_loAlarm() const { check_init(); return m_loAlarm; }
00108       float loAlarm() const { check_init(); return m_loAlarm; }
00109 
00114       bool set_loAlarm(float value) { clear(); return p_obj.set_by_val("loAlarm", value); }
00115 
00120       float get_loWarn() const { check_init(); return m_loWarn; }
00121       float loWarn() const { check_init(); return m_loWarn; }
00122 
00127       bool set_loWarn(float value) { clear(); return p_obj.set_by_val("loWarn", value); }
00128 
00133       float get_hiWarn() const { check_init(); return m_hiWarn; }
00134       float hiWarn() const { check_init(); return m_hiWarn; }
00135 
00140       bool set_hiWarn(float value) { clear(); return p_obj.set_by_val("hiWarn", value); }
00141 
00146       float get_hiAlarm() const { check_init(); return m_hiAlarm; }
00147       float hiAlarm() const { check_init(); return m_hiAlarm; }
00148 
00153       bool set_hiAlarm(float value) { clear(); return p_obj.set_by_val("hiAlarm", value); }
00154 
00155   };
00156 
00157     // out stream operators
00158 
00159   std::ostream& operator<<(std::ostream&, const Param*);
00160   std::ostream& operator<<(std::ostream&, const Param&);
00161 
00162   typedef std::vector<const Param*>::const_iterator ParamIterator;
00163 
00164 }
00165 
00166 #endif

Generated on Mon Feb 6 14:01:24 2006 for SCT DAQ/DCS Software - C++ by  doxygen 1.4.6