OpenTwin 0.1
OpenTwin
 
Loading...
Searching...
No Matches
ot::PortRange Class Reference

The PortRange may be used to store a Port range. More...

#include "PortManager.h"

Public Member Functions

 PortRange ()
 Default constructor.
 
 PortRange (ot::port_t _from, ot::port_t _to)
 Assignment constructor.
 
 PortRange (const PortRange &_other)
 Copy constructor.
 
PortRangeoperator= (const PortRange &_other)
 Assignment operator.
 
void set (ot::port_t _from, ot::port_t _to)
 Will set the port range.
 
void setFrom (ot::port_t _from)
 Set the starting port.
 
void setTo (ot::port_t _to)
 Set the final port.
 
ot::port_t from (void) const
 Starting port.
 
ot::port_t to (void) const
 Final port.
 

Detailed Description

The PortRange may be used to store a Port range.

Note
Note that the port number must not exceed 49,151.

Constructor & Destructor Documentation

◆ PortRange() [1/3]

ot::PortRange::PortRange ( )

Default constructor.

◆ PortRange() [2/3]

ot::PortRange::PortRange ( ot::port_t _from,
ot::port_t _to )

Assignment constructor.

Parameters
_fromThe starting port.
_toThe final port.

◆ PortRange() [3/3]

ot::PortRange::PortRange ( const PortRange & _other)

Copy constructor.

Parameters
_otherThe other range.

Member Function Documentation

◆ from()

ot::port_t ot::PortRange::from ( void ) const
inline

Starting port.

◆ operator=()

ot::PortRange & ot::PortRange::operator= ( const PortRange & _other)

Assignment operator.

Parameters
_otherThe other range.

◆ set()

void ot::PortRange::set ( ot::port_t _from,
ot::port_t _to )

Will set the port range.

◆ setFrom()

void ot::PortRange::setFrom ( ot::port_t _from)
inline

Set the starting port.

◆ setTo()

void ot::PortRange::setTo ( ot::port_t _to)
inline

Set the final port.

◆ to()

ot::port_t ot::PortRange::to ( void ) const
inline

Final port.


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