Exemple #1
0
    public static string  stringFromType(TypeTypeKnownValues the_enum)
    {
        switch (the_enum)
        {
        case TypeTypeKnownValues.Type_TypeMismatch:
            return("TypeMismatch");

        case TypeTypeKnownValues.Type_InvalidDensity:
            return("InvalidDensity");

        case TypeTypeKnownValues.Type_UnnecessaryDensity:
            return("UnnecessaryDensity");

        case TypeTypeKnownValues.Type_NoValidInputFound:
            return("NoValidInputFound");

        case TypeTypeKnownValues.Type_NoValidOutputFound:
            return("NoValidOutputFound");

        case TypeTypeKnownValues.Type_BadAdjective:
            return("BadAdjective");

        default:
            Debug.Assert(false);
            return(null);
        }
    }
Exemple #2
0
    public void setType(TypeTypeKnownValues new_value)
    {
        TypeType new_full_value = new TypeType();

        Debug.Assert(new_value != TypeTypeKnownValues.Type__none);
        new_full_value.in_known_list = true;
        new_full_value.list_value    = new_value;
        setType(new_full_value);
    }
Exemple #3
0
    public static string  stringFromType(TypeTypeKnownValues the_enum)
    {
        switch (the_enum)
        {
        case TypeTypeKnownValues.Type_BadResponse:
            return("BadResponse");

        case TypeTypeKnownValues.Type_CodeNotFound:
            return("CodeNotFound");

        default:
            Debug.Assert(false);
            return(null);
        }
    }
Exemple #4
0
            protected override void handle_result(string result)
            {
                TypeTypeKnownValues known     = stringToType(result);
                TypeType            new_value = new TypeType();

                if (known == TypeTypeKnownValues.Type__none)
                {
                    new_value.in_known_list = false;
                    new_value.string_value  = result;
                }
                else
                {
                    new_value.in_known_list = true;
                    new_value.list_value    = known;
                }
                handle_result(new_value);
            }
Exemple #5
0
    public void setType(string chars)
    {
        TypeTypeKnownValues known     = stringToType(chars);
        TypeType            new_value = new TypeType();

        if (known == TypeTypeKnownValues.Type__none)
        {
            new_value.in_known_list = false;
            new_value.string_value  = chars;
        }
        else
        {
            new_value.in_known_list = true;
            new_value.list_value    = known;
        }
        setType(new_value);
    }