EpcTools
An event based multi-threaded C++ development framework.
Public Member Functions | List of all members
EIpFilterRule::Port Class Reference

Represents a single port or a range of ports. More...

#include <eip.h>

Public Member Functions

 Port (UShort first=0, UShort last=0)
 Default constructor. More...
 
 Port (const Port &p)
 Copy constructor. More...
 
UShort first () const
 retrieves the first port in the range. More...
 
UShort last () const
 retrieves the last port in the range. More...
 
PortsetFirst (UShort first)
 sets the first port in the range. More...
 
PortsetLast (UShort last)
 sets the last port in the range. More...
 
PortsetFirstLast (UShort first, UShort last)
 sets the first and last port in the range. More...
 

Detailed Description

Represents a single port or a range of ports.

Constructor & Destructor Documentation

EIpFilterRule::Port::Port ( UShort  first = 0,
UShort  last = 0 
)
inline

Default constructor.

Parameters
firstthe first port number in the range.
lastthe last port number in the range.
EIpFilterRule::Port::Port ( const Port p)
inline

Copy constructor.

Parameters
pthe Port object to copy.

Member Function Documentation

UShort EIpFilterRule::Port::first ( ) const
inline

retrieves the first port in the range.

Returns
the first port in the range.
UShort EIpFilterRule::Port::last ( ) const
inline

retrieves the last port in the range.

Returns
the last port in the range.
Port& EIpFilterRule::Port::setFirst ( UShort  first)
inline

sets the first port in the range.

Parameters
firstthe first port in the range.
Returns
a reference to this object.
Port& EIpFilterRule::Port::setFirstLast ( UShort  first,
UShort  last 
)
inline

sets the first and last port in the range.

Parameters
firstthe first port in the range.
lastthe last port in the range.
Returns
a reference to this object.
Port& EIpFilterRule::Port::setLast ( UShort  last)
inline

sets the last port in the range.

Parameters
lastthe last port in the range.
Returns
a reference to this object.

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