def write_ctocpp_header(header, clsname, dir):
    cls = header.get_class(clsname)
    dir = os.path.dirname(os.path.join(dir, cls.get_file_name()))
    file = os.path.join(dir, (get_capi_name(clsname[3:], False) + '_ctocpp.h'))
    newcontents = make_ctocpp_header(header, clsname)
    return (file, newcontents)
def write_ctocpp_header(header, clsname, dir):
    cls = header.get_class(clsname)
    dir = os.path.dirname(os.path.join(dir, cls.get_file_name()))
    file = os.path.join(dir, (get_capi_name(clsname[3:], False) + '_ctocpp.h'))
    newcontents = make_ctocpp_header(header, clsname)
    return (file, newcontents)