dxFeed Graal CXX API v5.0.0
Loading...
Searching...
No Matches
System Struct Reference

A class that allows to set JVM system properties and get the values of JVM system properties. More...

#include <System.hpp>

Static Public Member Functions

static bool setProperty (const StringLike &key, const StringLike &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 StringLike &key)
 Gets the system property indicated by the specified key.
 

Detailed Description

A class that allows to set JVM system properties and get the values of JVM system properties.

Member Function Documentation

◆ getProperty()

std::string System::getProperty ( const StringLike & key)
static

Gets the system property indicated by the specified key.

Parameters
keyThe 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 System::setProperties ( Properties && properties)
inlinestatic

Sets the JVM system properties to the Properties argument.

Template Parameters
PropertiesThe properties' type (std::map, std::unordered_map etc).
Parameters
propertiesThe new system properties.
Returns

References setProperty().

◆ setProperty()

DXFCPP_BEGIN_NAMESPACE bool System::setProperty ( const StringLike & key,
const StringLike & value )
static

Sets the JVM system property indicated by the specified key.

Parameters
keyThe name of the system property (UTF-8 string).
valueThe value of the system property (UTF-8 string).
Returns
true if the setting of the JVM system property succeeded.

Referenced by dxfc_system_set_property(), Logging::init(), Logging::init(), Logging::init(), and setProperties().