summaryrefslogtreecommitdiff
path: root/project2/ice/iceModule.cpp
blob: 7e39858d81efe92415aa818a08b6a5ec1f3201b5 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
#include <pch.hpp>
#include "iceModule.h"
#include "iceDaemon.h"
#include "instanceStore.impl.h"

IceDaemonModule::IceDaemonModule(const std::string & n, const IceDaemon * id) :
	name(n),
	iceDaemon(id)
{
}

void
IceDaemonModule::executeView(const std::string & name, Slicer::ModelPartPtr mpp, const ParamMap & params) const {
	iceDaemon->executeView(name, mpp, params);
}

void
IceDaemonModule::executeTask(const std::string & name, const ParamMap & params) const {
	iceDaemon->executeTask(name, params);
}

void
IceDaemonModule::add(Ice::ObjectAdapterPtr adapter, Ice::CommunicatorPtr ic)
{
	adapter->add(this, ic->stringToIdentity(name));
}

void
IceDaemonModule::remove(Ice::ObjectAdapterPtr adapter, Ice::CommunicatorPtr ic)
{
	adapter->remove(ic->stringToIdentity(name));
}

INSTANTIATESTORE(std::string, IceDaemonAdapterHandlerLoader);