CLI version: add option for delimiter token of csv output
This commit is contained in:
@@ -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);
|
||||
|
||||
|
@@ -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);
|
||||
}
|
||||
}
|
||||
|
||||
|
Reference in New Issue
Block a user