20 #ifndef MPD_CONFIG_BLOCK_HXX 21 #define MPD_CONFIG_BLOCK_HXX 44 BlockParam(
const char *_name,
const char *_value,
int _line=-1)
105 const char *default_value=
nullptr) const noexcept;
114 const
char *default_value=
nullptr) const;
bool GetBoolValue() const
A path name in the native file system character set.
gcc_nonnull_all BlockParam(const char *_name, const char *_value, int _line=-1)
ConfigBlock * next
The next ConfigBlock with the same name.
gcc_nonnull_all void AddBlockParam(const char *_name, const char *_value, int _line=-1)
bool used
This flag is false when nobody has queried the value of this option yet.
gcc_pure const char * GetBlockValue(const char *name, const char *default_value=nullptr) const noexcept
gcc_pure bool IsEmpty() const noexcept
ConfigBlock & operator=(const ConfigBlock &)=delete
unsigned GetUnsignedValue() const
ConfigBlock(int _line=-1)
bool used
This flag is false when nobody has queried the value of this option yet.
AllocatedPath GetPath(const char *name, const char *default_value=nullptr) const
Same as config_get_path(), but looks up the setting in the specified block.
gcc_nonnull_all gcc_pure const BlockParam * GetBlockParam(const char *_name) const noexcept
bool IsNull() const noexcept
Determine if this is a "null" instance, i.e.
std::vector< BlockParam > block_params
const Partition const char * name