OutPortConsumer.py
Go to the documentation of this file.
1 #!/usr/bin/env python
2 # -*- coding: euc-jp -*-
3 
4 
17 
18 import OpenRTM_aist
19 
20 
40  """
41  """
42 
43 
50  class subscribe:
51  # subscribe(const SDOPackage::NVList& prop)
52  def __init__(self, prop):
53  self._prop = prop
54  return
55 
56  # void operator()(OutPortConsumer* consumer)
57  def __call__(self, consumer):
58  consumer.subscribeInterface(self._prop)
59  return
60 
61 
68  class unsubscribe:
69  # unsubscribe(const SDOPackage::NVList& prop)
70  def __init__(self, prop):
71  self._prop = prop
72  return
73 
74  # void operator()(OutPortConsumer* consumer)
75  def __call__(self, consumer):
76  consumer.unsubscribeInterface(self._prop)
77  return
78 
79 
80 outportconsumerfactory = None
81 
83  def __init__(self):
84  OpenRTM_aist.Factory.__init__(self)
85  pass
86 
87 
88  def __del__(self):
89  pass
90 
91 
92  def instance():
93  global outportconsumerfactory
94 
95  if outportconsumerfactory is None:
96  outportconsumerfactory = OutPortConsumerFactory()
97 
98  return outportconsumerfactory
99 
100  instance = staticmethod(instance)
OpenRTM_aist.OutPortConsumer.OutPortConsumerFactory.__init__
def __init__(self)
Definition: OutPortConsumer.py:83
OpenRTM_aist.OutPortConsumer.OutPortConsumerFactory
Definition: OutPortConsumer.py:82
OpenRTM_aist.OutPortConsumer.OutPortConsumer
OutPortConsumer class.
Definition: OutPortConsumer.py:39
OpenRTM_aist.OutPortConsumer.OutPortConsumer.subscribe.__init__
def __init__(self, prop)
Definition: OutPortConsumer.py:52
OpenRTM_aist.OutPortConsumer.OutPortConsumerFactory.__del__
def __del__(self)
Definition: OutPortConsumer.py:88
OpenRTM_aist.OutPortConsumer.OutPortConsumer.unsubscribe.__call__
def __call__(self, consumer)
Definition: OutPortConsumer.py:75
OpenRTM_aist.OutPortConsumer.OutPortConsumerFactory.instance
instance
Definition: OutPortConsumer.py:100
OpenRTM_aist.OutPortConsumer.OutPortConsumer.unsubscribe._prop
_prop
Definition: OutPortConsumer.py:71
OpenRTM_aist.OutPortConsumer.OutPortConsumer.subscribe.__call__
def __call__(self, consumer)
Definition: OutPortConsumer.py:57
OpenRTM_aist.OutPortConsumer.OutPortConsumer.subscribe
Functor to subscribe the interface.
Definition: OutPortConsumer.py:50
OpenRTM_aist.DataPortStatus.DataPortStatus
DataPortStatus mixin class.
Definition: DataPortStatus.py:47
OpenRTM_aist.OutPortConsumer.OutPortConsumer.subscribe._prop
_prop
Definition: OutPortConsumer.py:53
OpenRTM_aist.OutPortConsumer.OutPortConsumer.unsubscribe
Functor to unsubscribe the interface.
Definition: OutPortConsumer.py:68
OpenRTM_aist.GlobalFactory.Factory
Definition: GlobalFactory.py:23
OpenRTM_aist.OutPortConsumer.OutPortConsumer.unsubscribe.__init__
def __init__(self, prop)
Definition: OutPortConsumer.py:70


openrtm_aist_python
Author(s): Shinji Kurihara
autogenerated on Mon Apr 21 2025 02:45:06