Public Member Functions | Private Member Functions | Private Attributes | List of all members
URFactory Class Reference

#include <factory.h>

Inheritance diagram for URFactory:
Inheritance graph
[legend]

Public Member Functions

std::unique_ptr< URCommandergetCommander (URStream &stream)
 
std::unique_ptr< URParser< RTPacket > > getRTParser ()
 
std::unique_ptr< URParser< StatePacket > > getStateParser ()
 
bool isVersion3 ()
 
 URFactory (std::string &host)
 

Private Member Functions

bool consume (VersionMessage &vm)
 
void setupConsumer ()
 
void stopConsumer ()
 
void teardownConsumer ()
 
- Private Member Functions inherited from URMessagePacketConsumer
virtual bool consume (shared_ptr< MessagePacket > packet)
 
- Private Member Functions inherited from IConsumer< MessagePacket >
virtual void onTimeout ()
 

Private Attributes

uint8_t major_version_
 
uint8_t minor_version_
 
URMessageParser parser_
 
URStream stream_
 

Detailed Description

Definition at line 32 of file factory.h.

Constructor & Destructor Documentation

URFactory::URFactory ( std::string &  host)
inline

Definition at line 65 of file factory.h.

Member Function Documentation

bool URFactory::consume ( VersionMessage vm)
inlineprivatevirtual

Implements URMessagePacketConsumer.

Definition at line 41 of file factory.h.

std::unique_ptr<URCommander> URFactory::getCommander ( URStream stream)
inline

Definition at line 97 of file factory.h.

std::unique_ptr<URParser<RTPacket> > URFactory::getRTParser ( )
inline

Definition at line 124 of file factory.h.

std::unique_ptr<URParser<StatePacket> > URFactory::getStateParser ( )
inline

Definition at line 107 of file factory.h.

bool URFactory::isVersion3 ( )
inline

Definition at line 92 of file factory.h.

void URFactory::setupConsumer ( )
inlineprivatevirtual

Reimplemented from IConsumer< MessagePacket >.

Definition at line 54 of file factory.h.

void URFactory::stopConsumer ( )
inlineprivatevirtual

Reimplemented from IConsumer< MessagePacket >.

Definition at line 60 of file factory.h.

void URFactory::teardownConsumer ( )
inlineprivatevirtual

Reimplemented from IConsumer< MessagePacket >.

Definition at line 57 of file factory.h.

Member Data Documentation

uint8_t URFactory::major_version_
private

Definition at line 38 of file factory.h.

uint8_t URFactory::minor_version_
private

Definition at line 39 of file factory.h.

URMessageParser URFactory::parser_
private

Definition at line 36 of file factory.h.

URStream URFactory::stream_
private

Definition at line 35 of file factory.h.


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


ur_modern_driver
Author(s): Thomas Timm Andersen, Simon Rasmussen
autogenerated on Fri Jun 26 2020 03:37:01