vdj_pipe
pipeline for processing DNA sequence data
sample_data.hpp
Go to the documentation of this file.
1 
6 #ifndef SAMPLE_DATA_HPP_
7 #define SAMPLE_DATA_HPP_
8 #include <string>
9 #include "boost/preprocessor/stringize.hpp"
10 #include "boost/filesystem.hpp"
11 
12 #ifndef SAMPLE_DATA_DIR
13 #error SAMPLE_DATA_DIR needs to be defined
14 #endif
15 #ifndef TEMPORARY_DIR
16 #error TEMPORARY_DIR needs to be defined
17 #endif
18 
19 namespace vdj_pipe{ namespace test{
20 
21 inline std::string sample_file_path(const std::string& name = "") {
22  static const boost::filesystem::path path(BOOST_PP_STRINGIZE(SAMPLE_DATA_DIR));
23  return canonical(path / name).string();
24 }
25 
26 inline std::string temp_file_path(const std::string& name = "") {
27  static const boost::filesystem::path path(BOOST_PP_STRINGIZE(TEMPORARY_DIR));
28  return canonical(path / name).string();
29 }
30 
31 }//namespace test
32 }//namespace vdj_pipe
33 #endif /* SAMPLE_DATA_HPP_ */
std::string temp_file_path(const std::string &name="")
Definition: sample_data.hpp:26
std::string sample_file_path(const std::string &name="")
Definition: sample_data.hpp:21
Main namespace of vdj_pipe library.
Definition: keywords_variable.hpp:11