35 #ifndef PTLIB_CONFIG_H 36 #define PTLIB_CONFIG_H 42 #include "ptbuildopts.h" 514 #include "msos/ptlib/config.h" 516 #include "unix/ptlib/config.h" 520 #endif // P_CONFIG_FILE 522 #endif // PTLIB_CONFIG_H virtual void DeleteKey(const PString &key)
Delete the particular variable in the specified section.
virtual void SetReal(const PString &key, double value)
Set a floating point variable determined by the key in the section.
virtual void SetString(const PString &key, const PString &value)
Set a string variable determined by the key in the section.
This class defines an absolute time and date.
Definition: ptime.h:53
A class representing a configuration for the application.
Definition: config.h:67
This is a dictionary collection class of PString objects, keyed by another string.
Definition: pstring.h:2784
This class describes a full description for a file on the particular platform.
Definition: filepath.h:65
virtual void SetBoolean(const PString &key, PBoolean value)
Set a boolean variable determined by the key in the section.
PConfig(Source src=Application)
Create a new configuration object.
virtual PBoolean GetBoolean(const PString &key, PBoolean dflt=false) const
Get a boolean variable determined by the key in the section.
virtual void SetDefaultSection(const PString §ion)
Set the default section for variable operations.
This is an array collection class of PString objects.
Definition: pstring.h:2024
The application specific configuration file.
Definition: config.h:96
BOOL PBoolean
Definition: object.h:102
The platform specific environment.
Definition: config.h:81
virtual void SetInteger(const PString &key, long value)
Set an integer variable determined by the key in the section.
Source
Description of the standard source for configuration information.
Definition: config.h:76
virtual void SetInt64(const PString &key, PInt64 value)
Set a 64 bit integer variable determined by the key in the section.
virtual double GetReal(const PString &key, double dflt=0) const
Get a floating point variable determined by the key in the section.
The character string class.
Definition: pstring.h:108
The platform specific system wide configuration file.
Definition: config.h:87
virtual void DeleteSection()
Delete all variables in the specified section.
virtual long GetInteger(const PString &key, long dflt=0) const
PString defaultSection
The current section for variable values.
Definition: config.h:497
virtual void SetTime(const PString &key, const PTime &value)
Set a PTime variable determined by the key in the section.
virtual PTime GetTime(const PString &key) const
Get a PTime variable determined by the key in the section.
virtual PStringToString GetAllKeyValues() const
Get all of the keys in the section and their values.
virtual PStringArray GetSections() const
Get all of the section names currently specified in the file.
virtual PInt64 GetInt64(const PString &key, PInt64 dflt=0) const
Get a 64 bit integer variable determined by the key in the section.
Ultimate parent class for all objects in the class library.
Definition: object.h:1118
virtual PBoolean HasKey(const PString &key) const
Determine if the particular variable in the section is actually present.
virtual PString GetDefaultSection() const
Get the default section for variable operations.
virtual PStringArray GetKeys() const
Get a list of all the keys in the section.
virtual PString GetString(const PString &key) const
Get a string variable determined by the key in the section.