#ifndef _SCPLOADER_H
#define	_SCPLOADER_H

#include "common.h"
#include "scproblem.h"
#include <stdio.h>

#ifdef	__cplusplus
extern "C" {
#endif


#define SCPLOADER_MAX_LINE_LENGTH 131072

/** \defgroup LDR SCP loader
 * @{*/

/** \brief Load SCP from file. \n
 *   File format is:
 *   First line: number of columns and rows separated by spaces\n
 *   Second line: costs of columns separated by spaces\n
 *   Array of 0s and 1s separated by comma or space
 *  \param filespec File specifier
 *  \return Newly created SCProblem or NULL when error occurs
 */

SCProblem*  scploader_load_scp(char* filespec);




/** @}   */
#ifdef	__cplusplus
}
#endif

#endif	/* _SCPLOADER_H */

