/*
 * (c) 2005 Research Group Dr. Fuhrmann, University of Karlsruhe, Germany
 * All rights reserved.
 *
 * Author:
 *         Roman Krenicky
 *
 * $Id: kv_parsing.h,v 1.2 2005/11/21 09:39:01 kutzner Exp $
 *
 */

/*
  kv_parsing.h
  created: 14.5.2005
  last change: 14.5.2005
*/
/*! @file
    utility functions for simple parsing of key-value entries
*/

#ifndef _KV_PARSING_H
#define _KV_PARSING_H

#include "globalheader.h"

#include <string>
#include <map>
using namespace std;


map<string,string>* parse_kvd (const char *buf, size_t len,
                               const char **tail = NULL);

string findvalue_kv (const map<string,string> &entries, const string &key);

string assemble_kv (const map<string,string> &entries);


#endif // _KV_PARSING_H
