summaryrefslogtreecommitdiff
path: root/src/datafileparser.h
blob: bc1ca9a187a181d2e7313105146fdde4473def9d (plain)
    1 ////////////////////////////////////////////////////////////////////////
    2 // FILE:        datafileparser.h
    3 // AUTHOR:      Johannes Winkelmann, jw@tks6.net
    4 // COPYRIGHT:   (c) 2004 by Johannes Winkelmann
    5 // ---------------------------------------------------------------------
    6 //  This program is free software; you can redistribute it and/or modify  
    7 //  it under the terms of the GNU General Public License as published by  
    8 //  the Free Software Foundation; either version 2 of the License, or     
    9 //  (at your option) any later version.                                   
   10 ////////////////////////////////////////////////////////////////////////
   11 
   12 #ifndef _DATAFILEPARSER_H_
   13 #define _DATAFILEPARSER_H_
   14 
   15 #include <map>
   16 #include <string>
   17 
   18 /**
   19  * Parser for files of the format
   20  * key : value1,value2
   21  */
   22 class DataFileParser
   23 {
   24 public:
   25     static bool parse(const std::string& fileName, 
   26                       std::map<std::string, std::string>& target);
   27 };
   28 
   29 #endif /* _DATAFILEPARSER_H_ */

Generated by cgit