Blame view

src/SpiceKernel/SpiceKernelConfig.hh 823 Bytes
cebd3f0e   Benjamin Renard   First implementat...
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
38
39
40
41
42
43
44
45
46
47
/*
 * SpiceKernelConfig.hh
 *
 *  Created on: Jul 8, 2016
 *      Author: AKKA IS
 */

#ifndef SPICEKERNELCONFIG_HH_
#define SPICEKERNELCONFIG_HH_

#include <list>

namespace AMDA {
namespace SpiceKernel {

class SpiceKernelConfig {
public:
	SpiceKernelConfig() {};

	void setRootPath(const char* rootPath) {
		_rootPath = rootPath;
	}

	void addDataFileForBodyId(int bodyId, const char* path) {
		_dataFilesForBodyIdMap[bodyId].push_back(path);
	}

	std::string getFullPath(const char* path) {
		std::string fullPath = _rootPath;
		fullPath += (path);
		return fullPath;
	}

	std::list<std::string>& getDataFilesForBodyId(int bodyId) {
		return _dataFilesForBodyIdMap[bodyId];
	}

private:
	std::string _rootPath;

	std::map<int, std::list<std::string>> _dataFilesForBodyIdMap;
};

} /* SpiceKernel */
}/* AMDA */

#endif