PulseTrainGeneratorInterface.hpp
Go to the documentation of this file.
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 { namespace dev {
00042 
00048     class RTT_API PulseTrainGeneratorInterface
00049         : private NameServerRegistrator<PulseTrainGeneratorInterface*>
00050     {
00051     public:
00058         PulseTrainGeneratorInterface( const std::string& name )
00059             : NameServerRegistrator<PulseTrainGeneratorInterface*>( nameserver, name, this )
00060         { }
00061 
00065         PulseTrainGeneratorInterface()
00066         { }
00067 
00072         static NameServer<PulseTrainGeneratorInterface*> nameserver;
00073 
00074         virtual ~PulseTrainGeneratorInterface() {}
00075 
00082         virtual bool pulseWidthSet(psecs picos) = 0;
00083 
00090         virtual bool pulsePeriodSet(psecs picos) = 0;
00091 
00095         virtual bool start() = 0;
00096 
00100         virtual bool stop() = 0;
00101     };
00102 }}
00103 
00104 #endif


rtt
Author(s): RTT Developers
autogenerated on Wed Aug 26 2015 16:15:51