SerialCommandDeviceOptions.hpp
Go to the documentation of this file.
00001 /*
00002  * SerialCommandDeviceOptions.hpp
00003  *
00004  *  Created on: Jul 12, 2012
00005  *      Author: mriedel
00006  */
00007 
00008 #ifndef SERIALCOMMANDDEVICEOPTIONS_HPP_
00009 #define SERIALCOMMANDDEVICEOPTIONS_HPP_
00010 
00011 #include <telekyb_defines/telekyb_defines.hpp>
00012 
00013 #include <telekyb_base/Options.hpp>
00014 
00015 #include <telekyb_defines/enum.hpp>
00016 
00017 #include <termios.h>
00018 
00019 #include <telekyb_base/Base/Singleton.hpp>
00020 
00021 namespace TELEKYB_NAMESPACE {
00022 
00023 // For BaudRate
00024 
00025 #ifndef BAUDRATE_ENUM
00026 #define BAUDRATE_ENUM
00027 TELEKYB_ENUM_VALUES(BaudRate, size_t,
00028         (BAUD4800)(B4800)
00029         (BAUD9600)(B9600)
00030         (BAUD19200)(B19200)
00031         (BAUD38400)(B38400)
00032         (BAUD57600)(B57600)
00033         (BAUD115200)(B115200)
00034         (BAUD230400)(B230400)
00035 )
00036 #endif
00037 
00038 class SerialCommandDeviceOptions : public OptionContainer, public Singleton<SerialCommandDeviceOptions> {
00039 public:
00040         Option< std::string >* tDeviceName;
00041         Option< std::string >* tTopicName;
00042 
00043         Option< BaudRateBaseEnum<size_t>::Type >* tBaudRate;
00044         Option< int >* tTermiosCFlags;
00045 
00046         Option<double>* minTimeStep;
00047         Option<int>* motorNumber;
00048 
00049         SerialCommandDeviceOptions();
00050 };
00051 
00052 }
00053 
00054 #endif /* SERIALCOMMANDDEVICEOPTIONS_HPP_ */
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Friends Defines


tk_smurf_interface
Author(s): Martin Riedel
autogenerated on Mon Nov 11 2013 11:14:12