Tomographer
v1.0a
Tomographer C++ Framework Documentation
Main Page
Related Pages
Namespaces
Classes
Files
File List
File Members
multiproc.h
Go to the documentation of this file.
1
/* This file is part of the Tomographer project, which is distributed under the
2
* terms of the MIT license.
3
*
4
* The MIT License (MIT)
5
*
6
* Copyright (c) 2015 ETH Zurich, Institute for Theoretical Physics, Philippe Faist
7
*
8
* Permission is hereby granted, free of charge, to any person obtaining a copy
9
* of this software and associated documentation files (the "Software"), to deal
10
* in the Software without restriction, including without limitation the rights
11
* to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
12
* copies of the Software, and to permit persons to whom the Software is
13
* furnished to do so, subject to the following conditions:
14
*
15
* The above copyright notice and this permission notice shall be included in
16
* all copies or substantial portions of the Software.
17
*
18
* THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
19
* IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
20
* FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
21
* AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
22
* LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
23
* OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
24
* SOFTWARE.
25
*/
26
27
#ifndef MULTIPROC_H
28
#define MULTIPROC_H
29
30
#include <string>
31
32
41
namespace
Tomographer
{
42
43
52
namespace
MultiProc {
53
64
struct
StatusReport
65
{
66
StatusReport
()
67
: fraction_done(0), msg(
"<unknown>"
)
68
{ }
69
StatusReport
(
double
fraction_done_,
const
std::string
& msg_)
70
: fraction_done(fraction_done_), msg(msg_)
71
{ }
72
73
double
fraction_done;
74
std::string
msg;
75
};
76
77
78
79
};
// namespace MultiProc
80
81
};
// namespace Tomographer
82
83
#endif
Tomographer
Base namespace for the Tomographer project.
Definition:
dmmhrw.h:51
std::string
STL class.
Tomographer::MultiProc::StatusReport
Basic status report class.
Definition:
multiproc.h:64
tomographer
multiproc.h
Generated on Mon Sep 21 2015 20:25:31 for Tomographer by
Doxygen 1.8.9.1