SdoServiceConsumerBase.py
Go to the documentation of this file.
00001 #!/usr/bin/env python
00002 # -*- coding: euc-jp -*-
00003 
00004 ##
00005 # @file SdoServiceConsumerBase.py
00006 # @brief SDO service consumer base class and its factory
00007 # @date $Date$
00008 # @author Noriaki Ando <n-ando@aist.go.jp> and Shinji Kurihara
00009 #
00010 # Copyright (C) 2011
00011 #     Intelligent Systems Research Institute,
00012 #     National Institute of
00013 #         Advanced Industrial Science and Technology (AIST), Japan
00014 #     All rights reserved.
00015 
00016 import SDOPackage
00017 import OpenRTM_aist
00018 
00019 
00020 ##
00021 # @if jp
00022 #
00023 # SdoServiceConsumerFactory&
00024 #                     factory(SdoServiceConsumerFactory.instance());
00025 #
00026 # factory.addFactory(toRepositoryId<IDL Type>(),
00027 #                   Creator< SdoServiceConsumerBase,
00028 #                            your_sdo_service_consumer_subclass>,
00029 #                   Destructor< SdoServiceConsumerBase,
00030 #                            your_sdo_service_consumer_subclass>);
00031 #
00032 # @else
00033 #
00034 #
00035 #
00036 # @endif
00037 class SdoServiceConsumerBase:
00038   """
00039   """
00040 
00041   def __init__(self):
00042     pass
00043 
00044   def __del__(self):
00045     pass
00046 
00047   # virtual bool init(RTObject_impl& rtobj,
00048   #                   const SDOPackage::ServiceProfile& profile) = 0;
00049   def init(self, rtobj, profile):
00050     pass
00051 
00052 
00053   # virtual bool reinit(const SDOPackage::ServiceProfile& profile) = 0;
00054   def reinit(self, profile):
00055     pass
00056 
00057 
00058   # virtual const SDOPackage::ServiceProfile& getProfile() const = 0;
00059   def getProfile(self):
00060     pass
00061 
00062   # virtual void finalize() = 0;
00063   def finalize(self):
00064     pass
00065 
00066 sdoserviceconsumerfactory = None
00067 
00068 class SdoServiceConsumerFactory(OpenRTM_aist.Factory,SdoServiceConsumerBase):
00069   def __init__(self):
00070     OpenRTM_aist.Factory.__init__(self)
00071     return
00072 
00073   def __del__(self):
00074     pass
00075 
00076   def instance():
00077     global sdoserviceconsumerfactory
00078 
00079     if sdoserviceconsumerfactory is None:
00080       sdoserviceconsumerfactory = SdoServiceConsumerFactory()
00081 
00082     return sdoserviceconsumerfactory
00083 
00084   instance = staticmethod(instance)


openrtm_aist_python
Author(s): Shinji Kurihara
autogenerated on Thu Aug 27 2015 14:17:28