def python_create_my_record(test, test1, test2, test3, test3_1, test4, test4_1, test5, test6, test7, test8, test9, test10, test10_1, test11, test13, test14, test15, test16, test17): py_rec = MyRecord( CPyPrimitive.toPy(test), CPyBoxedU32.toPyOpt(test1), CPyObject.toPy(ListUint32THelper.c_data_set, test2), CPyString.toPy(test3), CPyString.toPyOpt(test3_1), CPyDate.toPy(test4), CPyBoxedDate.toPyOpt(test4_1), CPyBinary.toPy(test5), CPyObject.toPy(ListBinaryHelper.c_data_set, test6), CPyObjectProxy.toPyObj(SetInt32THelper.c_data_set, test7), CPyObjectProxy.toPyObj(MapInt32TStringHelper.c_data_set, test8), CPyRecord.toPy(Rc.c_data_set, test9), CPyRecord.toPyOpt(Rc.c_data_set, test10), CPyObject.toPy(ListRecordRcHelper.c_data_set, test10_1), CPyEnum.toPy(MyEnum, test11), CPyEnum.toPyOpt(MyEnum, test13), CPyBoxedI16.toPyOpt(test14), CPyObject.toPy(ListEnumMyEnumHelper.c_data_set, test15), CPyObjectProxy.toPyObj(SetEnumMyEnumHelper.c_data_set, test16), CPyObjectProxy.toPyObj(MapEnumMyEnumInt16THelper.c_data_set, test17)) return CPyRecord.fromPy(MyRecord.c_data_set, py_rec) #to do: can be optional?
def get_optional_containers_record(self): _ret_c = lib.cw__foo_containers_interface_get_optional_containers_record( self._cpp_impl) CPyException.toPyCheckAndRaise(_ret_c) _ret = CPyRecord.toPyOpt(FooContainersRecord.c_data_set, _ret_c) return _ret
def get_optional_containers_record(self): _ret_c = lib.cw__foo_containers_interface_get_optional_containers_record(self._cpp_impl) CPyException.toPyCheckAndRaise(_ret_c) _ret = CPyRecord.toPyOpt(FooContainersRecord.c_data_set, _ret_c) return _ret
def python_create_json_record(optional_rc): py_rec = JsonRecord( CPyRecord.toPyOpt(Rc.c_data_set, optional_rc)) return CPyRecord.fromPy(JsonRecord.c_data_set, py_rec) #to do: can be optional?