aimsdata  4.7.0
Neuroimaging data handling
fdfutil.h File Reference
#include <cartobase/type/string_conversion.h>
#include <iostream>
#include <fstream>
#include <sstream>
#include <vector>
#include <iterator>
#include <algorithm>
Include dependency graph for fdfutil.h:
This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Functions

void removeCharacters (std::string &line, std::string character)
 
void tokenize (const std::string &str, std::vector< std::string > &tokens, const std::string &delimiters=" ")
 
std::string parseLine (std::string line)
 
template<class T >
void stringToVector (std::string value, std::vector< T > &values)
 
template<class T >
void printVector (std::ostream &os, std::string name, const std::vector< T > &vect)
 

Function Documentation

◆ parseLine()

std::string parseLine ( std::string  line)

◆ printVector()

template<class T >
void printVector ( std::ostream &  os,
std::string  name,
const std::vector< T > &  vect 
)

Definition at line 76 of file fdfutil.h.

◆ removeCharacters()

void removeCharacters ( std::string &  line,
std::string  character 
)

◆ stringToVector()

template<class T >
void stringToVector ( std::string  value,
std::vector< T > &  values 
)

Definition at line 52 of file fdfutil.h.

References carto::stringTo(), and tokenize().

◆ tokenize()

void tokenize ( const std::string &  str,
std::vector< std::string > &  tokens,
const std::string &  delimiters = " " 
)

Referenced by stringToVector().