summaryrefslogtreecommitdiff
path: root/project2/ice/iceModule.cpp
blob: 795103c1f6de207543dcad6c25e1f5afb2a7b6f7 (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
36
37
#include <pch.hpp>
#pragma GCC visibility push(default)
#include "iceModule.h"
#include "iceDaemon.h"
#include <factory.impl.h>

INSTANTIATEFACTORY(IceDaemonModule, std::shared_ptr<const IceDaemon>);
#pragma GCC visibility pop

IceDaemonModule::IceDaemonModule(const std::string & n, const std::shared_ptr<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)
{
	adapter->add(ICE_SHARED_FROM_THIS, Ice::stringToIdentity(name));
}

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