OpenRTM-aist
1.2.1
|
OutPort class. More...
#include <functional>
#include <string>
#include <coil/TimeValue.h>
#include <coil/Time.h>
#include <coil/TimeMeasure.h>
#include <coil/OS.h>
#include <rtm/RTC.h>
#include <rtm/Typename.h>
#include <rtm/OutPortBase.h>
#include <rtm/CdrBufferBase.h>
#include <rtm/PortCallback.h>
#include <rtm/OutPortConnector.h>
#include <rtm/Timestamp.h>
#include <rtm/DirectOutPortBase.h>
Go to the source code of this file.
Classes | |
class | RTC::OutPort< DataType > |
OutPort template class. More... | |
Namespaces | |
RTC | |
RT-Component. | |
Functions | |
template<class DataType > | |
void | setTimestamp (DataType &data) |
Setting timestamp to data. More... | |
OutPort class.
Copyright (C) 2006-2009 Noriaki Ando Task-intelligence Research Group, Intelligent Systems Research Institute, National Institute of Advanced Industrial Science and Technology (AIST), Japan All rights reserved.
$Id$
void setTimestamp | ( | DataType & | data | ) |
Setting timestamp to data.
This function sets timestamp to data of data port. This data should have tm.sec, tm.nsec as members of the structure.
data | Data to be set timestamp. After executing this function, current timestamp is set to the data. |
References coil::gettimeofday(), coil::TimeValue::sec(), and coil::TimeValue::usec().