00001 #ifndef baciUtil_H 00002 #define baciUtil_H 00003 00004 /******************************************************************* 00005 * ALMA - Atacama Large Millimiter Array 00006 * (c) European Southern Observatory, 2003 00007 * 00008 *This library is free software; you can redistribute it and/or 00009 *modify it under the terms of the GNU Lesser General Public 00010 *License as published by the Free Software Foundation; either 00011 *version 2.1 of the License, or (at your option) any later version. 00012 * 00013 *This library is distributed in the hope that it will be useful, 00014 *but WITHOUT ANY WARRANTY; without even the implied warranty of 00015 *MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU 00016 *Lesser General Public License for more details. 00017 * 00018 *You should have received a copy of the GNU Lesser General Public 00019 *License along with this library; if not, write to the Free Software 00020 *Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA 00021 * 00022 * "@(#) $Id: baciUtil.h,v 1.3 2007/06/12 08:02:23 nbarriga Exp $" 00023 * 00024 * who when what 00025 * -------- -------- ---------------------------------------------- 00026 * bgustafs 2001-07-12 changed name of parameter in setCompletion 00027 * msekoran 2001/03/04 modified 00028 */ 00029 00035 #ifndef __cplusplus 00036 #error This is a C++ include file and cannot be used from plain C 00037 #endif 00038 00039 #include "baciExport.h" 00040 #include "acsutilTimeStamp.h" 00041 00042 namespace baci { 00043 00044 #ifdef MAKE_VXWORKS 00045 00046 unsigned long long lpow10(int value); 00047 unsigned long long convString2LLU(char *str2Convert); 00048 char *printLLUasString(unsigned long long numToPrint); 00049 00050 ACS::TimeInterval ModulusAlgorithm(ACS::TimeInterval a, 00051 ACS::TimeInterval b); 00052 #endif 00053 00054 ACS::TimeInterval calculateModulus(ACS::TimeInterval t1, ACS::TimeInterval t2); 00055 00056 }; 00057 00058 /* ------------------------------------------------------------------------ */ 00059 00060 #endif /* baci_H */ 00061 00062