hwsd  1.4.0
Local and remote ZeroConf service discovery for hardware resources
hwsd::Module< T > Class Template Referenceabstract

Base class for runtime-attached DSOs of a query implementation. More...

#include <module.h>

+ Inheritance diagram for hwsd::Module< T >:
+ Collaboration diagram for hwsd::Module< T >:

Public Member Functions

 Module ()
 Register and construct a new module. More...
 
virtual ~Module ()
 Destruct this module. More...
 
virtual bool announce (const std::string &session) const
 Announce the information about all found resources. More...
 
virtual T discover () const =0
 

Public Attributes

Module< T > * next_
 

Static Public Attributes

static HWSD_INL Module< T > * stack_
 

Detailed Description

template<typename T>
class hwsd::Module< T >

Base class for runtime-attached DSOs of a query implementation.

Definition at line 32 of file module.h.

Constructor & Destructor Documentation

template<typename T >
hwsd::Module< T >::Module ( )

Register and construct a new module.

Version
1.0

Definition at line 23 of file module.ipp.

template<typename T >
hwsd::Module< T >::~Module ( )
virtual

Destruct this module.

Version
1.0

Definition at line 42 of file module.ipp.

Member Function Documentation

template<typename T >
bool hwsd::Module< T >::announce ( const std::string &  session) const
virtual

Announce the information about all found resources.

The default announcement goes to std::cout.

Returns
true if announcement was successful
Version
1.0

Reimplemented in hwsd::gpu::dns_sd::Module, and hwsd::net::dns_sd::Module.

Definition at line 60 of file module.ipp.

template<typename T>
virtual T hwsd::Module< T >::discover ( ) const
pure virtual
Returns
information about all found resources.
Version
1.0

Implemented in hwsd::gpu::glx::Module, hwsd::gpu::dns_sd::Module, hwsd::net::dns_sd::Module, and hwsd::net::sys::Module.


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