model_server/machine_prefs/src/customize.h.cxx
// Utility to translate expansion into prefRegistry valid value.
Utility to translate expansion into prefRegistry valid value.
Utility to translate expansion into prefRegistry valid value .
int customize::convertExpansion(const int expansion)
{
    int prefExp;
    expandString custExp = (expandString) expansion;
    switch (custExp) {
        case EXPAND_NONE:
            prefExp = prefRegistry::EXPAND_NONE;
            break;
        case EXPAND_META:
            prefExp = prefRegistry::EXPAND_NONE_TO_META;
            break;
        case EXPAND_COLONS:
            prefExp = prefRegistry::EXPAND_NONE_TO_COLONS;
            break;
        case UNEXPAND_COLONS:
            prefExp = prefRegistry::EXPAND_COLONS_TO_NONE;
            break;
    }
    return prefExp;
}
int customize :: convertExpansion ( const int expansion ) { int prefExp ; expandString custExp = ( expandString ) expansion ; switch ( custExp ) { case EXPAND_NONE : prefExp = prefRegistry :: EXPAND_NONE ; break ; case EXPAND_META : prefExp = prefRegistry :: EXPAND_NONE_TO_META ; break ; case EXPAND_COLONS : prefExp = prefRegistry :: EXPAND_NONE_TO_COLONS ; break ; case UNEXPAND_COLONS : prefExp = prefRegistry :: EXPAND_COLONS_TO_NONE ; break ; } return prefExp ; }
Utility to translate expansion into prefRegistry valid value.
Utility to translate expansion into prefRegistry valid value .