52 #ifndef __PCL_SettingsData_h
53 #define __PCL_SettingsData_h
58 #include <pcl/Diagnostics.h>
236 m_minifyXML = enable;
246 EnableMinifiedXML( !disable );
265 return m_compressBlocks;
275 m_compressBlocks = enable;
285 EnableBlockCompression( !disable );
300 return m_compressionThreshold;
312 m_compressionThreshold =
Range( threshold, 256u, 65536u );
328 return m_modifiedCount;
338 return m_modifiedCount > 0;
383 bool m_minifyXML =
true;
384 bool m_compressBlocks =
true;
385 unsigned m_compressionThreshold = 4096;
386 mutable Mutex m_mutex;
387 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
SettingsData(const IsoString &identifier)
void EnableBlockCompression(bool enable=true)
unsigned CompressionThreshold() const
int ModifiedCount() const
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