Direct-BT
2.3.1
Direct-BT - Direct Bluetooth Programming.
|
Go to the documentation of this file.
60 const std::string root_prefix_domain;
62 environment(
const std::string & root_prefix_domain) noexcept;
64 static bool local_debug;
66 static void envSet(std::string prefix_domain, std::string basepair) noexcept;
67 static void envExplodeProperties(std::string prefix_domain, std::string list) noexcept;
69 static bool getExplodingPropertiesImpl(
const std::string & root_prefix_domain,
const std::string & prefix_domain) noexcept;
106 static std::string
getProperty(
const std::string & name) noexcept;
117 static std::string
getProperty(
const std::string & name,
const std::string & default_value) noexcept;
132 static bool getBooleanProperty(
const std::string & name,
const bool default_value) noexcept;
144 static int32_t
getInt32Property(
const std::string & name,
const int32_t default_value,
145 const int32_t min_allowed=INT32_MIN,
const int32_t max_allowed=INT32_MAX) noexcept;
157 static uint32_t
getUint32Property(
const std::string & name,
const uint32_t default_value,
158 const uint32_t min_allowed=0,
const uint32_t max_allowed=UINT32_MAX) noexcept;
217 return getExplodingPropertiesImpl(
"", prefix_domain);
static uint64_t getElapsedMillisecond(const uint64_t ¤t_ts) noexcept
Returns elapsed monotonic time in milliseconds since module startup comparing against the given times...
static environment & get(const std::string root_prefix_domain="jau") noexcept
Static singleton initialization of this project's environment with the given global root prefix_domai...
Base jau environment class, merely to tag all environment settings by inheritance and hence documenta...
Main jau environment class, supporting environment variable access and fetching elapsed time using it...
static uint64_t getElapsedMillisecond() noexcept
Returns current elapsed monotonic time in milliseconds since module startup, see startupTimeMilliseco...
const std::string & getRootPrefixDomain() const noexcept
Returns the project's global singleton root prefix_domain, used at first call of environment::get(con...
const bool debug
Debug logging enabled or disabled.
static uint32_t getUint32Property(const std::string &name, const uint32_t default_value, const uint32_t min_allowed=0, const uint32_t max_allowed=UINT32_MAX) noexcept
Returns the uint32_t value of the environment's variable 'name', or the 'default_value' if the enviro...
static bool getBooleanProperty(const std::string &name, const bool default_value) noexcept
Returns the boolean value of the environment's variable 'name', or the 'default_value' if the environ...
static const uint64_t startupTimeMilliseconds
Module startup time t0 in monotonic time in milliseconds.
static int32_t getInt32Property(const std::string &name, const int32_t default_value, const int32_t min_allowed=INT32_MIN, const int32_t max_allowed=INT32_MAX) noexcept
Returns the int32_t value of the environment's variable 'name', or the 'default_value' if the environ...
uint64_t getCurrentMilliseconds() noexcept
Returns current monotonic time in milliseconds.
static std::string getProperty(const std::string &name) noexcept
Returns the value of the environment's variable 'name'.
const bool debug_jni
JNI Debug logging enabled or disabled.
static bool getExplodingProperties(const std::string &prefix_domain) noexcept
Fetches exploding variable-name (prefix_domain) values.
const bool verbose
Verbose info logging enabled or disabled.