Functions
contrib/mul/mbl/mbl_parse_keyword_list.cxx File Reference

Parse list of strings. More...

#include "mbl_parse_keyword_list.h"
#include <mbl/mbl_exception.h>
#include <mbl/mbl_parse_block.h>
#include <vcl_sstream.h>

Go to the source code of this file.

Functions

void mbl_parse_keyword_list (vcl_istream &is, const vcl_string &keyword, vcl_vector< vcl_string > &items, bool discard_comments)
 Read in data from a stream, assumed to be a list of items.
void mbl_parse_keyword_list2 (vcl_istream &is, const vcl_string &keyword, vcl_vector< vcl_string > &items, bool discard_comments)
 Read in data from a stream, assumed to be a list of items.

Detailed Description

Parse list of strings.

Author:
Tim Cootes

Definition in file mbl_parse_keyword_list.cxx.


Function Documentation

void mbl_parse_keyword_list ( vcl_istream &  is,
const vcl_string &  keyword,
vcl_vector< vcl_string > &  items,
bool  discard_comments 
)

Read in data from a stream, assumed to be a list of items.

Read in keyword separated blocks of text from stream.

Assumes list of objects separated by a keyword. keyword is always the same word, defined in the input variable. Expects format of data:

   {
     keyword: string1
     keyword: { stuff in braces }
     keyword: string3
   }
   

Definition at line 23 of file mbl_parse_keyword_list.cxx.

void mbl_parse_keyword_list2 ( vcl_istream &  is,
const vcl_string &  keyword,
vcl_vector< vcl_string > &  items,
bool  discard_comments 
)

Read in data from a stream, assumed to be a list of items.

Read in keyword separated blocks of text from stream.

Assumes list of objects separated by a keyword. keyword is always the same word, defined in the input variable. Expects format of data:

   {
     keyword: string1 { stuff in braces }
   }
   

Definition at line 76 of file mbl_parse_keyword_list.cxx.