◆ ConfigBase()
FiftyoneDegrees::Common::ConfigBase::ConfigBase | ( | fiftyoneDegreesConfigBase * | config | ) |
Constructs a new instance of the configuration with a reference to the C configuration provided.
- Parameters
-
- config - pointer to the underlying configuration structure
Member Function Documentation
◆ getConcurrency()
virtual uint16_t FiftyoneDegrees::Common::ConfigBase::getConcurrency ( ) const virtualGet the expected number of concurrent accessors of the data set.
- Returns
- concurrency
Reimplemented in FiftyoneDegrees::DeviceDetection::Hash::ConfigHash.
◆ getReuseTempFile()
bool FiftyoneDegrees::Common::ConfigBase::getReuseTempFile ( ) const Get whether temporary files can be reused across multiple processes.
- Returns
- true if temporary files can be reused, otherwise false.
◆ getTempDirectories()
vector<string> FiftyoneDegrees::Common::ConfigBase::getTempDirectories ( ) const Gets a vector of temporary directory strings which should be used to store temporary files.
- Returns
- a vector of temporary directories, or NULL if no temporary directories are to be used.
◆ getUseTempFile()
bool FiftyoneDegrees::Common::ConfigBase::getUseTempFile ( ) const Get whether or not a temporary file should be created from the original data file and used to initialise the data set.
- Returns
- true if temporary files should be used, otherwise false.
◆ getUseUpperPrefixHeaders()
bool FiftyoneDegrees::Common::ConfigBase::getUseUpperPrefixHeaders ( ) const Get whether or not an HTTP_ upper case prefixes should be considered when evaluating HTTP headers.
- Returns
- true if upper case HTTP_ prefixed header keys should be considered.
◆ setReuseTempFile()
void FiftyoneDegrees::Common::ConfigBase::setReuseTempFile ( bool reuse ) Set whether or not a temporary file that already exists for a master file should be reused by another process.
- Parameters
-
- reuse - should create a temp files be reused
◆ setTempDirectories()
void FiftyoneDegrees::Common::ConfigBase::setTempDirectories ( vector< string > tempDirs ) Sets a collection of temporary directories to use if temporary file operation is required in the order in which the directories should be used.
If no temporary directories are provided and temporary files should be used the temporary files will be placed in the same directory as the master file.
- Parameters
-
- tempDirs - collection of temporary directories.
◆ setUseTempFile()
void FiftyoneDegrees::Common::ConfigBase::setUseTempFile ( bool use ) Set whether or not a temporary file should be created from the original data file and used to initialise the data set.
- Parameters
-
- use - should create a temp file
◆ setUseUpperPrefixHeaders()
void FiftyoneDegrees::Common::ConfigBase::setUseUpperPrefixHeaders ( bool use ) Set whether or not the HTTP header field might be prefixed with 'HTTP_'.
- Parameters
-
- use - whether or not prefixed upper headers should be used
The documentation for this class was generated from the following file:- /home/vsts/work/1/s/apis/device-detection-cxx/src/common-cxx/ConfigBase.hpp