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

asiConfigurationConstants.h

Go to the documentation of this file.
00001 #ifndef ASI_CONFIGURATION_CONSTANTS_H
00002 #define ASI_CONFIGURATION_CONSTANTS_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 // TODO later: use the CDB or the asi-configuration.xml file for this information!
00025 namespace asiConfigurationConstants
00026 {
00027 
00028 // The XML file used by the java code for this information looks something like this:
00029 /*
00030 <ASI-configuration>
00031     <ASI-version>0.9</ASI-version>
00032         <alarms-topic>CMW.ALARM_SYSTEM.ALARMS.SOURCES</alarms-topic>
00033         <backup-delivery-mode>0</backup-delivery-mode>
00034         <backup-priority>9</backup-priority>
00035         <backup-time-to-live>60000</backup-time-to-live>
00036         <changes-delivery-mode>0</changes-delivery-mode>
00037         <changes-priority>9</changes-priority>
00038         <changes-time-to-live>60000</changes-time-to-live>
00039     <source-name-property>SOURCE_NAME</source-name-property>
00040     <source-hostname-property>SOURCE_HOSTNAME</source-hostname-property>
00041     <backup-property>BACKUP</backup-property>
00042     <alarms-number-property>ALARMS_NUMBER</alarms-number-property>
00043         <channel-pool-size>10</channel-pool-size>
00044         <channel-property>CHANNEL</channel-property>
00045 </ASI-configuration>
00046 */
00047    const char * const ASI_VERSION = "0.9";
00048    const char * const ALARMS_TOPIC = "CMW.ALARM_SYSTEM.ALARMS.SOURCES";
00049         const char * const ALARM_SOURCE_NAME = "ALARM_SYSTEM_SOURCES";
00050         const int BACKUP_DELIVERY_MODE = 0;
00051    const int BACKUP_PRIORITY = 9;
00052    const long BACKUP_TIME_TO_LIVE = 60000;
00053    const int CHANGES_DELIVERY_MODE = 0;
00054    const int CHANGES_PRIORITY = 9;
00055    const long CHANGES_TIME_TO_LIVE = 60000;
00056 };
00057 #endif

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