Port to verion 1.39.0 of Boost
[Arachnida.git] / lib / Damon / Session.cpp
blobbac24b235f22fe4d18e5e90a03a659c4e380ddc2
1 #include "Session.h"
2 #include <Scorpion/Context.h>
4 namespace Damon
6 Session::Session()
7 : context_(0)
8 { /* no-op */ }
10 Session::~Session()
12 delete context_;
15 void Session::setContext(const Scorpion::Context & context)
17 if (context_)
19 delete context_;
20 context_ = 0;
22 else
23 { /* don't already have a context */ }
25 context_ = new Scorpion::Context(context);