Skip to main content
enables to set runtime configuration options to DPF Client. Inherits from:
  • ansys::dpf::RuntimeConfig

Members

Friends

Public functions

Function RuntimeClientConfig

Parameters:
  • RuntimeClientConfig const & rhs
Return type:

Function RuntimeClientConfig

Parameters:
  • RuntimeClientConfig && rhs
Return type:

Function enableCache

Sets whether gRPC calls should be intercepted to cache responses or not. Parameters:
  • bool use_cache
Return type: void

Function isCacheEnabled

Returns: Whether gRPC calls are intercepted to cache responses or not. Return type: bool

Function setStreamingBufferSize

Sets the chunk size (in bytes) used in gRPC streaming calls. Parameters:
  • int size
Return type: void

Function getStreamingBufferSize

Returns: the chunk size (in bytes) used in gRPC streaming calls. Return type: int

Function setStreamFloatsInsteadOfDoubles

Sets whether double values (8 bytes) should be converted and streamed as floats values (4 bytes) in gRPC streaming calls. Parameters:
  • bool use_float
Return type: void

Function streamingFloatsInsteadOfDouble

Returns: Whether double values (8 bytes) are converted and streamed as floats values (4 bytes) in gRPC streaming calls. Return type: bool

Function setMetadata

Sets the custom metadata appended to gRPC packets. Parameters:
  • std::map< std::string, std::string > const & metadata
Return type: void

Function getMetadata

Gets the custom metadata appended to gRPC packets. Return type: std::map< std::string, std::string >

Function setSecureConnection

Sets the use of TLS for secure gRPC connections. Parameters:
  • bool secure
Return type: void

Function isConnectionSecure

Returns if the gRPC communication is secured by using TLS. Return type: bool