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_python
Author(s): Shinji Kurihara
autogenerated on Mon Feb 28 2022 23:01:06