function [enabled enabledTO] = getEnabledMetricNames(cvtest) 
%

%   Copyright 1990-2008 The MathWorks, Inc.

enabled  = {};
enabledTO = {};
[metricNames  toMetricNames] = cvi.MetricRegistry.getAllMetricNames;

for metric = metricNames(:)'
    if (getMetricValue(cvtest, metric{1}))
        enabled {end+1} = metric{1};
    end
end

for metric = toMetricNames(:)'
    if (getTOMetricValue(cvtest, metric{1}))
        enabledTO {end+1} = metric{1};
    end
end

