votca
2024-dev
Loading...
Searching...
No Matches
xtp
include
votca
xtp
checkpoint.h
Go to the documentation of this file.
1
/*
2
* Copyright 2009-2020 The VOTCA Development Team (http://www.votca.org)
3
*
4
* Licensed under the Apache License, Version 2.0 (the "License");
5
* you may not use this file except in compliance with the License.
6
*
7
* http://www.apache.org/licenses/LICENSE-2.0
8
*
9
* Unless required by applicable law or agreed to in writing, software
10
* distributed under the License is distributed on an "AS IS" BASIS,
11
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
12
* See the License for the specific language governing permissions and
13
* limitations under the License.
14
*
15
*/
16
17
#pragma once
18
#ifndef VOTCA_XTP_CHECKPOINT_H
19
#define VOTCA_XTP_CHECKPOINT_H
20
21
// Standard includes
22
#include <fstream>
23
24
// Third party includes
25
#include <H5Cpp.h>
26
27
// Local VOTCA includes
28
#include "
checkpoint_utils.h
"
29
#include "
checkpointreader.h
"
30
#include "
checkpointtable.h
"
31
#include "
checkpointwriter.h
"
32
33
namespace
votca
{
34
namespace
xtp {
35
36
enum class
CheckpointAccessLevel
{
37
READ
= 0,
// only read no write access
38
MODIFY
= 1,
// if file exists, change it
39
CREATE
= 2
// create new file
40
};
41
42
std::ostream&
operator<<
(std::ostream& s,
CheckpointAccessLevel
l);
43
44
class
CheckpointFile
{
45
public
:
46
CheckpointFile
(std::string fN);
47
CheckpointFile
(std::string fN,
CheckpointAccessLevel
access);
48
49
std::string
getFileName
();
50
std::string
getVersion
();
51
52
H5::H5File
getHandle
();
53
54
CheckpointWriter
getWriter
();
55
CheckpointWriter
getWriter
(
const
std::string path_);
56
CheckpointReader
getReader
();
57
CheckpointReader
getReader
(
const
std::string path_);
58
59
private
:
60
std::string
fileName_
;
61
H5::H5File
fileHandle_
;
62
CptLoc
rootLoc_
;
63
CheckpointAccessLevel
accessLevel_
;
64
};
65
66
}
// namespace xtp
67
}
// namespace votca
68
#endif
// VOTCA_XTP_CHECKPOINT_H
checkpoint_utils.h
checkpointreader.h
checkpointtable.h
checkpointwriter.h
votca::xtp::CheckpointFile
Definition
checkpoint.h:44
votca::xtp::CheckpointFile::rootLoc_
CptLoc rootLoc_
Definition
checkpoint.h:62
votca::xtp::CheckpointFile::getVersion
std::string getVersion()
votca::xtp::CheckpointFile::accessLevel_
CheckpointAccessLevel accessLevel_
Definition
checkpoint.h:63
votca::xtp::CheckpointFile::getReader
CheckpointReader getReader()
Definition
checkpoint.cc:133
votca::xtp::CheckpointFile::getHandle
H5::H5File getHandle()
Definition
checkpoint.cc:98
votca::xtp::CheckpointFile::getFileName
std::string getFileName()
Definition
checkpoint.cc:96
votca::xtp::CheckpointFile::fileName_
std::string fileName_
Definition
checkpoint.h:60
votca::xtp::CheckpointFile::getWriter
CheckpointWriter getWriter()
Definition
checkpoint.cc:120
votca::xtp::CheckpointFile::fileHandle_
H5::H5File fileHandle_
Definition
checkpoint.h:61
votca::xtp::CheckpointReader
Definition
checkpointreader.h:41
votca::xtp::CheckpointWriter
Definition
checkpointwriter.h:44
votca::tools::operator<<
std::ostream & operator<<(std::ostream &out, const Correlate &c)
Definition
correlate.h:53
votca::xtp::CptLoc
H5::Group CptLoc
Definition
checkpoint_utils.h:35
votca::xtp::CheckpointAccessLevel
CheckpointAccessLevel
Definition
checkpoint.h:36
votca::xtp::CheckpointAccessLevel::CREATE
@ CREATE
votca::xtp::CheckpointAccessLevel::READ
@ READ
votca::xtp::CheckpointAccessLevel::MODIFY
@ MODIFY
votca
base class for all analysis tools
Definition
basebead.h:33
Generated by
1.9.7