Main Page | Class Hierarchy | Alphabetical List | Class List | File List | Class Members | File Members | Related Pages

taskrecord.cpp

Go to the documentation of this file.
00001 // PTF - Psychological Test Framework 00002 // http://ptf.sourceforge.net 00003 // 00004 // This program is free software; you can redistribute it and/or modify 00005 // it under the terms of the GNU General Public License as published by 00006 // the Free Software Foundation; either version 2 of the License, or 00007 // (at your option) any later version. 00008 // 00009 // This program is distributed in the hope that it will be useful, 00010 // but WITHOUT ANY WARRANTY; without even the implied warranty of 00011 // MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the 00012 // GNU Library General Public License for more details. 00013 // 00014 // You should have received a copy of the GNU General Public License 00015 // along with this program; if not, write to the Free Software 00016 // Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA. 00017 00018 #include <ptf/core/taskrecord.hpp> 00019 #include <ptf/core/timeinterval.hpp> 00020 00031 TaskRecord::TaskRecord(int taskId, TimeInterval* tprepare, TimeInterval* texecute, TimeInterval* tfinish) { 00032 id = taskId; 00033 timestampP = tprepare; 00034 timestampE = texecute; 00035 timestampF = tfinish; 00036 } 00037 00041 TaskRecord::~TaskRecord() { 00042 delete timestampP; 00043 delete timestampE; 00044 delete timestampF; 00045 } 00046 00050 int TaskRecord::getId() const { 00051 return id; 00052 } 00053 00057 const TimeInterval& TaskRecord::getTimestampE() const { 00058 return *timestampE; 00059 } 00060 00064 const TimeInterval& TaskRecord::getTimestampF() const { 00065 return *timestampF; 00066 } 00067 00071 const TimeInterval& TaskRecord::getTimestampP() const { 00072 return *timestampP; 00073 }

Generated on Fri Dec 17 14:54:23 2004 for Psychological Test Framework by doxygen 1.3.8