예제 #1
0
    def __init__(self,capsule,isNTTable = None) :
        """Constructor

        capsule Must be a pvStructure capsule
        This is created by other code that wraps a C++ method the
        returns a capsule.
        """
        if (isNTTable is None) :
            self.cppPvt = nttablePy._init(capsule)
        else :
            self.cppPvt = nttablePy._init1(capsule)
예제 #2
0
    def __init__(self, arg):
        """Constructor

        arg must be a dictionary or a pvStructure capsule
        A capsule is created by other code that wraps a C++ method the
        returns a capsule.
        """
        if isinstance(arg, dict):
            self.cppPvt = nttablePy._create(arg)
        else:
            self.cppPvt = nttablePy._init(arg)