SpiceKernelConfig.hh 823 Bytes
/*
 * 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