NIST Biometric Evaluation Framework
Software components for biometric technology evaluations
be_io_propertiesfile.h
Go to the documentation of this file.
1/*
2 * This software was developed at the National Institute of Standards and
3 * Technology (NIST) by employees of the Federal Government in the course
4 * of their official duties. Pursuant to title 17 Section 105 of the
5 * United States Code, this software is not subject to copyright protection
6 * and is in the public domain. NIST assumes no responsibility whatsoever for
7 * its use by other parties, and makes no guarantees, expressed or implied,
8 * about its quality, reliability, or any other characteristic.
9 */
10
11#ifndef __BE_IO_PROPERTIESFILE_H__
12#define __BE_IO_PROPERTIESFILE_H__
13
14#include <map>
15#include <string>
16
17#include <be_io.h>
18#include <be_io_properties.h>
19#include <be_error_exception.h>
20
21namespace BiometricEvaluation
22{
23 namespace IO
24 {
50 {
51 public:
72 const std::string &pathname,
74 const std::map<std::string, std::string>
75 &defaults = {});
76
89 void
91
109 void
111 const std::string &pathname);
112
115
127 const PropertiesFile &other) = delete;
128
145 const PropertiesFile &other) = delete;
146
147 private:
149 std::string _pathname;
150
158 void
159 initPropertiesFile(
160 const std::map<std::string, std::string> &defaults);
161 };
162 }
163}
164#endif /* __BE_IO_PROPERTIESFILE_H__ */
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).
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.
Definition: be_io.h:35
@ 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...