Home2L - Python API v1.4-0-g38cc (2024-05-25)
Smart Tools for a Private Home
|
Subscription to any number of resources. A subscriber monitors any number of resources. The resources can be specified by their real URIs or alias names. Wildcards as well as presently unkown resources are allowed. Events can be fetched using 'Select ()' and 'PollEvent'.
Public Member Functions | |
def | Register (self, _lid) |
def | Unregister (self) |
def | Lid (self) |
def | Gid (self) |
def | TypeId (self) |
def | InstId (self) |
def | ToStr (self, ret) |
def | IsEmpty (self) |
def | AddResource (self, rc) |
def | AddResources (self, pattern) |
def | DelResource (self, rc) |
def | DelResources (self, pattern) |
def | Clear (self) |
def | Subscribe (self, *args) |
def | Unsubscribe (self, *args) |
def | PrintInfo (self, *args) |
Public Member Functions inherited from CRcEventProcessor | |
def | PutEvent (self, ev) |
def | SetInSelectSet (self, _inSelectSet) |
def | InSelectSet (self) |
def | TypeId (self) |
def | InstId (self) |
def | ToStr (self, ret) |
def | PollEvent (self) |
Additional Inherited Members | |
Static Public Member Functions inherited from CRcEventProcessor | |
def | Select (maxTime=-1) |
def Register | ( | self, | |
_lid | |||
) |
Register(CRcSubscriber self, char const * _lid) -> bool
def Unregister | ( | self | ) |
Unregister(CRcSubscriber self)
def Lid | ( | self | ) |
Lid(CRcSubscriber self) -> char const *
def Gid | ( | self | ) |
Gid(CRcSubscriber self) -> char const *
def TypeId | ( | self | ) |
TypeId(CRcSubscriber self) -> char const *
Reimplemented from CRcEventProcessor.
def InstId | ( | self | ) |
InstId(CRcSubscriber self) -> char const *
Reimplemented from CRcEventProcessor.
def ToStr | ( | self, | |
ret | |||
) |
ToStr(CRcSubscriber self, CString * ret) -> char const *
Reimplemented from CRcEventProcessor.
def IsEmpty | ( | self | ) |
IsEmpty(CRcSubscriber self) -> bool
def AddResource | ( | self, | |
rc | |||
) |
AddResource(CRcSubscriber self, CResource rc) -> CResource
def AddResources | ( | self, | |
pattern | |||
) |
AddResources(CRcSubscriber self, char const * pattern) -> CResource
def DelResource | ( | self, | |
rc | |||
) |
DelResource(CRcSubscriber self, CResource rc)
def DelResources | ( | self, | |
pattern | |||
) |
DelResources(CRcSubscriber self, char const * pattern)
def Clear | ( | self | ) |
Clear(CRcSubscriber self)
def Subscribe | ( | self, | |
* | args | ||
) |
Subscribe(CRcSubscriber self, CResource rc) -> CResource Subscribe(CRcSubscriber self, char const * uri) -> CResource
def Unsubscribe | ( | self, | |
* | args | ||
) |
Unsubscribe(CRcSubscriber self, CResource rc) Unsubscribe(CRcSubscriber self, char const * pattern)
def PrintInfo | ( | self, | |
* | args | ||
) |
PrintInfo(CRcSubscriber self, FILE * f=stdout, int verbosity=1)