Exemple #1
0
def createValueTC(id, name, modifier, base, members):
    base_desc = base._d

    if modifier == VM_TRUNCATABLE:
        if base_desc == tv_null:
            raise BAD_PARAM(omniORB.BAD_PARAM_InvalidTypeCode, COMPLETED_NO)
        base_ids = base_desc[5]
        if base_ids is None:
            base_ids = (id, base_desc[2])
        else:
            base_ids = (id, ) + base_ids
    else:
        base_ids = None

    dlist = [
        tv_value,
        omniORB.createUnknownValue(id, base_desc), id, name, modifier,
        base_ids, base_desc
    ]
    for m in members:
        dlist.append(m.name)
        dlist.append(m.type._d)
        dlist.append(m.access)

    return createTypeCode(tuple(dlist))
Exemple #2
0
def createValueTC(id, name, modifier, base, members):
    base_desc = base._d

    if modifier == VM_TRUNCATABLE:
        if base_desc == tv_null:
            raise BAD_PARAM(omniORB.BAD_PARAM_InvalidTypeCode, COMPLETED_NO)
        base_ids = base_desc[5]
        if base_ids is None:
            base_ids = (id, base_desc[2])
        else:
            base_ids = (id,) + base_ids
    else:
        base_ids = None

    dlist = [tv_value, omniORB.createUnknownValue(id, base_desc),
             id, name, modifier, base_ids, base_desc]
    for m in members:
        dlist.append(m.name)
        dlist.append(m.type._d)
        dlist.append(m.access)

    return createTypeCode(tuple(dlist))
Exemple #3
0
def createValueBoxTC(id, name, boxed_type):
    d = (tv_value_box, omniORB.createUnknownValue(id, tv_null), id, name,
         boxed_type._d)
    return createTypeCode(d)
Exemple #4
0
def createValueBoxTC(id, name, boxed_type):
    d = (tv_value_box, omniORB.createUnknownValue(id, tv_null),
         id, name, boxed_type._d)
    return createTypeCode(d)