//**************************************************************************** //! \file ocinput.hpp //! \date 12-07-2003 //! \class ocInput //! \brief The Input class of the WOCK //! \class ocTestOutput //! \brief the Test Output class simulating the OC //***************************************************************************** // This file is part of the WOCK. // // The WOCK 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. // // The WOCK 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 DataView; if not, write to the Free Software // Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA //**************************************************************************** #ifndef OCINPUT_HPP #define OCINPUT_HPP #include "ocoutput.hpp" //*************************************************************************** class ocInput //---------------------------------------------------------------------------- //! Virtual Baseclass for all Input classes for the WOCK //! It does all necessary input communication with e.g. a photon counting device or similar //*************************************************************************** { public: ocInput(){}; //!< Constructor ~ocInput(){}; //!< Destructor //! \brief contacts the Intensity measuring device e.g. the Photon Counter //! \return the Value of the Intensity measuring device virtual const int getInput() = 0; }; //*************************************************************************** class ocTestInput : public ocInput //---------------------------------------------------------------------------- //! gets its data directly from ocTestOutput //*************************************************************************** { ocTestOutput oto; public: //! \brief Constructor //! \param testOutput an instance of the ocTestOutput class ocTestInput(ocTestOutput &testOutput) : ocInput(), oto( testOutput) {}; ~ocTestInput(){}; //!< Destructor //! \brief contacts the Intensity measuring device e.g. the Photon Counter //! \return the Value of the Intensity measuring device virtual const int getInput() { return oto.getRate();} }; #endif