11#ifndef __BE_IO_PROPERTIESFILE_H__
12#define __BE_IO_PROPERTIESFILE_H__
72 const std::string &pathname,
74 const std::map<std::string, std::string>
111 const std::string &pathname);
149 std::string _pathname;
160 const std::map<std::string, std::string> &defaults);
An IO::Properties object persisted in a file on disk.
PropertiesFile & operator=(const PropertiesFile &other)=delete
Assignment operator (disabled).
PropertiesFile(const PropertiesFile &other)=delete
Copy constructor (disabled).
~PropertiesFile()
Destructor.
void changeName(const std::string &pathname)
Change the name of the Properties, which means changing the name of the underlying file that stores t...
void sync()
Write the properties to the underlying file, synchronizing the in-memory and on-disk versions.
PropertiesFile(const std::string &pathname, IO::Mode mode=IO::Mode::ReadOnly, const std::map< std::string, std::string > &defaults={})
Construct a new Properties object from an existing or to be created properties file.
Maintain key/value pairs of strings, with each property matched to one value.
Mode
Accessibility of object.
@ ReadOnly
Constant indicating the state of an object that manages some underlying file is accessible for readin...
This software was developed at the National Institute of Standards and Technology (NIST) by employees...