00001 /*************************************************************************** 00002 tag: Klaas Gadeyne Thu Sep 21 17:29:27 CEST 2006 PulseTrainGeneratorInterface.hpp 00003 00004 PulseTrainGeneratorInterface.hpp - description 00005 ------------------- 00006 begin : Thu Sep 21 17:29:27 CEST 2006 00007 copyright : (C) 2006 FMTC 00008 email : klaas gadeyne at 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 #ifndef PULSETRAINGENERATOR_HPP 00029 #define PULSETRAINGENERATOR_HPP 00030 00031 #include "../NameServer.hpp" 00032 #include "../NameServerRegistrator.hpp" 00033 #include "../Time.hpp" // Orocos Time types 00034 00035 #ifdef ORO_PRAGMA_INTERFACE 00036 #pragma interface 00037 #endif 00038 00039 namespace RTT 00040 { 00046 class PulseTrainGeneratorInterface 00047 : private NameServerRegistrator<PulseTrainGeneratorInterface*> 00048 { 00049 public: 00056 PulseTrainGeneratorInterface( const std::string& name ) 00057 : NameServerRegistrator<PulseTrainGeneratorInterface*>( nameserver, name, this ) 00058 { } 00059 00063 PulseTrainGeneratorInterface() 00064 { } 00065 00070 static NameServer<PulseTrainGeneratorInterface*> nameserver; 00071 00072 virtual ~PulseTrainGeneratorInterface() {} 00073 00080 virtual bool pulseWidthSet(psecs picos) = 0; 00081 00088 virtual bool pulsePeriodSet(psecs picos) = 0; 00089 00093 virtual bool start() = 0; 00094 00098 virtual bool stop() = 0; 00099 }; 00100 } 00101 00102 #endif
1.5.8