Main Page | Modules | Namespace List | Class Hierarchy | Alphabetical List | Class List | File List | Namespace Members | Class Members | File Members | Related Pages

acsdaemonImpl.h

Go to the documentation of this file.
00001 #ifndef _ACS_DAEMON_IMPL_H_
00002 #define _ACS_DAEMON_IMPL_H_
00003 
00004 /*******************************************************************************
00005 *    ALMA - Atacama Large Millimiter Array
00006 *    (c) European Southern Observatory, 2002
00007 *    Copyright by ESO (in the framework of the ALMA collaboration)
00008 *    and Cosylab 2002, 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 * "@(#) $Id: acsdaemonImpl.h,v 1.2 2006/06/23 12:23:05 msekoran Exp $"
00025 *
00026 * who       when      what
00027 * --------  --------  ----------------------------------------------
00028 * msekoran 2006-06-21 created 
00029 */
00030 
00031 #ifndef __cplusplus
00032 #error This is a C++ include file and cannot be used from plain C
00033 #endif
00034 
00035 #include "acsdaemonS.h"
00036 #include "logging.h"
00037 
00038 class ACSDaemonImpl : public POA_acsdaemon::Daemon {
00039 
00040   public:
00041     
00045     ACSDaemonImpl(LoggingProxy &logProxy);
00046   
00050     virtual ~ACSDaemonImpl();
00051     
00055     bool 
00056     isInitialized() { return m_isInitialized; }
00057     
00061     int
00062     startup (int argc, char *argv[]);
00063 
00068     int 
00069     run ();
00070 
00074     void shutdown (); 
00075 
00079     const char* getIOR() const { return m_ior.in(); };
00080     
00081     /*************************** CORBA interface *****************************/
00082 
00083     virtual void start_container (
00084         const char * container_type,
00085         const char * container_name,
00086         ::CORBA::Short instance_number,
00087         const char * additional_command_line
00088       )
00089       ACE_THROW_SPEC ((
00090         CORBA::SystemException,
00091         ::acsdaemonErrType::FailedToStartContainerEx,
00092         ::ACSErrTypeCommon::BadParameterEx
00093       ));
00094 
00095   protected:
00096 
00100     int 
00101     init_ORB (int& argc, char *argv []);
00102 
00103     //--Common data members-------------------------------------
00104 
00106     bool m_isInitialized;
00107 
00109     CORBA::ORB_var m_orb;
00110 
00112     LoggingProxy &m_logProxy;
00113 
00115     CORBA::String_var m_ior;
00116 };
00117 
00118 #endif

Generated on Sun Oct 29 02:26:25 2006 for ACS C++ API by doxygen 1.3.6