![]() |
![]() |
![]() |
![]() |
Read a Boolean value from a configuration file
#include <photon/PxProto.h>
int PxConfigReadBool( const char *section,
const char *entry,
int dflt,
int *value);
int PxConfigReadBoolCx( PxCfgContext_t *cx,
const char *section,
const char *entry,
int dflt,
int *value);
phexlib
These functions read a Boolean parameter from a configuration file.
PxConfigReadBool() reads from the currently open configuration file opened by PxConfigOpen(), while PxConfigReadBoolCx() reads from the configuration file indicated by cx.
Pt_TRUE if the required section/entry exists and the given value is valid, otherwise Pt_FALSE.
Photon
| Safety: | |
|---|---|
| Interrupt handler | No |
| Signal handler | No |
| Thread | No |
PxConfigOpen*(), PxConfigReadChar*(), PxConfigReadDouble*(), PxConfigReadInt*(), PxConfigReadLLong*(), PxConfigReadLong*(), PxConfigReadShort*(), PxConfigReadString*(), PxConfigWriteBool*(), PxConfigWriteChar*(), PxConfigWriteDouble*(), PxConfigWriteInt*(), PxConfigWriteLLong*(), PxConfigWriteLong*(), PxConfigWriteShort*(), PxConfigWriteString*()
![]() |
![]() |
![]() |
![]() |