votca
2024.2-dev
Loading...
Searching...
No Matches
xtp
include
votca
xtp
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
31
#include <
votca/tools/calculator.h
>
32
#include <
votca/tools/property.h
>
33
34
namespace
votca
{
35
namespace
xtp {
36
37
class
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
calculator.h
votca::tools::Calculator
Base class for all calculators.
Definition
calculator.h:40
votca::tools::Property
class to manage program options with xml serialization functionality
Definition
property.h:55
votca::xtp::QMTool
Definition
qmtool.h:37
votca::xtp::QMTool::Evaluate
bool Evaluate()
Definition
qmtool.cc:32
votca::xtp::QMTool::Run
virtual bool Run()=0
votca::xtp::QMTool::job_name_
std::string job_name_
Definition
qmtool.h:50
votca::xtp::QMTool::ParseOptions
virtual void ParseOptions(const tools::Property &opt)=0
votca::xtp::QMTool::Identify
std::string Identify() const override=0
Calculator name.
votca::xtp::QMTool::QMTool
QMTool()=default
votca::xtp::QMTool::~QMTool
~QMTool() override=default
votca::xtp::QMTool::Initialize
void Initialize(const tools::Property &options) final
Initializes a calculator from an XML file with options.
Definition
qmtool.cc:27
votca::xtp::QMTool::Package
std::string Package() const final
Package name.
Definition
qmtool.h:43
votca
base class for all analysis tools
Definition
basebead.h:33
property.h
Generated by
1.12.0