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)
 
 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 34 of file scanner_config_builder.h.

Constructor & Destructor Documentation

◆ ScannerConfigurationBuilder()

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

Definition at line 61 of file scanner_config_builder.h.

Member Function Documentation

◆ build()

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

Definition at line 66 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 136 of file scanner_config_builder.h.

◆ enableFragmentedScans()

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

Definition at line 148 of file scanner_config_builder.h.

◆ enableIntensities()

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

Definition at line 142 of file scanner_config_builder.h.

◆ hostControlPort()

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

Definition at line 95 of file scanner_config_builder.h.

◆ hostDataPort()

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

Definition at line 89 of file scanner_config_builder.h.

◆ hostIP()

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

Definition at line 80 of file scanner_config_builder.h.

◆ operator ScannerConfiguration()

psen_scan_v2_standalone::ScannerConfigurationBuilder::operator ScannerConfiguration ( )

Definition at line 154 of file scanner_config_builder.h.

◆ scannerControlPort()

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

Definition at line 113 of file scanner_config_builder.h.

◆ scannerDataPort()

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

Definition at line 107 of file scanner_config_builder.h.

◆ scannerIp()

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

Definition at line 101 of file scanner_config_builder.h.

◆ scanRange()

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

Definition at line 119 of file scanner_config_builder.h.

◆ scanResolution()

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

Definition at line 126 of file scanner_config_builder.h.

Member Data Documentation

◆ config_

ScannerConfiguration psen_scan_v2_standalone::ScannerConfigurationBuilder::config_
private

Definition at line 58 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 Nov 5 2022 02:13:36