Detailed Description
abstract element parser class used to process data read by the jdec file handler
Definition at line 275 of file reader_jdec.cpp.
Public Member Functions | |
| AbstractJDecElementParser (GCG *gcgstruct, JDecFileHandler &filehandler) | |
| virtual | ~AbstractJDecElementParser ()=default |
| virtual void | handleKeyValuePair (const char *name, json_t *value)=0 |
| virtual void | handleValue (json_t *value)=0 |
| bool | error () const |
Protected Attributes | |
| JDecFileHandler & | filehandler_ |
| GCG * | gcg |
| SCIP * | scip |
| bool | error_ |
Constructor & Destructor Documentation
◆ AbstractJDecElementParser()
|
inlineexplicit |
constructor
- Parameters
-
gcgstruct GCG data structure filehandler jdec file handler that uses this parser
Definition at line 279 of file reader_jdec.cpp.
◆ ~AbstractJDecElementParser()
|
virtualdefault |
destructor
Member Function Documentation
◆ handleKeyValuePair()
|
pure virtual |
abstract method that will be called for each key-value pair read by the handler
- Parameters
-
name name/key of the value read value pointer to the value
Implemented in JDecBlockElementParser, JDecDecompositionElementParser, and JDecRootElementParser.
Referenced by JDecFileHandler::parseElement().
◆ handleValue()
|
pure virtual |
abstract method that will be called for each value read by the handler
- Parameters
-
value pointer to the value
Implemented in JDecBlockElementParser, JDecDecompositionElementParser, and JDecRootElementParser.
Referenced by JDecFileHandler::parseElement().
◆ error()
|
inline |
returns true if an error occured during parsing or false otherwise
Definition at line 299 of file reader_jdec.cpp.
References error_.
Referenced by JDecFileHandler::parseElement().
Field Documentation
◆ filehandler_
|
protected |
the file handler that uses this parser
Definition at line 305 of file reader_jdec.cpp.
Referenced by JDecBlockElementParser::handleKeyValuePair(), JDecDecompositionElementParser::handleKeyValuePair(), JDecDecompositionElementParser::handleValue(), and AbstractJDecDecompositionElementParser::parseDecomposition().
◆ gcg
|
protected |
GCG data structure
Definition at line 306 of file reader_jdec.cpp.
◆ scip
|
protected |
SCIP data structure (origprob)
Definition at line 307 of file reader_jdec.cpp.
◆ error_
|
protected |
should be set to true if an error ocurred
Definition at line 308 of file reader_jdec.cpp.
Referenced by error(), JDecBlockElementParser::handleKeyValuePair(), JDecDecompositionElementParser::handleKeyValuePair(), JDecRootElementParser::handleKeyValuePair(), JDecBlockElementParser::handleValue(), JDecDecompositionElementParser::handleValue(), and AbstractJDecDecompositionElementParser::parseDecomposition().