Public Member Functions | Static Private Member Functions | Private Attributes | List of all members
psen_scan_v2_standalone::ScannerConfigurationBuilder Class Reference

Helper class to simplify/improve the construction of the psen_scan_v2_standalone::ScannerConfiguration. More...

#include <scanner_config_builder.h>

Public Member Functions

ScannerConfiguration build () const
 
ScannerConfigurationBuilderenableDiagnostics (const bool &enable)
 
ScannerConfigurationBuilderenableFragmentedScans (const bool &enable)
 
ScannerConfigurationBuilderenableIntensities (const bool &enable)
 
ScannerConfigurationBuilderhostControlPort (const int &host_control_port)
 
ScannerConfigurationBuilderhostDataPort (const int &host_data_port)
 
ScannerConfigurationBuilderhostIP (const std::string &host_ip)
 
ScannerConfigurationBuildernrSubscribers (const uint8_t &nr_subscribers)
 
 operator ScannerConfiguration ()
 
 ScannerConfigurationBuilder (const std::string &scanner_ip)
 
ScannerConfigurationBuilderscannerControlPort (const int &scanner_control_port)
 
ScannerConfigurationBuilderscannerDataPort (const int &scanner_data_port)
 
ScannerConfigurationBuilderscannerIp (const std::string &scanner_ip)
 
ScannerConfigurationBuilderscanRange (const ScanRange &scan_range)
 
ScannerConfigurationBuilderscanResolution (const util::TenthOfDegree &scan_resolution)
 

Static Private Member Functions

static uint16_t convertPort (const int &port)
 

Private Attributes

ScannerConfiguration config_
 

Detailed Description

Helper class to simplify/improve the construction of the psen_scan_v2_standalone::ScannerConfiguration.

Definition at line 35 of file scanner_config_builder.h.

Constructor & Destructor Documentation

◆ ScannerConfigurationBuilder()

psen_scan_v2_standalone::ScannerConfigurationBuilder::ScannerConfigurationBuilder ( const std::string &  scanner_ip)

Definition at line 63 of file scanner_config_builder.h.

Member Function Documentation

◆ build()

ScannerConfiguration psen_scan_v2_standalone::ScannerConfigurationBuilder::build ( ) const
inline

Definition at line 68 of file scanner_config_builder.h.

◆ convertPort()

static uint16_t psen_scan_v2_standalone::ScannerConfigurationBuilder::convertPort ( const int &  port)
staticprivate

◆ enableDiagnostics()

ScannerConfigurationBuilder & psen_scan_v2_standalone::ScannerConfigurationBuilder::enableDiagnostics ( const bool &  enable = true)
inline

Definition at line 138 of file scanner_config_builder.h.

◆ enableFragmentedScans()

ScannerConfigurationBuilder & psen_scan_v2_standalone::ScannerConfigurationBuilder::enableFragmentedScans ( const bool &  enable = true)
inline

Definition at line 150 of file scanner_config_builder.h.

◆ enableIntensities()

ScannerConfigurationBuilder & psen_scan_v2_standalone::ScannerConfigurationBuilder::enableIntensities ( const bool &  enable = true)
inline

Definition at line 144 of file scanner_config_builder.h.

◆ hostControlPort()

ScannerConfigurationBuilder & psen_scan_v2_standalone::ScannerConfigurationBuilder::hostControlPort ( const int &  host_control_port)
inline

Definition at line 97 of file scanner_config_builder.h.

◆ hostDataPort()

ScannerConfigurationBuilder & psen_scan_v2_standalone::ScannerConfigurationBuilder::hostDataPort ( const int &  host_data_port)
inline

Definition at line 91 of file scanner_config_builder.h.

◆ hostIP()

ScannerConfigurationBuilder & psen_scan_v2_standalone::ScannerConfigurationBuilder::hostIP ( const std::string &  host_ip)
inline

Definition at line 82 of file scanner_config_builder.h.

◆ nrSubscribers()

ScannerConfigurationBuilder & psen_scan_v2_standalone::ScannerConfigurationBuilder::nrSubscribers ( const uint8_t &  nr_subscribers = 0)
inline

Definition at line 156 of file scanner_config_builder.h.

◆ operator ScannerConfiguration()

psen_scan_v2_standalone::ScannerConfigurationBuilder::operator ScannerConfiguration ( )

Definition at line 166 of file scanner_config_builder.h.

◆ scannerControlPort()

ScannerConfigurationBuilder & psen_scan_v2_standalone::ScannerConfigurationBuilder::scannerControlPort ( const int &  scanner_control_port)
inline

Definition at line 115 of file scanner_config_builder.h.

◆ scannerDataPort()

ScannerConfigurationBuilder & psen_scan_v2_standalone::ScannerConfigurationBuilder::scannerDataPort ( const int &  scanner_data_port)
inline

Definition at line 109 of file scanner_config_builder.h.

◆ scannerIp()

ScannerConfigurationBuilder & psen_scan_v2_standalone::ScannerConfigurationBuilder::scannerIp ( const std::string &  scanner_ip)
inline

Definition at line 103 of file scanner_config_builder.h.

◆ scanRange()

ScannerConfigurationBuilder & psen_scan_v2_standalone::ScannerConfigurationBuilder::scanRange ( const ScanRange scan_range)
inline

Definition at line 121 of file scanner_config_builder.h.

◆ scanResolution()

ScannerConfigurationBuilder & psen_scan_v2_standalone::ScannerConfigurationBuilder::scanResolution ( const util::TenthOfDegree scan_resolution)
inline

Definition at line 128 of file scanner_config_builder.h.

Member Data Documentation

◆ config_

ScannerConfiguration psen_scan_v2_standalone::ScannerConfigurationBuilder::config_
private

Definition at line 60 of file scanner_config_builder.h.


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


psen_scan_v2
Author(s): Pilz GmbH + Co. KG
autogenerated on Sat Jun 22 2024 02:46:12