2 * This file is part of the GROMACS-PyAPI package.
4 * Copyright (c) 2014,2015,
5 * by Maks Koltsov <maks@omrb.pnpi.spb.ru> and
6 * by Alexey Shvetsov <alexxy@omrb.pnpi.spb.ru>
8 * GROMACS-PyAPI is free software; you can redistribute it and/or
9 * modify it under the terms of the GNU Lesser General Public License
10 * as published by the Free Software Foundation; either version 2.1
11 * of the License, or (at your option) any later version.
13 * GROMACS-PyAPI is distributed in the hope that it will be useful,
14 * but WITHOUT ANY WARRANTY; without even the implied warranty of
15 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
16 * Lesser General Public License for more details.
18 * You should have received a copy of the GNU Lesser General Public
19 * License along with GROMACS; if not, see
20 * http://www.gnu.org/licenses, or write to the Free Software Foundation,
21 * Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA.
25 #include "gromacs/options/filenameoption.h"
26 #include "gromacs/fileio/filetypes.h"
27 typedef gmx::OptionTemplate < std::string, gmx::FileNameOption > FileNameOptionTemplate;
28 using namespace gmx; // needed for compilation of enum
31 typedef OptionTemplate < std::string, FileNameOption > FileNameOptionTemplate;
34 eftUnknown, eftTopology, eftTrajectory, eftPDB,
35 eftIndex, eftPlot, eftGenericData, eftOptionFileType_NR
40 efTRX, efTRO, efTRN, efTRR, efCOMPRESSED, efXTC, efTNG,
42 efSTX, efSTO, efGRO, efG96, efPDB, efBRK, efENT, efESP, efPQR,
48 efTEX, efRTP, efATP, efHDB,
50 efMAP, efEPS, efMAT, efM2P,
59 class FileNameOption: FileNameOptionTemplate /NoDefaultCtors/ {
61 #include "gromacs/options/filenameoption.h"
62 using gmx::FileNameOption;
65 FileNameOption &filetype(OptionFileType);
66 FileNameOption &legacyType(int);
67 FileNameOption &inputFile();
68 FileNameOption &outputFile();
69 FileNameOption &inputOutputFile();
70 FileNameOption &readWriteFlags(bool, bool);
71 FileNameOption &libraryFile(bool = true);
72 FileNameOption &defaultBasename(const char* /KeepReference/);
73 FileNameOption &defaultType(int);
76 class FileNameOptionManager: public IOptionManager /NoDefaultCtors/ {
78 #include <gromacs/options/filenameoptionmanager.h>
81 FileNameOptionManager();