Scippy

    SCIP

    Solving Constraint Integer Programs

    pub_reader.h
    Go to the documentation of this file.
    1/* * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * */
    2/* */
    3/* This file is part of the program and library */
    4/* SCIP --- Solving Constraint Integer Programs */
    5/* */
    6/* Copyright (c) 2002-2025 Zuse Institute Berlin (ZIB) */
    7/* */
    8/* Licensed under the Apache License, Version 2.0 (the "License"); */
    9/* you may not use this file except in compliance with the License. */
    10/* You may obtain a copy of the License at */
    11/* */
    12/* http://www.apache.org/licenses/LICENSE-2.0 */
    13/* */
    14/* Unless required by applicable law or agreed to in writing, software */
    15/* distributed under the License is distributed on an "AS IS" BASIS, */
    16/* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. */
    17/* See the License for the specific language governing permissions and */
    18/* limitations under the License. */
    19/* */
    20/* You should have received a copy of the Apache-2.0 license */
    21/* along with SCIP; see the file LICENSE. If not visit scipopt.org. */
    22/* */
    23/* * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * */
    24
    25/**@file pub_reader.h
    26 * @ingroup PUBLICCOREAPI
    27 * @brief public methods for input file readers
    28 * @author Tobias Achterberg
    29 */
    30
    31/*---+----1----+----2----+----3----+----4----+----5----+----6----+----7----+----8----+----9----+----0----+----1----+----2*/
    32
    33#ifndef __SCIP_PUB_READER_H__
    34#define __SCIP_PUB_READER_H__
    35
    36
    37#include "scip/def.h"
    38#include "scip/type_reader.h"
    39
    40#ifdef __cplusplus
    41extern "C" {
    42#endif
    43
    44/**@addtogroup PublicReaderMethods
    45 *
    46 * @{
    47 */
    48
    49/** gets user data of reader */
    50SCIP_EXPORT
    52 SCIP_READER* reader /**< reader */
    53 );
    54
    55/** sets user data of reader; user has to free old data in advance! */
    56SCIP_EXPORT
    58 SCIP_READER* reader, /**< reader */
    59 SCIP_READERDATA* readerdata /**< new reader user data */
    60 );
    61
    62/** marks the reader as safe to use in exact solving mode */
    63SCIP_EXPORT
    65 SCIP_READER* reader /**< reader */
    66 );
    67
    68/** gets name of reader */
    69SCIP_EXPORT
    70const char* SCIPreaderGetName(
    71 SCIP_READER* reader /**< reader */
    72 );
    73
    74/** gets description of reader */
    75SCIP_EXPORT
    76const char* SCIPreaderGetDesc(
    77 SCIP_READER* reader /**< reader */
    78 );
    79
    80/** gets file extension of reader */
    81SCIP_EXPORT
    82const char* SCIPreaderGetExtension(
    83 SCIP_READER* reader /**< reader */
    84 );
    85
    86/** return whether the reader can read files */
    87SCIP_EXPORT
    89 SCIP_READER* reader /**< reader */
    90 );
    91
    92/** return whether the reader can write files */
    93SCIP_EXPORT
    95 SCIP_READER* reader /**< reader */
    96 );
    97
    98/** @} */
    99
    100#ifdef __cplusplus
    101}
    102#endif
    103
    104#endif
    common defines and data types used in all packages of SCIP
    #define SCIP_Bool
    Definition: def.h:91
    SCIP_READERDATA * SCIPreaderGetData(SCIP_READER *reader)
    Definition: reader.c:605
    const char * SCIPreaderGetExtension(SCIP_READER *reader)
    Definition: reader.c:700
    void SCIPreaderSetData(SCIP_READER *reader, SCIP_READERDATA *readerdata)
    Definition: reader.c:615
    const char * SCIPreaderGetName(SCIP_READER *reader)
    Definition: reader.c:680
    SCIP_Bool SCIPreaderCanRead(SCIP_READER *reader)
    Definition: reader.c:710
    SCIP_Bool SCIPreaderCanWrite(SCIP_READER *reader)
    Definition: reader.c:720
    void SCIPreaderMarkExact(SCIP_READER *reader)
    Definition: reader.c:670
    const char * SCIPreaderGetDesc(SCIP_READER *reader)
    Definition: reader.c:690
    type definitions for input file readers
    struct SCIP_ReaderData SCIP_READERDATA
    Definition: type_reader.h:54