示例#1
0
    def getInitedGlobalNameInfo():
        """ Returns a defualt initialized GlobalNameInfo instance."""
        info = GlobalNameInfo()
        info.xing_char_count = 0;
        info.diff_xing_char_count = 0;

        info.xing_count = 0;
        info.diff_xing_count = 0;

        info.ming_char_count = 0;
        info.diff_ming_char_count =0;

        info.ming_count = 0;
        info.diff_ming_count = 0;

        info.xing_ming_count = 0;
        info.diff_xing_ming_count = 0;

        info.person_count = 0;
        info.male_count = 0;
        info.female_count = 0;

        return info