| 1 |
/****************************************************************************** |
| 2 |
This source file is part of the Avogadro project. |
| 3 |
This source code is released under the 3-Clause BSD License, (see "LICENSE"). |
| 4 |
******************************************************************************/ |
| 5 |
|
| 6 |
#ifndef AVOGADRO_QUANTUMIO_GAUSSIANCUBE_H |
| 7 |
#define AVOGADRO_QUANTUMIO_GAUSSIANCUBE_H |
| 8 |
|
| 9 |
#include "avogadroquantumioexport.h" |
| 10 |
#include <avogadro/io/fileformat.h> |
| 11 |
|
| 12 |
#include <vector> |
| 13 |
|
| 14 |
namespace Avogadro { |
| 15 |
namespace QuantumIO { |
| 16 |
|
| 17 |
class AVOGADROQUANTUMIO_EXPORT GaussianCube : public Io::FileFormat |
| 18 |
{ |
| 19 |
public: |
| 20 |
GaussianCube(); |
| 21 |
~GaussianCube() override; |
| 22 |
|
| 23 |
Operations supportedOperations() const override |
| 24 |
{ |
| 25 |
return ReadWrite | File | Stream | String; |
| 26 |
} |
| 27 |
|
| 28 |
FileFormat* newInstance() const override { return new GaussianCube; } |
| 29 |
std::string identifier() const override { return "Avogadro: Gaussian Cube"; } |
| 30 |
std::string name() const override { return "Gaussian"; } |
| 31 |
std::string description() const override |
| 32 |
{ |
| 33 |
return "Gaussian cube file format."; |
| 34 |
} |
| 35 |
|
| 36 |
std::string specificationUrl() const override |
| 37 |
{ |
| 38 |
return "https://gaussian.com/cubegen/"; |
| 39 |
} |
| 40 |
|
| 41 |
std::vector<std::string> fileExtensions() const override; |
| 42 |
std::vector<std::string> mimeTypes() const override; |
| 43 |
|
| 44 |
[[nodiscard]] bool read(std::istream& in, Core::Molecule& molecule) override; |
| 45 |
[[nodiscard]] bool write(std::ostream& out, |
| 46 |
const Core::Molecule& molecule) override; |
| 47 |
|
| 48 |
private: |
| 49 |
void outputAll(); |
| 50 |
}; // End GaussianCube |
| 51 |
|
| 52 |
} // namespace QuantumIO |
| 53 |
} // namespace Avogadro |
| 54 |
|
| 55 |
#endif |