DbSite::get_config()

#include <db_cxx.h>

int
DbSite::get_config(u_int32_t which, u_int32_t *valuep);

The DbSite::get_config() method returns whether the specified which parameter is currently set. See the DbSite::set_config() method for the configuration flags that can be set for a DbSite handle.

The DbSite::get_config() method may be called at any time during the life of the application.

The DbSite::get_config() method either returns a non-zero error value or throws an exception that encapsulates a non-zero error value on failure, and returns 0 on success.

Parameters

which

The which parameter is the configuration flag to check. See the DbSite::set_config() method for a list of configuration flags that you can provide to this parameter.

valuep

The valuep parameter references memory into which the configuration of the specified which parameter is copied.

If the returned value is zero, the configuration flag is off; otherwise it is on.

Class

DbSite

See Also

Replication and Related Methods, DbSite::set_config()