#include <nap/serviceobjectgraphitem.h>
Public Types | |
using | Type = Service * |
Public Member Functions | |
ServiceObjectGraphItem ()=default | |
~ServiceObjectGraphItem ()=default | |
const std::string | getID () const |
bool | getPointees (std::vector< ServiceObjectGraphItem > &pointees, utility::ErrorState &errorState) |
Static Public Member Functions | |
static const ServiceObjectGraphItem | create (Service *service, std::vector< Service * > *services) |
Public Attributes | |
Service * | mObject = nullptr |
std::vector< Service * > * | mServices = nullptr |
Service item that can be used in an ObjectGraph This item wraps a service that points to another set of services
|
default |
|
default |
|
static |
Creates a new item that is used to build the graph
service | the service to create the item for |
services | all available services |
const std::string getID | ( | ) | const |
bool getPointees | ( | std::vector< ServiceObjectGraphItem > & | pointees, |
utility::ErrorState & | errorState | ||
) |
Performs the traversal of services Every service can reference another service, based on those dependencies the graph is constructed
pointees | Output parameter, contains all objects and files this object points to. |
errorState | If false is returned, contains information about the error. |
Service* mObject = nullptr |
std::vector<Service*>* mServices = nullptr |