diff --git a/src/filepattern/cpp/version.h b/src/filepattern/cpp/version.h index 292a8bc5..b18c5932 100644 --- a/src/filepattern/cpp/version.h +++ b/src/filepattern/cpp/version.h @@ -2,6 +2,6 @@ #define VERSIONH_INCLUDED #define PROJECT_NAME "filepattern" -#define PROJECT_VER "2.0.5" +#define PROJECT_VER "2.0.6" #endif // VERSIONH_INCLUDED diff --git a/tests/cpp/main.cpp b/tests/cpp/main.cpp new file mode 100644 index 00000000..588fcb9e --- /dev/null +++ b/tests/cpp/main.cpp @@ -0,0 +1,55 @@ +#include +#include "../../src/filepattern/cpp/interface/filepattern.h" +#include "test_truth_data.h" +#include +#include + + + +void test01() +{ + std::string path = "/mnt/hdd8/axle/data/intensity1"; + std::string pattern = "p03_x{x:dd}_y{y:dd}_wx0_wy0_c{c:d}.ome.tif"; + + auto* files = new FilePattern(path, pattern); + std::cout<<"pattern is " <getPattern()<getUniqueValues(files->getVariables()); + + for(auto& v:vars){ + + std::cout << v.first <(val)<<" "; + } + } + auto var_list = files->getVariables(); + auto fv = files->getFiles(); + for(const auto& [mp, vl]: fv){ + for (const auto& [key, value] : mp){ + std::cout << key<< " "<< std::get(value) <(it->second); + } + + } + std::cout << std::endl; + for(auto& f: vl){ + std::cout << f << " \n"; + } + + } + delete files; +} + +int main(){ + std::cout <<"hola " << std::endl; + test01(); +} \ No newline at end of file