10#ifndef __BE_IO_PROPERTIES_H__
11#define __BE_IO_PROPERTIES_H__
43 const std::map<std::string, std::string>
67 const uint8_t *buffer,
70 const std::map<std::string, std::string>
93 const std::string &property,
94 const std::string &value);
115 const std::string &property,
137 const std::string &property,
159 const std::string &property,
176 const std::string &property);
190 const std::string &property)
const;
212 const std::string &property)
const;
230 const std::string &property)
const;
248 const std::string &property)
258 std::vector<std::string>
295 const std::map<std::string, std::string> &defaults);
317 const uint8_t *
const buffer,
319 const std::map<std::string, std::string> &defaults);
326 using PropertiesMap = std::map<std::string, std::string>;
329 PropertiesMap _properties;
343 const PropertiesMap &defaults);
Maintain key/value pairs of strings, with each property matched to one value.
void initWithBuffer(const Memory::uint8Array &buffer, const std::map< std::string, std::string > &defaults)
Initialize the PropertiesMap with the contents of a properly formatted buffer.
virtual void setPropertyFromDouble(const std::string &property, double value)
Set a property with a double value.
virtual bool getPropertyAsBoolean(const std::string &property) const
void initWithBuffer(const uint8_t *const buffer, size_t size, const std::map< std::string, std::string > &defaults)
Initialize the PropertiesMap with the contents of a properly formatted buffer.
BiometricEvaluation::IO::Mode getMode() const
Obtain the mode of the Properties object.
virtual void setProperty(const std::string &property, const std::string &value)
Set a property with a value.
virtual std::string getProperty(const std::string &property) const
Retrieve a property value as a string object.
virtual void setPropertyFromBoolean(const std::string &property, bool value)
Set a property with a boolean value.
virtual void setPropertyFromInteger(const std::string &property, int64_t value)
Set a property with an integer value.
virtual ~Properties()
Destructor.
virtual double getPropertyAsDouble(const std::string &property) const
Retrieve a property value as a double value.
Properties(IO::Mode mode=IO::Mode::ReadWrite, const std::map< std::string, std::string > &defaults={})
Construct a new Properties object.
virtual int64_t getPropertyAsInteger(const std::string &property) const
Retrieve a property value as an integer value.
std::vector< std::string > getPropertyKeys() const
Retrieve a set of all property keys.
virtual void removeProperty(const std::string &property)
Remove a property.
Properties(const uint8_t *buffer, const size_t size, IO::Mode mode=IO::Mode::ReadWrite, const std::map< std::string, std::string > &defaults={})
Construct a new Properties object from the contents of a buffer.
Mode
Accessibility of object.
@ ReadWrite
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...