<commit_before>#ifndef FAU_IO_H
#define FAU_IO_H
#include "faunus/common.h"
#include "faunus/titrate.h"

#ifndef __cplusplus
#define __cplusplus
#endif
#ifndef CPLUSPLUS
#define CPLUSPLUS
#endif
#include "xdrfile/xdrfile_trr.h"
#include "xdrfile/xdrfile_xtc.h"

namespace Faunus {
  
  class container;
  class inputfile;
  class box;
  class group;
  class macromolecule;
  class particle;
  class particles;

  /*! \brief Basic file I/O routines
   *  \author <NAME>
   */
  class io {
    private:
      string s;
    public:
      bool readfile(string, vector<string>&);       //!< Read entire file to vector
      bool writefile(string, string, std::ios_base::openmode=std::ios_base::out); //!< Save string to file
      void strip(vector<string> &, string="#");     //!< Remove lines containing pattern
      void splash(string);                          //!< Splashes the content of a file
  };

  class particleIO {
    protected:
      string warning();
      string format;
    public:
      virtual bool save(container &, string)=0;
      virtual bool load(container &, string)=0;
      virtual bool load(vector<particle> &, string)=0;
      virtual string info() {
        return "";
      }
  };

  class io_aam : public particleIO {
    bool load(container &, string);
    bool load(vector<particle> &, string);
    bool sabe(container &, string);
  };

  /*!\brief General class for particle I/O.
   * \author <NAME>
   * \todo Unfinished!
   * \todo move transformations s2p p2s to iopart
   *
   * The purpose of this class is to provide general read/write
   * routines for particle I/O. This can be used to load/save
   * structures, coordinate space, pdb files, povray etc.
   */
  class iopart : private io {
    friend class ioaam;
    friend class iopov;
    friend class ioxyz;
    friend class ioxtz;
    friend class iogro;
    friend class iopqr;
    private:
    vector<string> v; 
    vector<particle> p;
    public:
    virtual vector<particle> load(string)=0;            //!< Load from disk
    virtual bool save(string, vector<particle>&)=0;     //!< Save to disk
  };<commit_msg>Removed unused class in io.h.<commit_after>#ifndef FAU_IO_H
#define FAU_IO_H
#include "faunus/common.h"
#include "faunus/titrate.h"

#ifndef __cplusplus
#define __cplusplus
#endif
#ifndef CPLUSPLUS
#define CPLUSPLUS
#endif
#include "xdrfile/xdrfile_trr.h"
#include "xdrfile/xdrfile_xtc.h"

namespace Faunus {
  
  class container;
  class inputfile;
  class box;
  class group;
  class macromolecule;
  class particle;
  class particles;

  /*! \brief Basic file I/O routines
   *  \author <NAME>
   */
  class io {
    private:
      string s;
    public:
      bool readfile(string, vector<string>&);       //!< Read entire file to vector
      bool writefile(string, string, std::ios_base::openmode=std::ios_base::out); //!< Save string to file
      void strip(vector<string> &, string="#");     //!< Remove lines containing pattern
      void splash(string);                          //!< Splashes the content of a file
  };

  class particleIO {
    protected:
      string warning();
      string format;
    public:
      virtual bool save(container &, string)=0;
      virtual bool load(container &, string)=0;
      virtual bool load(vector<particle> &, string)=0;
      virtual string info() {
        return "";
      }
  };

  //class io_aam : public particleIO {
  //  bool load(container &, string);
  //  bool load(vector<particle> &, string);
  //  bool sabe(container &, string);
  //};

  /*!\brief General class for particle I/O.
   * \author <NAME>
   * \todo Unfinished!
   * \todo move transformations s2p p2s to iopart
   *
   * The purpose of this class is to provide general read/write
   * routines for particle I/O. This can be used to load/save
   * structures, coordinate space, pdb files, povray etc.
   */
  class iopart : private io {
    friend class ioaam;
    friend class iopov;
    friend class ioxyz;
    friend class ioxtz;
    friend class iogro;
    friend class iopqr;
    private:
    vector<string> v; 
    vector<particle> p;
    public:
    virtual vector<particle> load(string)=0;            //!< Load from disk
    virtual bool save(string, vector<particle>&)=0;     //!< Save to disk
  };
{'fraction_non_alphanumeric': 0.11247058823529411, 'fraction_numerical': 0.0032941176470588237, 'mean_word_length': 2.7387862796833775, 'pattern_counts': {'":': 0, '<': 35, '<?xml version=': 0, '>': 23, 'https://': 0, 'lorem ipsum': 0, 'www.': 0, 'xml': 0}, 'pii_count': 0, 'substrings_counts': 0, 'word_list_counts': {'cursed_substrings.json': 0, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '1159183', 'n_tokens_mistral': 1380, 'n_tokens_neox': 1345, 'n_words': 412}