votca 2024.2-dev
Loading...
Searching...
No Matches
qmtool.h
Go to the documentation of this file.
1/*
2 * Copyright 2009-2020 The VOTCA Development Team
3 * (http://www.votca.org)
4 *
5 * Licensed under the Apache License, Version 2.0 (the "License")
6 *
7 * You may not use this file except in compliance with the License.
8 * You may obtain a copy of the License at
9 *
10 * http://www.apache.org/licenses/LICENSE-2.0
11 *
12 * Unless required by applicable law or agreed to in writing, software
13 * distributed under the License is distributed on an "AS IS" BASIS,
14 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
15 * See the License for the specific language governing permissions and
16 * limitations under the License.
17 *
18 */
21
22#pragma once
23#ifndef VOTCA_XTP_QMTOOL_H
24#define VOTCA_XTP_QMTOOL_H
25
26// Third party includes
27#include <boost/format.hpp>
28
29// VOTCA includes
30
33
34namespace votca {
35namespace xtp {
36
37class QMTool : public tools::Calculator {
38 public:
39 QMTool() = default;
40 ~QMTool() override = default;
41
42 std::string Identify() const override = 0;
43 std::string Package() const final { return "xtp"; }
44 void Initialize(const tools::Property& options) final;
45 bool Evaluate();
46
47 protected:
48 virtual bool Run() = 0;
49 virtual void ParseOptions(const tools::Property& opt) = 0;
50 std::string job_name_;
51};
52
53} // namespace xtp
54} // namespace votca
55
56#endif // VOTCA_XTP_QMTOOL_H
Base class for all calculators.
Definition calculator.h:40
class to manage program options with xml serialization functionality
Definition property.h:55
virtual bool Run()=0
std::string job_name_
Definition qmtool.h:50
virtual void ParseOptions(const tools::Property &opt)=0
std::string Identify() const override=0
Calculator name.
~QMTool() override=default
void Initialize(const tools::Property &options) final
Initializes a calculator from an XML file with options.
Definition qmtool.cc:27
std::string Package() const final
Package name.
Definition qmtool.h:43
base class for all analysis tools
Definition basebead.h:33