CLI version: add option for delimiter token of csv output

This commit is contained in:
Mario Fink
2021-06-28 12:51:09 +02:00
parent fdd107fbb3
commit bafc018566
4 changed files with 28 additions and 6 deletions

View File

@@ -381,7 +381,7 @@ namespace imc
}
// print channel
void print(std::string filename, const char sep = ' ', int width = 25)
void print(std::string filename, const char sep = ',', int width = 25)
{
std::ofstream fou(filename);

View File

@@ -333,7 +333,7 @@ namespace imc
}
// print all channels in directory
void print_channels(std::string output)
void print_channels(std::string output, const char sep)
{
// check for given directory
std::filesystem::path pd = output;
@@ -352,7 +352,7 @@ namespace imc
std::filesystem::path pf = pd / filenam;
// and print the channel
it->second.print(pf);
it->second.print(pf,sep);
}
}