00001 /*************************************************************************** 00002 tag: Peter Soetens Thu Jul 3 15:34:46 CEST 2008 CorbaDeploymentComponent.hpp 00003 00004 CorbaDeploymentComponent.hpp - description 00005 ------------------- 00006 begin : Thu July 03 2008 00007 copyright : (C) 2008 Peter Soetens 00008 email : peter.soetens@fmtc.be 00009 00010 *************************************************************************** 00011 * This library is free software; you can redistribute it and/or * 00012 * modify it under the terms of the GNU Lesser General Public * 00013 * License as published by the Free Software Foundation; either * 00014 * version 2.1 of the License, or (at your option) any later version. * 00015 * * 00016 * This library is distributed in the hope that it will be useful, * 00017 * but WITHOUT ANY WARRANTY; without even the implied warranty of * 00018 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU * 00019 * Lesser General Public License for more details. * 00020 * * 00021 * You should have received a copy of the GNU Lesser General Public * 00022 * License along with this library; if not, write to the Free Software * 00023 * Foundation, Inc., 59 Temple Place, * 00024 * Suite 330, Boston, MA 02111-1307 USA * 00025 * * 00026 ***************************************************************************/ 00027 00028 00029 #ifndef CORBADEPLOYMENTCOMPONENT_H_ 00030 #define CORBADEPLOYMENTCOMPONENT_H_ 00031 00032 #include "DeploymentComponent.hpp" 00033 00034 namespace OCL 00035 { 00036 00037 class OCL_API CorbaDeploymentComponent 00038 :public DeploymentComponent 00039 { 00040 protected: 00045 virtual bool componentLoaded(TaskContext* c); 00050 virtual void componentUnloaded(TaskContext* c); 00051 public: 00052 CorbaDeploymentComponent(const std::string& name, const std::string& siteFile = ""); 00053 virtual ~CorbaDeploymentComponent(); 00057 bool createServer(const std::string& tc, bool use_naming); 00058 00063 bool corbaComponent(const std::string& name, const std::string& type); 00064 }; 00065 00066 } 00067 00068 #endif /*CORBADEPLOYMENTCOMPONENT_H_*/