PulseTrainGeneratorInterface.hpp

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 #include "../rtt-config.h"
00035 
00036 #ifdef ORO_PRAGMA_INTERFACE
00037 #pragma interface
00038 #endif
00039 
00040 namespace RTT
00041 {
00047     class RTT_API PulseTrainGeneratorInterface
00048         : private NameServerRegistrator<PulseTrainGeneratorInterface*>
00049     {
00050     public:
00057         PulseTrainGeneratorInterface( const std::string& name )
00058             : NameServerRegistrator<PulseTrainGeneratorInterface*>( nameserver, name, this )
00059         { }
00060 
00064         PulseTrainGeneratorInterface()
00065         { }
00066 
00071         static NameServer<PulseTrainGeneratorInterface*> nameserver;
00072 
00073         virtual ~PulseTrainGeneratorInterface() {}
00074 
00081         virtual bool pulseWidthSet(psecs picos) = 0;
00082 
00089         virtual bool pulsePeriodSet(psecs picos) = 0;
00090 
00094         virtual bool start() = 0;
00095 
00099         virtual bool stop() = 0;
00100     };
00101 }
00102 
00103 #endif
Generated on Thu Dec 23 13:22:37 2010 for Orocos Real-Time Toolkit by  doxygen 1.6.3