highlighter application
1.1
HCE project utils : highlighter
Main Page
Namespaces
Classes
Files
File List
File Members
All
Classes
Namespaces
Files
Functions
Variables
Typedefs
Enumerations
Enumerator
Macros
TaskWaitObject.cpp
Go to the documentation of this file.
1
#include "
TaskWaitObject.hpp
"
2
3
namespace
HCE
4
{
5
using namespace
HCE::exception;
6
Poco::SharedPtr<DataBase>
TaskWaitObject::wait
()
7
{
8
mutex.lock();
9
mutex.unlock();
10
if
(! _exception.isNull())
11
{
12
throw
(*_exception);
13
}
14
return
_outData;
15
}
16
17
void
TaskWaitObject::setOutData
(Poco::SharedPtr<DataBase> outData,
TaskWaitObjectExeptionsType
cause,
18
Poco::SharedPtr<ExceptionBase> internalException)
19
{
20
_outData = outData;
21
if
(cause !=
HCECTE_DEFAULT
&& _exception.isNull())
22
{
23
_exception = Poco::SharedPtr<TaskComponentException>(
new
TaskComponentException
(
"TASK_EXCEPTION"
, cause));
24
}
25
if
(!internalException.isNull())
26
{
27
if
(_exception.isNull())
28
{
29
_exception = Poco::SharedPtr<TaskComponentException>(
new
TaskComponentException
(
"TASK_EXCEPTION"
, cause));
30
}
31
_exception->setInternalException(internalException);
32
}
33
mutex.unlock();
34
}
35
}
sources
utils
HCECSM
src
TaskWaitObject.cpp
Generated on Mon Jan 13 2014 16:16:17 for highlighter application by
1.8.1.2