fw4spl
Main Page
Related Pages
Modules
Namespaces
Classes
Files
File List
File Members
ProgressAdviser.cpp
1
/* ***** BEGIN LICENSE BLOCK *****
2
* FW4SPL - Copyright (C) IRCAD, 2009-2015.
3
* Distributed under the terms of the GNU Lesser General Public License (LGPL) as
4
* published by the Free Software Foundation.
5
* ****** END LICENSE BLOCK ****** */
6
7
#include "fwTools/ProgressAdviser.hpp"
8
9
namespace
fwTools
10
{
11
12
ProgressAdviser::ProgressAdviser()
13
{
14
}
15
16
ProgressAdviser::~ProgressAdviser()
17
{
18
}
19
20
void
ProgressAdviser::addHandler(
const
ProgessHandler
&handler)
21
{
22
// append a new ProgressHandler
23
m_progressSignal
.connect(handler);
24
}
25
26
void
ProgressAdviser::notifyProgress
(
float
percent,
const
std::string& msg)
const
27
{
28
m_progressSignal
(percent, msg);
29
}
30
31
}
fwTools
The namespace fwTools contains several tools like UUID, factory, dispatche, stringizer, macros, helper.
Definition:
core/fwCamp/include/fwCamp/registry/detail.hpp:21
fwTools::ProgressAdviser::ProgessHandler
ProgessSignal::slot_type ProgessHandler
define the ProgessHandler type
Definition:
ProgressAdviser.hpp:40
fwTools::ProgressAdviser::m_progressSignal
ProgessSignal m_progressSignal
to notify progress simply use m_progressSignal( percent,msg ) to notify to Handler ...
Definition:
ProgressAdviser.hpp:60
fwTools::ProgressAdviser::notifyProgress
FWTOOLS_API void notifyProgress(float percent, const std::string &msg="") const
notify modification for all handler
Definition:
ProgressAdviser.cpp:26
SrcLib
core
fwTools
src
fwTools
ProgressAdviser.cpp
Generated on Wed Sep 5 2018 12:47:56 for fw4spl by
1.8.11