plptools
Loading...
Searching...
No Matches
RFSVFactory Class Referencefinal

A factory for automatically instantiating the correct RFSV protocol variant depending on the connected Psion. More...

#include <rfsvfactory.h>

Public Member Functions

 RFSVFactory (const std::string &host, int port)
 Constructs a RFSVFactory. More...
 
 ~RFSVFactory ()
 Delete the RFSVFactory, cleaning up any resources. More...
 
RFSVcreate (bool, Enum< ConnectionError > *error=nullptr)
 Creates a new RFSV instance. More...
 

Private Attributes

std::string host_
 
int port_
 

Detailed Description

A factory for automatically instantiating the correct RFSV protocol variant depending on the connected Psion.

Definition at line 36 of file rfsvfactory.h.

Constructor & Destructor Documentation

◆ RFSVFactory()

RFSVFactory::RFSVFactory ( const std::string &  host,
int  port 
)

Constructs a RFSVFactory.

Parameters
hostThe host be used for connecting to the ncpd daemon.
portThe port be used for connecting to the ncpd daemon.

Definition at line 30 of file rfsvfactory.cc.

◆ ~RFSVFactory()

RFSVFactory::~RFSVFactory ( )

Delete the RFSVFactory, cleaning up any resources.

Definition at line 34 of file rfsvfactory.cc.

Member Function Documentation

◆ create()

RFSV * RFSVFactory::create ( bool  reconnect,
Enum< ConnectionError > *  error = nullptr 
)

Creates a new RFSV instance.

Parameters
reconnectSet to true, if automatic reconnect should be performed on failure.
errorOut parameter; set to the error on failure if non-NULL.
Returns
A pointer to a newly created RFSV instance or NULL on failure.

Definition at line 36 of file rfsvfactory.cc.

Member Data Documentation

◆ host_

std::string RFSVFactory::host_
private

Definition at line 64 of file rfsvfactory.h.

◆ port_

int RFSVFactory::port_
private

Definition at line 65 of file rfsvfactory.h.


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