Home2L - Python API v1.4-0-g38cc (2024-05-25)
Smart Tools for a Private Home
Public Member Functions | List of all members
CRcSubscriber Class Reference

Description

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'.
Inheritance diagram for CRcSubscriber:
Inheritance graph
[legend]

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)
 

Member Function Documentation

◆ Register()

def Register (   self,
  _lid 
)
Register(CRcSubscriber self, char const * _lid) -> bool

◆ Unregister()

def Unregister (   self)
Unregister(CRcSubscriber self)

◆ Lid()

def Lid (   self)
Lid(CRcSubscriber self) -> char const *

◆ Gid()

def Gid (   self)
Gid(CRcSubscriber self) -> char const *

◆ TypeId()

def TypeId (   self)
TypeId(CRcSubscriber self) -> char const *

Reimplemented from CRcEventProcessor.

◆ InstId()

def InstId (   self)
InstId(CRcSubscriber self) -> char const *

Reimplemented from CRcEventProcessor.

◆ ToStr()

def ToStr (   self,
  ret 
)
ToStr(CRcSubscriber self, CString * ret) -> char const *

Reimplemented from CRcEventProcessor.

◆ IsEmpty()

def IsEmpty (   self)
IsEmpty(CRcSubscriber self) -> bool

◆ AddResource()

def AddResource (   self,
  rc 
)
AddResource(CRcSubscriber self, CResource rc) -> CResource

◆ AddResources()

def AddResources (   self,
  pattern 
)
AddResources(CRcSubscriber self, char const * pattern) -> CResource

◆ DelResource()

def DelResource (   self,
  rc 
)
DelResource(CRcSubscriber self, CResource rc)

◆ DelResources()

def DelResources (   self,
  pattern 
)
DelResources(CRcSubscriber self, char const * pattern)

◆ Clear()

def Clear (   self)
Clear(CRcSubscriber self)

◆ Subscribe()

def Subscribe (   self,
args 
)
    Subscribe(CRcSubscriber self, CResource rc) -> CResource
    Subscribe(CRcSubscriber self, char const * uri) -> CResource

◆ Unsubscribe()

def Unsubscribe (   self,
args 
)
    Unsubscribe(CRcSubscriber self, CResource rc)
    Unsubscribe(CRcSubscriber self, char const * pattern)

◆ PrintInfo()

def PrintInfo (   self,
args 
)
PrintInfo(CRcSubscriber self, FILE * f=stdout, int verbosity=1)