52 #ifndef __PCL_SettingsData_h
53 #define __PCL_SettingsData_h
58 #include <pcl/Diagnostics.h>
260 m_minifyXML = enable;
270 EnableMinifiedXML( !disable );
289 return m_compressBlocks;
299 m_compressBlocks = enable;
309 EnableBlockCompression( !disable );
324 return m_compressionThreshold;
336 m_compressionThreshold =
Range( threshold, 256u, 65536u );
352 return m_modifiedCount;
362 return m_modifiedCount > 0;
418 bool m_universal =
false;
420 bool m_minifyXML =
true;
421 bool m_compressBlocks =
true;
422 unsigned m_compressionThreshold = 4096;
423 mutable Mutex m_mutex;
424 mutable int m_modifiedCount = 0;
Eight-bit string (ISO/IEC-8859-1 or UTF-8 string)
Adaptive mutual exclusion lock variable.
Serializable, thread-safe settings data.
Variant Search(const IsoString &key) const
IsoStringList AllKeys() const
fsize_type FileSize() const
IsoStringList Keys(const IsoString &key) const
void EnableBlockCompression(bool enable=true)
unsigned CompressionThreshold() const
int ModifiedCount() const
SettingsData(const IsoString &identifier, bool universal=false)
bool IsBlockCompressionEnabled() const
bool IsMinifiedXMLEnabled() const
bool Remove(const IsoString &key)
void DisableMinifiedXML(bool disable=true)
virtual void Save() const
void SetCompressionThreshold(unsigned threshold)
bool Add(const IsoString &key, const Variant &value)
void DisableBlockCompression(bool disable=true)
void EnableMinifiedXML(bool enable=true)
Acts like a union to store instances of different data types.
constexpr const T & Range(const T &x, const T &a, const T &b) noexcept