#ifndef MOCKCOMPONENT_H #define MOCKCOMPONENT_H /******************************************************************************* * ALMA - Atacama Large Millimiter Array * (c) National Research Council of Canada, 2008 * * This library is free software; you can redistribute it and/or * modify it under the terms of the GNU Lesser General Public * License as published by the Free Software Foundation; either * version 2.1 of the License, or (at your option) any later version. * * This library 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 * Lesser General Public License for more details. * * You should have received a copy of the GNU Lesser General Public * License along with this library; if not, write to the Free Software * Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA * * "@(#) $Id: mockComponentImpl.h,v 1.3 2009/10/26 19:00:22 agrimstrup Exp $" * * who when what * -------- -------- ---------------------------------------------- * agrimstrup 2008-12-10 created */ /************************************************************************ * *---------------------------------------------------------------------- */ #ifndef __cplusplus #error This is a C++ include file and cannot be used from plain C #endif #include #include class MockComponent : public virtual acscomponent::ACSComponentImpl, public CORBA::Object { public: /** * Constructor * @param poa Poa which will activate this and also all other components. Developers need * not be concerned with what a PortableServer does...just pass it to the superclass's * constructor. * @param name component's name. All components have a name associated with them so other * components and clients can access them. */ MockComponent( const ACE_CString& name, maci::ContainerServices * containerServices); /** * Destructor */ virtual ~MockComponent(); static MockComponent* _nil(void) { return (MockComponent *) 0; } }; #endif /*MOCKCOMPONENT_H*/