# Python stubs generated by omniidl from /home/astrisw/TestMaster/testPingComp1/src/../idl/testPingComp1.idl
# DO NOT EDIT THIS FILE!

import omniORB, _omnipy
from omniORB import CORBA, PortableServer
_0_CORBA = CORBA


_omnipy.checkVersion(4,2, __file__, 1)

try:
    property
except NameError:
    def property(*args):
        return None


# #include "acserr.idl"
import acserr_idl
_0_ACSErr = omniORB.openModule("ACSErr")
_0_ACSErr__POA = omniORB.openModule("ACSErr__POA")

# #include "acscommon.idl"
import acscommon_idl
_0_ACS = omniORB.openModule("ACS")
_0_ACS__POA = omniORB.openModule("ACS__POA")
_0_log_audience = omniORB.openModule("log_audience")
_0_log_audience__POA = omniORB.openModule("log_audience__POA")
_0_acscommon = omniORB.openModule("acscommon")
_0_acscommon__POA = omniORB.openModule("acscommon__POA")

# #include "acscomponent.idl"
import acscomponent_idl
_0_ACS = omniORB.openModule("ACS")
_0_ACS__POA = omniORB.openModule("ACS__POA")

#
# Start of module "test"
#
__name__ = "test"
_0_test = omniORB.openModule("test", r"/home/astrisw/TestMaster/testPingComp1/src/../idl/testPingComp1.idl")
_0_test__POA = omniORB.openModule("test__POA", r"/home/astrisw/TestMaster/testPingComp1/src/../idl/testPingComp1.idl")


# interface testPingComp1
_0_test._d_testPingComp1 = (omniORB.tcInternal.tv_objref, "IDL:astri/test/testPingComp1:1.0", "testPingComp1")
omniORB.typeMapping["IDL:astri/test/testPingComp1:1.0"] = _0_test._d_testPingComp1
_0_test.testPingComp1 = omniORB.newEmptyClass()
class testPingComp1 (_0_ACS.ACSComponent, _0_ACS.PingableResource):
    _NP_RepositoryId = _0_test._d_testPingComp1[1]

    def __init__(self, *args, **kw):
        raise RuntimeError("Cannot construct objects of this type.")

    _nil = CORBA.Object._nil

    CHANNELNAME_TEST = "testChannel"
    
    # struct testPingCompNotificationEvent
    _0_test.testPingComp1.testPingCompNotificationEvent = omniORB.newEmptyClass()
    class testPingCompNotificationEvent (omniORB.StructBase):
        _NP_RepositoryId = "IDL:astri/test/testPingComp1/testPingCompNotificationEvent:1.0"

        _NP_ClassName = "test.testPingComp1.testPingCompNotificationEvent"

        def __init__(self, timestamp, msgtype, txt):
            self.timestamp = timestamp
            self.msgtype = msgtype
            self.txt = txt
    
    _d_testPingCompNotificationEvent  = _0_test.testPingComp1._d_testPingCompNotificationEvent = (omniORB.tcInternal.tv_struct, testPingCompNotificationEvent, testPingCompNotificationEvent._NP_RepositoryId, "testPingCompNotificationEvent", "timestamp", (omniORB.tcInternal.tv_string,0), "msgtype", (omniORB.tcInternal.tv_string,0), "txt", (omniORB.tcInternal.tv_string,0))
    _tc_testPingCompNotificationEvent = omniORB.tcInternal.createTypeCode(_d_testPingCompNotificationEvent)
    omniORB.registerType(testPingCompNotificationEvent._NP_RepositoryId, _d_testPingCompNotificationEvent, _tc_testPingCompNotificationEvent)


_0_test.testPingComp1 = testPingComp1
_0_test._tc_testPingComp1 = omniORB.tcInternal.createTypeCode(_0_test._d_testPingComp1)
omniORB.registerType(testPingComp1._NP_RepositoryId, _0_test._d_testPingComp1, _0_test._tc_testPingComp1)

# testPingComp1 operations and attributes
testPingComp1._d_sayHello = ((), ((omniORB.tcInternal.tv_string,0), ), None)
testPingComp1._d_sayHelloWithParameters = (((omniORB.tcInternal.tv_string,0), omniORB.tcInternal.tv_double), ((omniORB.tcInternal.tv_string,0), omniORB.tcInternal.tv_double, omniORB.tcInternal.tv_long), None)

# testPingComp1 object reference
class _objref_testPingComp1 (_0_ACS._objref_ACSComponent, _0_ACS._objref_PingableResource):
    _NP_RepositoryId = testPingComp1._NP_RepositoryId

    def __init__(self, obj):
        _0_ACS._objref_ACSComponent.__init__(self, obj)
        _0_ACS._objref_PingableResource.__init__(self, obj)

    def sayHello(self, *args):
        return self._obj.invoke("sayHello", _0_test.testPingComp1._d_sayHello, args)

    def sayHelloWithParameters(self, *args):
        return self._obj.invoke("sayHelloWithParameters", _0_test.testPingComp1._d_sayHelloWithParameters, args)

omniORB.registerObjref(testPingComp1._NP_RepositoryId, _objref_testPingComp1)
_0_test._objref_testPingComp1 = _objref_testPingComp1
del testPingComp1, _objref_testPingComp1

# testPingComp1 skeleton
__name__ = "test__POA"
class testPingComp1 (_0_ACS__POA.ACSComponent, _0_ACS__POA.PingableResource):
    _NP_RepositoryId = _0_test.testPingComp1._NP_RepositoryId


    _omni_op_d = {"sayHello": _0_test.testPingComp1._d_sayHello, "sayHelloWithParameters": _0_test.testPingComp1._d_sayHelloWithParameters}
    _omni_op_d.update(_0_ACS__POA.ACSComponent._omni_op_d)
    _omni_op_d.update(_0_ACS__POA.PingableResource._omni_op_d)

testPingComp1._omni_skeleton = testPingComp1
_0_test__POA.testPingComp1 = testPingComp1
omniORB.registerSkeleton(testPingComp1._NP_RepositoryId, testPingComp1)
del testPingComp1
__name__ = "test"

#
# End of module "test"
#
__name__ = "testPingComp1_idl"

_exported_modules = ( "test", )

# The end.
