dxFeed Graal CXX API
Loading...
Searching...
No Matches
dxfcpp::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 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.
 

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 dxfcpp::System::getProperty ( const std::string & 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 dxfcpp::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

◆ 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
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.