Functions
contrib/mul/mbl/mbl_parse_string_list.h File Reference

Parse list of strings. More...

#include <vcl_string.h>
#include <vcl_vector.h>
#include <vcl_iostream.h>

Go to the source code of this file.

Functions

void mbl_parse_string_list (vcl_istream &is, vcl_vector< vcl_string > &items, const vcl_string &comment_str="//")
 Parse list of strings.
void mbl_parse_string_list (const vcl_string &data, vcl_vector< vcl_string > &items, const vcl_string &comment_str="//")
 Parse list of strings.

Detailed Description

Parse list of strings.

Author:
Tim Cootes

Definition in file mbl_parse_string_list.h.


Function Documentation

void mbl_parse_string_list ( vcl_istream &  is,
vcl_vector< vcl_string > &  items,
const vcl_string &  comment_str 
)

Parse list of strings.

Expects format of data:

   {
     string1 string2 string3 // Comment ignored
     string4 string5
   }
   \param comment_str defines string indicating comments
   

Throws a mbl_exception_parse_error if it fails.

Expects format of data:

   {
     string1 string2 string3 ...
   }
   

Throws a mbl_exception_parse_error if it fails.

Definition at line 19 of file mbl_parse_string_list.cxx.

void mbl_parse_string_list ( const vcl_string &  data,
vcl_vector< vcl_string > &  items,
const vcl_string &  comment_str 
)

Parse list of strings.

Expects format of data:

   {
     string1 string2 string3 ...
   }
   
Parameters:
comment_strdefines string indicating comments Throws a mbl_exception_parse_error if it fails.

Expects format of data:

   {
     string1 string2 string3 ...
   }
   

Throws a mbl_exception_parse_error if it fails.

Definition at line 67 of file mbl_parse_string_list.cxx.