//----------------------------------------------------------------------------//
// //
// E x p o r t S t e p //
// //
//----------------------------------------------------------------------------//
// <editor-fold defaultstate="collapsed" desc="hdr"> //
// Copyright © Hervé Bitteur and others 2000-2013. All rights reserved. //
// This software is released under the GNU General Public License. //
// Goto http://kenai.com/projects/audiveris to report bugs or suggestions. //
//----------------------------------------------------------------------------//
// </editor-fold>
package omr.step;
import omr.sheet.Sheet;
import omr.sheet.SystemInfo;
import omr.score.Score;
import omr.util.ExportCoordinates;
import org.slf4j.Logger;
import org.slf4j.LoggerFactory;
import java.util.Collection;
/**
* Class {@code ExportStep} exports the whole score
*
* @author Hervé Bitteur
*/
public class ExportCStep
extends AbstractStep
{
//~ Static fields/initializers ---------------------------------------------
/** Usual logger utility */
private static final Logger logger = LoggerFactory.getLogger(ExportCStep.class);
//~ Constructors -----------------------------------------------------------
//------------//
// ExportStep //
//------------//
/**
* Creates a new ExportStep object.
*/
public ExportCStep ()
{
super(Steps.EXPORTC,
Level.SHEET_LEVEL,
Mandatory.MANDATORY,
DATA_TAB,
"Export the Measurements to an XML file");
}
//~ Methods ----------------------------------------------------------------
//------//
// doit //
//------//
@Override
public void doit (Collection<SystemInfo> systems,
Sheet sheet)
throws StepException
{
logger.info("Invoking ExportMTask.core()");
Score s = sheet.getScore();
ExportCoordinates emc = new ExportCoordinates(s);
emc.export();
}
}