• Classes
  • Modules
  • Namespaces
  • Files
  • Related Pages
  • File List
  • File Members

baciAlarmBooleanSeq.h

Go to the documentation of this file.
00001 #ifndef BACIALARMBOOLEANSEQ_H_
00002 #define BACIALARMBOOLEANSEQ_H_
00003 /*******************************************************************
00004 * ALMA - Atacama Large Millimiter Array
00005 * (c) European Southern Observatory, 2003
00006 *
00007 *This library is free software; you can redistribute it and/or
00008 *modify it under the terms of the GNU Lesser General Public
00009 *License as published by the Free Software Foundation; either
00010 *version 2.1 of the License, or (at your option) any later version.
00011 *
00012 *This library is distributed in the hope that it will be useful,
00013 *but WITHOUT ANY WARRANTY; without even the implied warranty of
00014 *MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
00015 *Lesser General Public License for more details.
00016 *
00017 *You should have received a copy of the GNU Lesser General Public
00018 *License along with this library; if not, write to the Free Software
00019 *Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307  USA
00020 *
00021 * "@(#) $Id: baciAlarmBooleanSeq"
00022 *
00023 * who       when        what
00024 * --------  ----------  ----------------------------------------------
00025 * pcolomer  13/10/2014  created
00026 */
00027 
00028 
00029 #ifndef __cplusplus
00030 #error This is a C++ include file and cannot be used from plain C
00031 #endif
00032 
00033 
00034 #include <baciEvent.h>
00035 #include <ACSErrTypeAlarm.h>
00036 
00037 #include "baciAlarm_T.h"
00038 #include "baciRObooleanSeq.h"
00039 
00040 #include <vector>
00041 #include <stdint.h>
00042 
00043 namespace baci {
00044 
00045 /***********************************************************************************************/
00046 /* AlarmEventStrategy implementation for boolean type */
00047 
00048 class baci_EXPORT AlarmEventStrategyBooleanSeq
00049                                 : public AlarmEventStrategy<ACS::booleanSeq, RObooleanSeq, ACS::Alarmboolean>
00050 {
00051   public:
00052     AlarmEventStrategyBooleanSeq(RObooleanSeq * property, EventDispatcher * eventDispatcher);
00053 
00054     AlarmEventStrategyBooleanSeq(Callback_ptr callback_p,
00055                            const CBDescIn& descIn,
00056                            const ACS::TimeInterval& interval,
00057                            RObooleanSeq * property,
00058                            EventDispatcher * eventDispatcher);
00059 
00060     virtual void check(BACIValue &val,
00061                        const ACSErr::Completion & c,
00062                        const ACS::CBDescOut & desc);
00063 
00064   private:
00065 
00066     static const int32_t ALARM_NOT_RAISED = 0;
00067     static const int32_t ALARM_RAISED = 1;
00068 
00069     std::vector<int32_t> alarmsRaised_m;
00070 
00071     void checkItem(int32_t &alarmRaised, CORBA::Boolean value,
00072                 const ACSErr::Completion & c, const ACS::CBDescOut & desc);
00073 
00077     void operator=(const AlarmEventStrategyBooleanSeq&);
00078 
00082     AlarmEventStrategyBooleanSeq(const AlarmEventStrategyBooleanSeq&);
00083 };
00084 
00085 }
00086 
00087 #endif /* BACIALARMBOOLEANSEQ_H_ */

Generated on Mon May 4 2015 08:27:42 for ACS-2015.4 C++ API by  doxygen 1.7.0