Hazelcast C++ Client
Hazelcast C++ Client Library
hazelcast::client::client_property Class Reference

A client property is a configuration for hazelcast client. More...

#include <client_properties.h>

Public Member Functions

 client_property (const std::string &name, const std::string &default_value)
 
const std::string & get_name () const
 
const std::string & get_default_value () const
 
const char * get_system_property () const
 Gets the system environment property value of the property. More...
 

Detailed Description

A client property is a configuration for hazelcast client.

For available configurations see client_properties class.

Definition at line 40 of file client_properties.h.

Member Function Documentation

◆ get_system_property()

const char * hazelcast::client::client_property::get_system_property ( ) const

Gets the system environment property value of the property.

Returns
the value of the property. NULL if no such environment property exist.

Definition at line 628 of file client_impl.cpp.

628  {
629 #if defined(WIN32) || defined(_WIN32) || defined(WIN64) || defined(_WIN64)
630  #pragma warning(push)
631 #pragma warning(disable: 4996) //for 'getenv': This function or variable may be unsafe.
632 #endif
633  return std::getenv(name_.c_str());
634 #if defined(WIN32) || defined(_WIN32) || defined(WIN64) || defined(_WIN64)
635  #pragma warning(pop)
636 #endif
637  }

The documentation for this class was generated from the following files: