00001 #include "SIGEL_Robot/SIG_CommandParameters.h"
00002 #include <math.h>
00003
00004 namespace SIGEL_Robot {
00005 SIG_CommandParameters::SIG_CommandParameters (void)
00006 : duration (0.000001)
00007 { }
00008
00009 SIG_CommandParameters::SIG_CommandParameters (QTextStream & tx)
00010 {
00011 QString tmpstr;
00012
00013 tx >> tmpstr;
00014 if (tmpstr != "CommandParameters")
00015
00016 ;
00017
00018 tx >> duration;
00019 }
00020
00021 SIG_CommandParameters::~SIG_CommandParameters (void)
00022 { }
00023
00024 void SIG_CommandParameters::setDuration (double dur)
00025 {
00026 duration = dur;
00027 }
00028
00029 double SIG_CommandParameters::getDuration (void) const
00030 {
00031 return duration;
00032 }
00033
00034 void SIG_CommandParameters::writeToFileTransfer (QTextStream & tx) const
00035 {
00036 tx << "CommandParameters " << duration << '\n';
00037 }
00038 }