52 #ifndef __PCL_Settings_h
53 #define __PCL_Settings_h
58 #include <pcl/Diagnostics.h>
63 #ifndef __PCL_NO_FLAGS_SETTINGS_IO
360 double d; Read( key, d );
361 if ( LastReadOK() ) { f = float( d );
return true; }
380 double d; ReadGlobal( key, d );
381 if ( LastReadOK() ) { f = float( d );
return true; }
385 #ifndef __PCL_NO_SETTINGS_TEMPLATES
399 template <
typename T>
402 int i; Read( key, i );
403 if ( LastReadOK() ) { t = T( i );
return true; }
420 template <
typename T>
423 unsigned u; Read( key, u );
424 if ( LastReadOK() ) { t = T( u );
return true; }
430 #ifndef __PCL_NO_FLAGS_SETTINGS_IO
448 template <
typename E>
451 return Read( key, f.m_flags );
470 template <
typename E>
473 return ReadGlobal( key, f.m_flags );
729 Write( key,
double( f ) );
747 WriteGlobal( key,
double( f ) );
750 #ifndef __PCL_NO_SETTINGS_TEMPLATES
759 template <
typename T>
762 Write( key,
int( t ) );
772 template <
typename T>
775 Write( key,
unsigned( t ) );
780 #ifndef __PCL_NO_FLAGS_SETTINGS_IO
797 template <
typename E>
800 Write( key, f.m_flags );
822 template <
typename E>
825 WriteGlobal( key, f.m_flags );
A type-safe collection of enumerated flags.
Eight-bit string (ISO/IEC-8859-1 or UTF-8 string)
Persistent module settings.
static void WriteGlobal(const IsoString &key, const String &s)
static void Write(const IsoString &key, float f)
static void Write(const IsoString &key, int i)
static void WriteGlobal(const IsoString &key, double f)
static void WriteGlobal(const IsoString &key, const ByteArray &b)
static void WriteGlobal(const IsoString &key, float f)
Settings(const Settings &)=delete
static bool ReadU(const IsoString &key, T &t)
static void SetGlobalKeyAccess(const IsoString &key, bool allowRead, bool allowWrite)
static bool CanReadGlobal(const IsoString &key)
static void Write(const IsoString &key, bool b)
static void WriteU(const IsoString &key, T t)
static bool Read(const IsoString &key, int &i)
static bool Read(const IsoString &key, bool &b)
static bool Read(const IsoString &key, ByteArray &b)
static void WriteGlobal(const IsoString &key, unsigned u)
static bool ReadGlobal(const IsoString &key, float &f)
static bool ReadGlobal(const IsoString &key, unsigned &u)
static bool Read(const IsoString &key, Flags< E > &f)
static void WriteI(const IsoString &key, T t)
static void WriteGlobal(const IsoString &key, int i)
static bool ReadGlobal(const IsoString &key, bool &b)
static void Write(const IsoString &key, Flags< E > f)
static bool CanWriteGlobal(const IsoString &key)
static bool Read(const IsoString &key, unsigned &u)
static void Write(const IsoString &key, const ByteArray &b)
static bool Read(const IsoString &key, double &f)
static bool ReadGlobal(const IsoString &key, double &f)
static bool ReadGlobal(const IsoString &key, String &s)
static bool ReadGlobal(const IsoString &key, Flags< E > &f)
static void Remove(const IsoString &key)
static bool Read(const IsoString &key, float &f)
static bool ReadGlobal(const IsoString &key, int &i)
static void Write(const IsoString &key, unsigned u)
static void RemoveGlobal(const IsoString &key)
static bool Read(const IsoString &key, String &s)
static void Write(const IsoString &key, const String &s)
static void Write(const IsoString &key, double f)
static bool ReadI(const IsoString &key, T &t)
static void WriteGlobal(const IsoString &key, Flags< E > f)
static bool ReadGlobal(const IsoString &key, ByteArray &b)
static void WriteGlobal(const IsoString &key, bool b)