|
MT Showcase SDK
|
Component interface for graph generators. More...
#include <GraphGenerators.hpp>
Public Member Functions | |
| virtual QString | protocol () const =0 |
| This will return protocol name for the generator. More... | |
| virtual bool | init (const GraphNode &n) |
| This will initialize the generator. More... | |
Public Member Functions inherited from Showcase::Generator< NodeEvent > | |
| virtual folly::Future< NodeEvent > | next (folly::Executor *executor=nullptr)=0 |
| Initiate generation of the next value. More... | |
Component interface for graph generators.
Instance of graph generator is created when querying children of the node
|
virtual |
This will initialize the generator.
No time consuming tasks should be done in init. The default implementation checks that the protocol-part in node id matches to the protocol of this generator.
|
pure virtual |
This will return protocol name for the generator.
Protocol name is assumed to be Prefix of the node id. For example the id for some node from file system would be file://path/to/node and its protocol would be 'file'.