X-Git-Url: http://biod.pnpi.spb.ru/gitweb/?a=blobdiff_plain;f=src%2Fgromacs%2Fselection%2Fscanner.h;h=b918ccc5fd375f9266eb75d7a7f3378505bbfef1;hb=180cf1538ad2b19bd6b4108662adc4a519565fcb;hp=ad7fcf56ce3e33a90ec1e620803edb1bdc5bd388;hpb=1d597ac0415f9a847715ef65daa55fe1312bd59f;p=alexxy%2Fgromacs.git diff --git a/src/gromacs/selection/scanner.h b/src/gromacs/selection/scanner.h index ad7fcf56ce..b918ccc5fd 100644 --- a/src/gromacs/selection/scanner.h +++ b/src/gromacs/selection/scanner.h @@ -51,6 +51,11 @@ #include "parser.h" +namespace gmx +{ +class TextWriter; +} + struct gmx_ana_indexgrps_t; struct gmx_ana_selcollection_t; @@ -62,7 +67,7 @@ typedef void *yyscan_t; /** Initializes the selection scanner. */ void _gmx_sel_init_lexer(yyscan_t *scannerp, struct gmx_ana_selcollection_t *sc, - bool bInteractive, int maxnr, bool bGroups, + gmx::TextWriter *statusWriter, int maxnr, bool bGroups, struct gmx_ana_indexgrps_t *grps); /** Frees memory allocated for the selection scanner. */ void @@ -77,9 +82,9 @@ _gmx_sel_lexer_set_exception(yyscan_t scanner, void _gmx_sel_lexer_rethrow_exception_if_occurred(yyscan_t scanner); -/** Returns true if the scanner is interactive. */ -bool -_gmx_sel_is_lexer_interactive(yyscan_t scanner); +/** Returns writer for status output (if not NULL, the scanner is interactive). */ +gmx::TextWriter * +_gmx_sel_lexer_get_status_writer(yyscan_t scanner); /** Returns the selection collection for the scanner. */ struct gmx_ana_selcollection_t * _gmx_sel_lexer_selcollection(yyscan_t scanner);