repo.or.cz
/
Arachnida.git
/
blob
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
log
|
graphiclog1
|
graphiclog2
|
commit
|
commitdiff
|
tree
|
refs
|
edit
|
fork
blame
|
history
|
raw
|
HEAD
Port to verion 1.39.0 of Boost
[Arachnida.git]
/
lib
/
Damon
/
Session.cpp
blob
bac24b235f22fe4d18e5e90a03a659c4e380ddc2
1
#include
"Session.h"
2
#include <Scorpion/Context.h>
3
4
namespace
Damon
5
{
6
Session
::
Session
()
7
:
context_
(
0
)
8
{
/* no-op */
}
9
10
Session
::~
Session
()
11
{
12
delete
context_
;
13
}
14
15
void
Session
::
setContext
(
const
Scorpion
::
Context
&
context
)
16
{
17
if
(
context_
)
18
{
19
delete
context_
;
20
context_
=
0
;
21
}
22
else
23
{
/* don't already have a context */
}
24
25
context_
=
new
Scorpion
::
Context
(
context
);
26
}
27
}