Switchboard Extension SDK
Loading...
Searching...
No Matches
SwitchboardObjectResolver.hpp
1//
2// SwitchboardObjectResolver.hpp
3// SwitchboardSDK
4//
5
6#pragma once
7
8#include <string>
9#include <switchboard/export.h>
10
11namespace switchboard {
12
14class SwitchboardObjectStore;
15
23class SWITCHBOARDSDK_EXPORT SwitchboardObjectResolver {
24public:
28 static SwitchboardObjectResolver& getInstance();
29
30 SwitchboardObjectResolver(const SwitchboardObjectResolver&) = delete;
31 SwitchboardObjectResolver& operator=(const SwitchboardObjectResolver&) = delete;
32
40 SwitchboardObject* getObject(const std::string& objectID);
41
42private:
43 SwitchboardObjectResolver();
44
45 SwitchboardObjectStore* objectStore;
46};
47
48}
SwitchboardObject interface.
Definition SwitchboardObject.hpp:31
SwitchboardObject * getObject(const std::string &objectID)
Resolves an object by its id (or URI).
static SwitchboardObjectResolver & getInstance()
Returns the shared resolver instance.