summaryrefslogtreecommitdiff
path: root/project2/ice/iceBase.h
blob: 1d45346bb3241f8c51bb50ead67d34f29c495a43 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
#ifndef ICEBASE_H
#define ICEBASE_H

#include <boost/tuple/tuple.hpp>
#include <thread>
#include "iceCompile.h"
#include <variableType.h>

class IceBase {
	public:
		typedef boost::tuple<IceCompile::CPtr, std::thread *> LibCompile;
		typedef boost::variant<LibCompile, IceCompile::LibHandles> LibPromise;
		typedef std::vector<LibPromise> Libs;
		typedef boost::function<IceCompile::CPtr(const std::string &, const IceCompile::Deps &)> GetComponentCompiler;

		static void FinaliseLoad(Libs & libs);

	protected:
		static void SetSlice(Libs &, const GetComponentCompiler &, const VariableType &, bool iceParts, bool slicerParts);
};

#endif