hwsd  1.3.1
Local and remote ZeroConf service discovery for hardware resources
hwsd::SessionFilter Class Reference

Filters for a specific session. More...

#include <filter.h>

+ Inheritance diagram for hwsd::SessionFilter:
+ Collaboration diagram for hwsd::SessionFilter:

Public Member Functions

 SessionFilter (const std::string &name)
 Matches the given name literally. More...
 
virtual bool operator() (const GPUInfos &current, const GPUInfo &candidate)
 
virtual bool operator() (const NetInfos &current, const NetInfo &candidate)
 
- Public Member Functions inherited from hwsd::Filter
 Filter ()
 Create a new filter. More...
 
virtual ~Filter ()
 Destruct this filter. More...
 
FilterPtr operator| (FilterPtr rhs)
 Chain another filter to this one. More...
 
FilterPtr operator|= (FilterPtr rhs)
 Chain another filter to this one. More...
 

Detailed Description

Filters for a specific session.

Definition at line 120 of file filter.h.

Constructor & Destructor Documentation

hwsd::SessionFilter::SessionFilter ( const std::string &  name)
explicit

Matches the given name literally.

An empty name matches all sessions.

Member Function Documentation

virtual bool hwsd::SessionFilter::operator() ( const GPUInfos &  current,
const GPUInfo candidate 
)
virtual
Returns
true if the candidate has the given session.
Version
1.0

Reimplemented from hwsd::Filter.


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