#include <disconodehandler.h>
Inherited by Adhoc.
Inheritance diagram for DiscoNodeHandler:
Public Member Functions | |
virtual | ~DiscoNodeHandler () |
virtual StringList | handleDiscoNodeFeatures (const std::string &node)=0 |
virtual StringMap | handleDiscoNodeIdentities (const std::string &node, std::string &name)=0 |
virtual StringMap | handleDiscoNodeItems (const std::string &node="")=0 |
Incoming disco::info and disco::items queries are delegated to their respective handlers.
Definition at line 31 of file disconodehandler.h.
virtual ~DiscoNodeHandler | ( | ) | [inline, virtual] |
Virtual Destructor.
Definition at line 37 of file disconodehandler.h.
virtual StringList handleDiscoNodeFeatures | ( | const std::string & | node | ) | [pure virtual] |
In addition to handleDiscoNodeIdentities
, this function is used to gather more information on a specific node. It is called when a disco::info query arrives with a node attribute that matches the one registered for this handler.
node | The node this handler is supposed to handle. |
Implemented in Adhoc.
virtual StringMap handleDiscoNodeIdentities | ( | const std::string & | node, | |
std::string & | name | |||
) | [pure virtual] |
In addition to handleDiscoNodeFeatures
, this function is used to gather more information on a specific node. It is called when a disco::info query arrives with a node attribute that matches the one registered for this handler.
node | The node this handler is supposed to handle. | |
name | This parameter is currently used as additional return value. Just fill in the name of the node. |
Implemented in Adhoc.
virtual StringMap handleDiscoNodeItems | ( | const std::string & | node = "" |
) | [pure virtual] |
This function is used to gather more information on a specific node. It is called when a disco::items query arrives with a node attribute that matches the one registered for this handler. If node is empty, items for the root node (no node) shall be returned.
node | The node this handler is supposed to handle. |
Implemented in Adhoc.