MeVisLab Toolbox Reference
mlTextStringParserTools.h File Reference

Header of a collection of string tools useful for DICOM/ML IO projects. More...

Go to the source code of this file.

Namespaces

namespace  ml
 Main documentation file for ML users and developers.
 
namespace  ml::TextStringParserTools
 A collection of string tools useful for DICOM/ML IO projects.
 

Functions

ML_MLToDicomTools_EXPORT std::string ml::TextStringParserTools::toPagedImgStr (const PagedImage &imgProps, const std::string &lineEndStr)
 Converts a PagedImage property description to a std::string and returns it.
 
ML_MLToDicomTools_EXPORT std::string ml::TextStringParserTools::extractLine (const std::string &source, MLErrorCode &err, size_t &readPos)
 Extraction from std::string.
 
ML_MLToDicomTools_EXPORT MLErrorCode ml::TextStringParserTools::extractLine (const std::string &srcStr, const std::string &parseFormatStr, std::string &targetVal, size_t &readPos)
 Extracts one line starting at readPos, reads parseFormatStr and reads targetVal; readPos is incremented to position after read for subsequent calls.
 
ML_MLToDicomTools_EXPORT MLErrorCode ml::TextStringParserTools::extractLine (const std::string &srcStr, const std::string &parseFormatStr, int &targetVal, size_t &readPos)
 Same as extractLine for int target values, only for one parameter.
 
ML_MLToDicomTools_EXPORT MLErrorCode ml::TextStringParserTools::extractLine (const std::string &srcStr, const std::string &parseFormatStr, MLint &targetVal, size_t &readPos)
 Same as extractLine for MLint target values, only for one parameter.
 
ML_MLToDicomTools_EXPORT MLErrorCode ml::TextStringParserTools::extractLine (const std::string &srcStr, const std::string &parseFormatStr, MLuint64 &targetVal, size_t &readPos)
 Same as extractLine for int target values, only for one parameter.
 
ML_MLToDicomTools_EXPORT MLErrorCode ml::TextStringParserTools::extractLine (const std::string &srcStr, const std::string &parseFormatStr, MLdouble &val, size_t &readPos)
 Extracts one line starting at readPos, reads parseFormatStr and writes it into val;! readPos is incremented to position after read for subsequent calls.
 
ML_MLToDicomTools_EXPORT MLErrorCode ml::TextStringParserTools::extractLine (const std::string &srcStr, const std::string &parseFormatStr, MLdouble &val0, MLdouble &val1, MLdouble &val2, MLdouble &val3, size_t &readPos)
 Extracts one line starting at readPos, reads parseFormatStr and writes it into val[0-3]; readPos is incremented to position after read for subsequent calls.
 
template<typename T1 , typename T2 , typename T3 , typename T4 , typename T5 , typename T6 >
MLErrorCode ml::TextStringParserTools::extractLine6T (const std::string &srcStr, const std::string &parseFormatStr, T1 &val0, T2 &val1, T3 &val2, T4 &val3, T5 &val4, T6 &val5, int NUM_ELEMS, size_t &readPos)
 Extracts one line starting at readPos, reads parseFormatStr and writes it into val[0-5]; readPos is incremented to position after read for subsequent calls.
 
ML_MLToDicomTools_EXPORT MLErrorCode ml::TextStringParserTools::extractStringChunk (const std::string &srcStr, const std::string &introStr, size_t chunkSize, std::string &readStr, size_t &readPos)
 Expects introString at position readPos in srcStr, then a string of size chunkSize and a terminating cacheLineSep string.
 
ML_MLToDicomTools_EXPORT MLErrorCode ml::TextStringParserTools::extractPagedImgPropsFromString (const std::string &srcStr, PagedImage &imgProps, size_t &readPos)
 Reads one line starting at readPos, sets imgProps from read data and increments readPos to position after read data chunk.
 

Variables

ML_MLToDicomTools_EXPORT const char *const ml::TextStringParserTools::CacheLineSep
 Separator between cache file lines. Has a terminator at the line end for simple line end detection.
 

Detailed Description

Header of a collection of string tools useful for DICOM/ML IO projects.

Author
Wolf Spindler
Date
2009-12-01

Definition in file mlTextStringParserTools.h.