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

TaskServices.h

Go to the documentation of this file.
00001 #ifndef _TaskServices_H
00002 #define _TaskServices_H
00003 
00004 /*******************************************************************************
00005 * ALMA - Atacama Large Millimiter Array
00006 * (c) European Southern Observatory, 2005 
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 * who       when       what
00023 * --------  --------   ----------------------------------------------
00024 * sharring  2005-07-14 created
00025 */
00026 
00027 /************************************************************************
00028  *
00029  *----------------------------------------------------------------------
00030  */
00031 
00032 #ifndef __cplusplus
00033 #error This is a C++ include file and cannot be used from plain C
00034 #endif
00035 
00036 // loggingMACROS.h in turn includes loggingLogger.h (among others)
00037 // NOTE: the headers included from loggingMACROS.h are ACS/ACE independent
00038 #include <loggingMACROS.h>
00039 
00040 namespace ACS 
00041 {
00042         const char* const TASK_LOGGER_NAME = "TaskLogger";
00043 
00082         class TaskServices
00083         {
00084                 public:
00085 
00089                         TaskServices() 
00090                         {
00091                                 m_logger = getNamedLogger(TASK_LOGGER_NAME);
00092                         }
00093 
00097                         virtual ~TaskServices() {}
00098 
00102                         virtual Logging::Logger::LoggerSmartPtr getLogger() { return m_logger; }; 
00103 
00104                 private:
00105                         Logging::Logger::LoggerSmartPtr m_logger; 
00106         };
00107 }; 
00108 #endif 

Generated on Thu Jan 12 2012 23:13:51 for ACS-10.0 C++ API by  doxygen 1.7.0