17#ifndef __file_key_value_h__
18#define __file_key_value_h__
39 Reader (
const std::string& file,
const char* first_line =
nullptr) {
40 open (file, first_line);
43 void open (
const std::string& file,
const char* first_line =
nullptr);
49 const std::string&
key ()
const throw () {
52 const std::string&
value ()
const throw () {
55 const std::string&
name ()
const throw () {
69 const std::string& prefix,
70 const bool add_to_command_history =
true);
const std::string & key() const
const std::string & value() const
void open(const std::string &file, const char *first_line=nullptr)
Reader(const std::string &file, const char *first_line=nullptr)
const std::string & name() const
open output files for writing, checking for pre-existing file if necessary
void write(File::OFStream &out, const KeyValues &keyvals, const std::string &prefix, const bool add_to_command_history=true)
std::map< std::string, std::string > KeyValues
used in various places for storing key-value pairs