mesh_conv::MC_string_tokenizer Class Reference

Helper class to tokenize easily a string. More...

List of all members.

Static Public Member Functions

static std::vector< std::string > tokenize (const std::string &str, const std::string &delimiters=" ")
 tokenize a given string

Detailed Description

Helper class to tokenize easily a string.


Member Function Documentation

std::vector< std::string > mesh_conv::MC_string_tokenizer::tokenize ( const std::string &  str,
const std::string &  delimiters = " " 
) [static]

tokenize a given string

Returns:
the vector of string tokenized
Parameters:
str the input string
delimiters the delimiter between the string ("," ";" " " ...), default is empty space

exemple std::vector <std::string> mesh_conv::MC_string_tokenizer.tokenize(std::string("4.5,87.1,10"),",");

Referenced by mesh_conv::MC_matrix::analyse_string(), mesh_conv::MC_double_vector::MC_double_vector(), mesh_conv::MC_int_vector::MC_int_vector(), mesh_conv::MC_v3d::MC_v3d(), mesh_conv::MC_v4d::MC_v4d(), mesh_conv::operator>>(), and mesh_conv::MC_io_off::read_off().


The documentation for this class was generated from the following files:

Generated on Wed Nov 11 17:13:53 2009 by  doxygen 1.6.1