00001 #ifndef ASI_CONFIGURATION_H 00002 #define ASI_CONFIGURATION_H 00003 00004 /******************************************************************************* 00005 * ALMA - Atacama Large Millimeter Array 00006 * Copyright (c) ESO - European Southern Observatory, 2011 00007 * (in the framework of the ALMA collaboration). 00008 * All rights reserved. 00009 * 00010 * This library is free software; you can redistribute it and/or 00011 * modify it under the terms of the GNU Lesser General Public 00012 * License as published by the Free Software Foundation; either 00013 * version 2.1 of the License, or (at your option) any later version. 00014 * 00015 * This library is distributed in the hope that it will be useful, 00016 * but WITHOUT ANY WARRANTY; without even the implied warranty of 00017 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU 00018 * Lesser General Public License for more details. 00019 * 00020 * You should have received a copy of the GNU Lesser General Public 00021 * License along with this library; if not, write to the Free Software 00022 * Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA 00023 *******************************************************************************/ 00024 #include <string> 00025 00026 namespace acsalarm 00027 { 00028 /* 00029 * A class to encapsulate various configuration data for the laser alarm system 00030 * for use by cpp alarm source clients. 00031 */ 00032 class ASIConfiguration 00033 { 00034 private: 00035 std::string asiVersion; 00036 std::string alarmsTopic; 00037 int backupDeliveryMode; 00038 int backupPriority; 00039 long backupTimeToLive; 00040 int changesDeliveryMode; 00041 int changesPriority; 00042 long changesTimeToLive; 00043 00044 public: 00045 ASIConfiguration(); 00046 virtual ~ASIConfiguration() {} 00047 00048 std::string getASIVersion() { return asiVersion; } 00049 void setASIVersion(std::string version) { asiVersion = version; } 00050 00051 std::string getAlarmsTopic() { return alarmsTopic; } 00052 void setAlarmsTopic(std::string topic) { alarmsTopic = topic; } 00053 00054 int getBackupDeliveryMode() { return backupDeliveryMode; } 00055 void setBackupDeliveryMode(int mode) { backupDeliveryMode = mode; } 00056 00057 int getBackupPriority() { return backupPriority; } 00058 void setBackupPriority(int priority) { backupPriority = priority; } 00059 00060 long getBackupTimeToLive() { return backupTimeToLive; } 00061 void setBackupTimeToLive(long timeToLive) { backupTimeToLive = timeToLive; } 00062 00063 int getChangesDeliveryMode() { return changesDeliveryMode; } 00064 void setChangesDeliveryMode(int mode) { changesDeliveryMode = mode; } 00065 00066 int getChangesPriority() { return changesPriority; } 00067 void setChangesPriority(int priority) { changesPriority = priority; } 00068 00069 long getChangesTimeToLive() { return changesTimeToLive; } 00070 void setChangesTimeToLive(long timeToLive) { changesTimeToLive = timeToLive; } 00071 }; 00072 }; 00073 #endif