A class that allows to set JVM system properties and get the values of JVM system properties.
More...
#include <System.hpp>
|
static bool | setProperty (const std::string &key, const std::string &value) |
| Sets the JVM system property indicated by the specified key.
|
|
template<typename Properties > |
static void | setProperties (Properties &&properties) |
| Sets the JVM system properties to the Properties argument.
|
|
static std::string | getProperty (const std::string &key) |
| Gets the system property indicated by the specified key.
|
|
A class that allows to set JVM system properties and get the values of JVM system properties.
◆ getProperty()
std::string dxfcpp::System::getProperty |
( |
const std::string & | key | ) |
|
|
static |
Gets the system property indicated by the specified key.
- Parameters
-
key | The name of the system property (UTF-8 string). |
- Returns
- The value of a JVM system property (UTF-8 string), or an empty string.
◆ setProperties()
template<typename Properties >
static void dxfcpp::System::setProperties |
( |
Properties && | properties | ) |
|
|
inlinestatic |
Sets the JVM system properties to the Properties argument.
- Template Parameters
-
Properties | The properties' type (std::map, std::unordered_map etc). |
- Parameters
-
properties | The new system properties. |
- Returns
◆ setProperty()
bool dxfcpp::System::setProperty |
( |
const std::string & | key, |
|
|
const std::string & | value ) |
|
static |
Sets the JVM system property indicated by the specified key.
- Parameters
-
key | The name of the system property (UTF-8 string). |
value | The value of the system property (UTF-8 string). |
- Returns
- true if the setting of the JVM system property succeeded.