Public Types | Public Member Functions | Static Public Member Functions | Private Member Functions | Private Attributes | Static Private Attributes | List of all members
message_relay::TimeProcessor Class Reference

#include <time_processor.h>

Public Types

typedef boost::shared_ptr< const TimeProcessorConstPtr
 
enum  Operation { NONE, ADD_OFFSET, REMOVE_OFFSET }
 

Public Member Functions

void process (ros::Time &time) const
 

Static Public Member Functions

static ConstPtr create (std::string offset_operation_string, ros::Duration offset=ros::Duration(0.0))
 
static ConstPtr create (Operation offset_operation, ros::Duration offset=ros::Duration(0.0))
 
static ConstPtr inverse (const ConstPtr &processor)
 

Private Member Functions

 TimeProcessor (Operation offset_operation, ros::Duration offset)
 

Private Attributes

ros::Duration offset_
 
Operation offset_operation_
 

Static Private Attributes

static const boost::unordered_map< Operation, Operationoperation_inverse_map_
 
static const boost::unordered_map< std::string, Operationoperation_name_map_
 

Detailed Description

Definition at line 37 of file time_processor.h.

Member Typedef Documentation

Definition at line 40 of file time_processor.h.

Member Enumeration Documentation

Enumerator
NONE 
ADD_OFFSET 
REMOVE_OFFSET 

Definition at line 42 of file time_processor.h.

Constructor & Destructor Documentation

message_relay::TimeProcessor::TimeProcessor ( Operation  offset_operation,
ros::Duration  offset 
)
private

Definition at line 74 of file time_processor.cpp.

Member Function Documentation

TimeProcessor::ConstPtr message_relay::TimeProcessor::create ( std::string  offset_operation_string,
ros::Duration  offset = ros::Duration(0.0) 
)
static

Definition at line 42 of file time_processor.cpp.

TimeProcessor::ConstPtr message_relay::TimeProcessor::create ( TimeProcessor::Operation  offset_operation,
ros::Duration  offset = ros::Duration(0.0) 
)
static

Definition at line 56 of file time_processor.cpp.

TimeProcessor::ConstPtr message_relay::TimeProcessor::inverse ( const ConstPtr processor)
static

Definition at line 61 of file time_processor.cpp.

void message_relay::TimeProcessor::process ( ros::Time time) const

Definition at line 78 of file time_processor.cpp.

Member Data Documentation

ros::Duration message_relay::TimeProcessor::offset_
private

Definition at line 62 of file time_processor.h.

Operation message_relay::TimeProcessor::offset_operation_
private

Definition at line 61 of file time_processor.h.

const boost::unordered_map< TimeProcessor::Operation, TimeProcessor::Operation > message_relay::TimeProcessor::operation_inverse_map_
staticprivate
const boost::unordered_map< std::string, TimeProcessor::Operation > message_relay::TimeProcessor::operation_name_map_
staticprivate
Initial value:
=
boost::assign::map_list_of("", TimeProcessor::NONE)("add_offset", TimeProcessor::ADD_OFFSET)
("remove_offset", TimeProcessor::REMOVE_OFFSET)

Definition at line 58 of file time_processor.h.


The documentation for this class was generated from the following files:


message_relay
Author(s):
autogenerated on Wed Jul 17 2019 03:27:53