Refactor for testing interactive selection input
[alexxy/gromacs.git] / src / gromacs / selection / indexutil.h
index 7ec5bd96916b0d2610fcedbe87cd9ab2868b4784..9ac9364008ba028178a82269af688450ca373f41 100644 (file)
@@ -1,7 +1,7 @@
 /*
  * This file is part of the GROMACS molecular simulation package.
  *
- * Copyright (c) 2009,2010,2011,2012,2013,2014, by the GROMACS development team, led by
+ * Copyright (c) 2009,2010,2011,2012,2013,2014,2015, by the GROMACS development team, led by
  * Mark Abraham, David van der Spoel, Berk Hess, and Erik Lindahl,
  * and including many others, as listed in the AUTHORS file in the
  * top-level source directory and at http://www.gromacs.org.
 #include "gromacs/legacyheaders/types/simple.h"
 #include "gromacs/topology/block.h"
 
+namespace gmx
+{
+class TextWriter;
+}
+
 struct t_topology;
 
 /** Stores a set of index groups. */
@@ -205,7 +210,7 @@ gmx_ana_indexgrps_find(gmx_ana_index_t *dest, std::string *destName,
 
 /** Writes out a list of index groups. */
 void
-gmx_ana_indexgrps_print(FILE *fp, gmx_ana_indexgrps_t *g, int maxn);
+gmx_ana_indexgrps_print(gmx::TextWriter *writer, gmx_ana_indexgrps_t *g, int maxn);
 /*@}*/
 
 /*! \name Functions for handling gmx_ana_index_t
@@ -235,7 +240,7 @@ gmx_ana_index_copy(gmx_ana_index_t *dest, gmx_ana_index_t *src, bool bAlloc);
 
 /** Writes out the contents of a index group. */
 void
-gmx_ana_index_dump(FILE *fp, gmx_ana_index_t *g, int maxn);
+gmx_ana_index_dump(gmx::TextWriter *writer, gmx_ana_index_t *g, int maxn);
 
 /*! \brief
  * Returns maximum atom index that appears in an index group.