diff --git a/LCS/Common/include/Common/Makefile.am b/LCS/Common/include/Common/Makefile.am index 3ebc8fa8ddac7d8205ff9edc9043235166bfbdac..c8bd7a84eefb3763d905d588787fa37bf6247d85 100644 --- a/LCS/Common/include/Common/Makefile.am +++ b/LCS/Common/include/Common/Makefile.am @@ -44,6 +44,7 @@ pkginclude_HEADERS = Package__Version.h \ lofar_stack.h \ lofar_string.h \ lofar_thread.h \ + lofar_tribool.h \ lofar_typeinfo.h \ LofarTypedefs.h \ LofarTypes.h \ diff --git a/LCS/Common/include/Common/lofar_datetime.h b/LCS/Common/include/Common/lofar_datetime.h index 1735af079b818c64874d2d5a3c89d84a1c25f61e..fa235f570249ee93b856b95a7014bde6bb6bff1d 100644 --- a/LCS/Common/include/Common/lofar_datetime.h +++ b/LCS/Common/include/Common/lofar_datetime.h @@ -1,4 +1,4 @@ -//# lofar_datetime.h: +//# lofar_datetime.h: namespace wrapper for Boost.Date_Time Posix classes //# //# Copyright (C) 2002 //# ASTRON (Netherlands Foundation for Research in Astronomy) @@ -24,6 +24,11 @@ #define LOFAR_COMMON_DATETIME_H // \file +// namespace wrapper for Boost.Date_Time Posix classes + +#if !defined(HAVE_BOOST) +#error Boost.Date_Time is required. +#endif #include <boost/date_time/posix_time/posix_time.hpp> #include <time.h> diff --git a/LCS/Common/include/Common/lofar_smartptr.h b/LCS/Common/include/Common/lofar_smartptr.h index 9214afaf577551b36641540c68d63edd90ea7eb4..e2cbf29c029dbb2783384cba7be360bf686c6faf 100644 --- a/LCS/Common/include/Common/lofar_smartptr.h +++ b/LCS/Common/include/Common/lofar_smartptr.h @@ -1,4 +1,4 @@ -//# lofar_smartptr.h: basic header for the Smartptr package +//# lofar_smartptr.h: namespace wrapper for Boost Smart Pointers //# //# Copyright (C) 2002 //# ASTRON (Netherlands Foundation for Research in Astronomy) @@ -24,6 +24,7 @@ #define LOFAR_COMMON_SMARTPTR_H // \file +// namespace wrapper for Boost Smart Pointers #if !defined(HAVE_BOOST) #error Boost Smart Pointer classes are required. diff --git a/LCS/Common/include/Common/lofar_thread.h b/LCS/Common/include/Common/lofar_thread.h index 9cfb663bc62a1390a5a135478ed43e0991eed893..df69b341b612cee7caec456511e35cf58cf2751b 100644 --- a/LCS/Common/include/Common/lofar_thread.h +++ b/LCS/Common/include/Common/lofar_thread.h @@ -1,4 +1,4 @@ -//# lofar_thread.h: basic header for the Thread package +//# lofar_thread.h: namespace wrapper for Boost.Thread //# //# Copyright (C) 2002 //# ASTRON (Netherlands Foundation for Research in Astronomy) @@ -24,6 +24,11 @@ #define LOFAR_COMMON_THREAD_H // \file +// namespace wrapper for Boost.Thread + +#if !defined(HAVE_BOOST) +#error Boost.Thread classes are required. +#endif #ifndef USE_THREADS #error Threading support unavailable: it should be explicitly enabled \ diff --git a/LCS/Common/include/Common/lofar_tribool.h b/LCS/Common/include/Common/lofar_tribool.h new file mode 100644 index 0000000000000000000000000000000000000000..c96b41cffe13677c3bc32621da8fcdd139904045 --- /dev/null +++ b/LCS/Common/include/Common/lofar_tribool.h @@ -0,0 +1,41 @@ +//# lofar_tribool.h: namespace wrapper for Boost.Tribool +//# +//# Copyright (C) 2002 +//# ASTRON (Netherlands Foundation for Research in Astronomy) +//# P.O.Box 2, 7990 AA Dwingeloo, The Netherlands, seg@astron.nl +//# +//# This program is free software; you can redistribute it and/or modify +//# it under the terms of the GNU General Public License as published by +//# the Free Software Foundation; either version 2 of the License, or +//# (at your option) any later version. +//# +//# This program is distributed in the hope that it will be useful, +//# but WITHOUT ANY WARRANTY; without even the implied warranty of +//# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the +//# GNU General Public License for more details. +//# +//# You should have received a copy of the GNU General Public License +//# along with this program; if not, write to the Free Software +//# Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA +//# +//# $Id$ + +#ifndef LOFAR_COMMON_TRIBOOL_H +#define LOFAR_COMMON_TRIBOOL_H + +// \file +// namespace wrapper for Boost.Tribool + +#if !defined(HAVE_BOOST) +#error Boost.Tribool is required. +#endif + +#include <boost/logic/tribool.hpp> + +namespace LOFAR +{ + using boost::logic::tribool; + using boost::logic::indeterminate; +} + +#endif