PowerDefaults.h

00001 // *** this file is generated by genconfig, do not modify it ***
00002 
00003 #ifndef _PowerDefaults_0_SCTDAL_0__H_
00004 #define _PowerDefaults_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 // forward declaration for classes used in relationships
00016 
00017 namespace SCTDAL {
00018     class Param;
00019 }
00020 
00021 namespace SCTDAL {
00026   class PowerDefaults : public virtual ::DalObject {
00027 
00028     friend class ::Configuration;
00029 
00030     public:
00031 
00032       PowerDefaults(::Configuration& conf, ::ConfigObject& obj);
00033       virtual ~PowerDefaults();
00034 
00042       static PowerDefaults * create(::Configuration& conf, const std::string& id = "");
00043 
00049       bool destroy(::Configuration& conf);
00050 
00051 
00052     public:
00053 
00054       static const std::string s_class_name;
00055       virtual void init(bool init_children);
00056 
00057 
00058     private:
00059 
00060       void check_init() const {if(!p_was_read) const_cast<PowerDefaults*>(this)->init(false);}
00061       static void update(::Configuration& conf, const ::ConfigurationChange * change);
00062       static void reset(::Configuration& conf, bool re_initialise_obj);
00063 
00064 
00065     public:
00066 
00067       virtual void print(unsigned int, bool, std::ostream&) const;
00068 
00069 
00070     private:
00071 
00072       std::string m_state;
00073       std::vector<const SCTDAL::Param*> m_param;
00074 
00075 
00076     public:
00077 
00082       const std::string& get_state() const { check_init(); return m_state; }
00083       const std::string& state() const { check_init(); return m_state; }
00084 
00089       bool set_state(const std::string& value) { clear(); return p_obj.set_enum("state", value); }
00090 
00095       const std::vector<const SCTDAL::Param*>& get_param() const { check_init(); return m_param; }
00096       const std::vector<const SCTDAL::Param*>& param() const { check_init(); return m_param; }
00097 
00102       bool set_param(const std::vector<const SCTDAL::Param*>& value);
00103 
00104   };
00105 
00106     // out stream operators
00107 
00108   std::ostream& operator<<(std::ostream&, const PowerDefaults*);
00109   std::ostream& operator<<(std::ostream&, const PowerDefaults&);
00110 
00111   typedef std::vector<const PowerDefaults*>::const_iterator PowerDefaultsIterator;
00112 
00113 }
00114 
00115 #endif

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