methods for the inclusion and access to reader plugins of SCIP
SCIP_READERDATA* SCIPreaderGetData | ( | SCIP_READER * | reader | ) |
gets user data of reader
reader | reader |
Definition at line 450 of file reader.c.
References NULL, and SCIP_Reader::readerdata.
Referenced by SCIP_DECL_READERCOPY(), SCIP_DECL_READERFREE(), SCIP_DECL_READERREAD(), SCIP_DECL_READERWRITE(), SCIPfindObjReader(), SCIPgetObjReader(), SCIPprintSolReaderFzn(), and SCIPwriteLp().
void SCIPreaderSetData | ( | SCIP_READER * | reader, |
SCIP_READERDATA * | readerdata | ||
) |
sets user data of reader; user has to free old data in advance!
reader | reader |
readerdata | new reader user data |
Definition at line 460 of file reader.c.
References NULL, and SCIP_Reader::readerdata.
Referenced by SCIP_DECL_READERFREE().
const char* SCIPreaderGetName | ( | SCIP_READER * | reader | ) |
gets name of reader
reader | reader |
Definition at line 515 of file reader.c.
References SCIP_Reader::name, and NULL.
Referenced by displayReaders(), printProblem(), SCIP_DECL_READERCOPY(), SCIP_DECL_READERFREE(), SCIP_DECL_READERREAD(), SCIP_DECL_READERWRITE(), SCIPincludeDialogDefaultFix(), SCIPincludeDialogDefaultSet(), SCIPreaderCopyInclude(), SCIPreadProb(), and SCIPsetSetPresolving().
const char* SCIPreaderGetDesc | ( | SCIP_READER * | reader | ) |
gets description of reader
reader | reader |
Definition at line 525 of file reader.c.
References SCIP_Reader::desc, and NULL.
Referenced by displayReaders(), SCIPincludeDialogDefaultFix(), and SCIPincludeDialogDefaultSet().
const char* SCIPreaderGetExtension | ( | SCIP_READER * | reader | ) |
gets file extension of reader
reader | reader |
Definition at line 535 of file reader.c.
References SCIP_Reader::extension, and NULL.
Referenced by displayReaders().
SCIP_Bool SCIPreaderCanRead | ( | SCIP_READER * | reader | ) |
return whether the reader can read files
reader | reader |
Definition at line 545 of file reader.c.
References NULL.
Referenced by displayReaders().
SCIP_Bool SCIPreaderCanWrite | ( | SCIP_READER * | reader | ) |
return whether the reader can write files
reader | reader |
Definition at line 555 of file reader.c.
References NULL.
Referenced by displayReaders().
SCIP_RETCODE SCIPincludeReader | ( | SCIP * | scip, |
const char * | name, | ||
const char * | desc, | ||
const char * | extension, | ||
SCIP_DECL_READERCOPY((*readercopy)) | , | ||
SCIP_DECL_READERFREE((*readerfree)) | , | ||
SCIP_DECL_READERREAD((*readerread)) | , | ||
SCIP_DECL_READERWRITE((*readerwrite)) | , | ||
SCIP_READERDATA * | readerdata | ||
) |
creates a reader and includes it in SCIP
scip | SCIP data structure |
name | name of reader |
desc | description of reader |
extension | file extension that reader processes |
readerdata | reader data |
Definition at line 5159 of file scip.c.
References checkStage(), FALSE, NULL, SCIP_CALL, SCIP_INVALIDDATA, SCIP_OKAY, SCIPerrorMessage, SCIPfindReader(), SCIPreaderCreate(), SCIPsetIncludeReader(), Scip::set, and TRUE.
Referenced by SCIPincludeObjReader(), and SCIPincludeReaderPbm().
SCIP_RETCODE SCIPincludeReaderBasic | ( | SCIP * | scip, |
SCIP_READER ** | readerptr, | ||
const char * | name, | ||
const char * | desc, | ||
const char * | extension, | ||
SCIP_READERDATA * | readerdata | ||
) |
creates a reader and includes it in SCIP. All non-fundamental (or optional) callbacks will be set to NULL. Optional callbacks can be set via specific setter functions, see SCIPsetReaderCopy(), SCIPsetReaderFree(), SCIPsetReaderRead(), SCIPsetReaderWrite().
scip | SCIP data structure |
readerptr | reference to reader pointer, or NULL |
name | name of reader |
desc | description of reader |
extension | file extension that reader processes |
readerdata | reader data |
Definition at line 5201 of file scip.c.
References checkStage(), FALSE, NULL, SCIP_CALL, SCIP_INVALIDDATA, SCIP_OKAY, SCIPerrorMessage, SCIPfindReader(), SCIPreaderCreate(), SCIPsetIncludeReader(), Scip::set, and TRUE.
Referenced by SCIPincludeReaderBnd(), SCIPincludeReaderBpa(), SCIPincludeReaderCcg(), SCIPincludeReaderCip(), SCIPincludeReaderCnf(), SCIPincludeReaderDiff(), SCIPincludeReaderFix(), SCIPincludeReaderFzn(), SCIPincludeReaderGms(), SCIPincludeReaderLOP(), SCIPincludeReaderLp(), SCIPincludeReaderMps(), SCIPincludeReaderMst(), SCIPincludeReaderOpb(), SCIPincludeReaderOsil(), SCIPincludeReaderPip(), SCIPincludeReaderPpm(), SCIPincludeReaderRlp(), SCIPincludeReaderSol(), SCIPincludeReaderWbo(), and SCIPincludeReaderZpl().
SCIP_RETCODE SCIPsetReaderCopy | ( | SCIP * | scip, |
SCIP_READER * | reader, | ||
SCIP_DECL_READERCOPY((*readercopy)) | |||
) |
set copy method of reader
scip | SCIP data structure |
reader | reader |
Definition at line 5239 of file scip.c.
References checkStage(), FALSE, NULL, SCIP_CALL, SCIP_OKAY, SCIPreaderSetCopy(), and TRUE.
Referenced by SCIPincludeReaderBnd(), SCIPincludeReaderCcg(), SCIPincludeReaderCip(), SCIPincludeReaderCnf(), SCIPincludeReaderDiff(), SCIPincludeReaderFix(), SCIPincludeReaderFzn(), SCIPincludeReaderGms(), SCIPincludeReaderLp(), SCIPincludeReaderMps(), SCIPincludeReaderMst(), SCIPincludeReaderOpb(), SCIPincludeReaderOsil(), SCIPincludeReaderPip(), SCIPincludeReaderPpm(), SCIPincludeReaderRlp(), SCIPincludeReaderSol(), SCIPincludeReaderWbo(), and SCIPincludeReaderZpl().
SCIP_RETCODE SCIPsetReaderFree | ( | SCIP * | scip, |
SCIP_READER * | reader, | ||
SCIP_DECL_READERFREE((*readerfree)) | |||
) |
set deinitialization method of reader
scip | SCIP data structure |
reader | reader |
Definition at line 5263 of file scip.c.
References checkStage(), FALSE, NULL, SCIP_CALL, SCIP_OKAY, SCIPreaderSetFree(), and TRUE.
Referenced by SCIPincludeReaderBnd(), SCIPincludeReaderCip(), SCIPincludeReaderDiff(), SCIPincludeReaderFzn(), SCIPincludeReaderGms(), SCIPincludeReaderLp(), SCIPincludeReaderMps(), and SCIPincludeReaderPpm().
SCIP_RETCODE SCIPsetReaderRead | ( | SCIP * | scip, |
SCIP_READER * | reader, | ||
SCIP_DECL_READERREAD((*readerread)) | |||
) |
set read method of reader
scip | SCIP data structure |
reader | reader |
Definition at line 5287 of file scip.c.
References checkStage(), FALSE, NULL, SCIP_CALL, SCIP_OKAY, SCIPreaderSetRead(), and TRUE.
Referenced by SCIPincludeReaderBnd(), SCIPincludeReaderBpa(), SCIPincludeReaderCip(), SCIPincludeReaderCnf(), SCIPincludeReaderDiff(), SCIPincludeReaderFix(), SCIPincludeReaderFzn(), SCIPincludeReaderGms(), SCIPincludeReaderLOP(), SCIPincludeReaderLp(), SCIPincludeReaderMps(), SCIPincludeReaderMst(), SCIPincludeReaderOpb(), SCIPincludeReaderOsil(), SCIPincludeReaderPip(), SCIPincludeReaderRlp(), SCIPincludeReaderSol(), SCIPincludeReaderWbo(), and SCIPincludeReaderZpl().
SCIP_RETCODE SCIPsetReaderWrite | ( | SCIP * | scip, |
SCIP_READER * | reader, | ||
SCIP_DECL_READERWRITE((*readerwrite)) | |||
) |
set write method of reader
scip | SCIP data structure |
reader | reader |
Definition at line 5311 of file scip.c.
References checkStage(), FALSE, NULL, SCIP_CALL, SCIP_OKAY, SCIPreaderSetWrite(), and TRUE.
Referenced by SCIPincludeReaderBnd(), SCIPincludeReaderCcg(), SCIPincludeReaderCip(), SCIPincludeReaderFzn(), SCIPincludeReaderGms(), SCIPincludeReaderLp(), SCIPincludeReaderMps(), SCIPincludeReaderOpb(), SCIPincludeReaderPip(), SCIPincludeReaderPpm(), SCIPincludeReaderRlp(), and SCIPincludeReaderWbo().
SCIP_READER* SCIPfindReader | ( | SCIP * | scip, |
const char * | name | ||
) |
returns the reader of the given name, or NULL if not existing
scip | SCIP data structure |
name | name of reader |
Definition at line 5327 of file scip.c.
References NULL, SCIPsetFindReader(), and Scip::set.
Referenced by SCIPfindObjReader(), SCIPincludeReader(), SCIPincludeReaderBasic(), SCIPprintSolReaderFzn(), and SCIPwriteLp().
SCIP_READER** SCIPgetReaders | ( | SCIP * | scip | ) |
returns the array of currently available readers
scip | SCIP data structure |
Definition at line 5340 of file scip.c.
References NULL, SCIP_Set::readers, and Scip::set.
Referenced by displayReaders(), SCIPincludeDialogDefaultFix(), and SCIPincludeDialogDefaultSet().
int SCIPgetNReaders | ( | SCIP * | scip | ) |
returns the number of currently available readers
scip | SCIP data structure |
Definition at line 5351 of file scip.c.
References SCIP_Set::nreaders, NULL, and Scip::set.
Referenced by displayReaders(), SCIPincludeDialogDefaultFix(), and SCIPincludeDialogDefaultSet().