Skip to main content
Provides an access to use DPF HGP API. The instance of LibraryHandle is only needed once. Wraps dataProcessingCore loading in an RAII (Resource acquisition is initialization) structure in order to ensure correct loading/unloading of the DPF core functionalities. Must be the first call made to DPF API.

Members

Public functions

Function LibraryHandle

Must be the first call made to DPF API. Parameters:
  • std::string const & key = “common” : [in] Key used to identify the API (e.g. common, remote…).
  • std::string const & shared_object_root_name = “DataProcessingCore” : [in] Library name of the DPF API to load (e.g. DataProcessingCore that implements the core DPF symbols, Ans.Dpf.GrpcClient that implements the remote gRPC DPF symbols…).
  • LoadType load_type = LoadType::try_load : [in] Enum that provides settings at API loading step.
  • std::string const & dpf_client_api = “DPFClientAPI”
Return type:

Function LibraryHandle

Must be the first call made to DPF API. Using a Context that defines specific settings. Parameters:
  • Context const & context: [in] Context object that defines settings to load the DPF APIs.
  • std::string const & key = “common” : [in] Key used to identify the API (e.g. common, remote…).
  • std::string const & shared_object_root_name = “DataProcessingCore” : [in] Library name of the DPF API to load (e.g. DataProcessingCore that implements the core DPF symbols, Ans.Dpf.GrpcClient that implements the remote gRPC DPF symbols…).
  • LoadType load_type = LoadType::try_load : [in] Enum that provides settings at API loading step.
  • std::string const & dpf_client_api = “DPFClientAPI”
Return type:

Function LibraryHandle

Must be the first call made to DPF API. Using a Context that defines specific settings. Parameters:
  • std::string const & path_to_shared_object: [in] path to DataProcessingCore.dll or libDataProcessingCore.so.
  • Context const & context: [in] Context object that defines settings to load the DPF APIs.
  • std::string const & key = “common” : [in] Key used to identify the API (e.g. common, remote…).
  • std::string const & shared_object_root_name = “DataProcessingCore” : [in] Library name of the DPF API to load (e.g. DataProcessingCore that implements the core DPF symbols, Ans.Dpf.GrpcClient that implements the remote gRPC DPF symbols…).
  • LoadType load_type = LoadType::try_load : [in] Enum that provides settings at API loading step.
  • std::string const & path_to_dpf_client_api = "" : [in] path to DPFClientAPI.dll or libDPFClientAPI.so, takes path_to_shared_object by default.
  • std::string const & dpf_client_api = “DPFClientAPI”
Return type:

Function LibraryHandle

Deprecated: This call is deprecated. usage is not maintained. Parameters:
  • std::string const & key
  • std::string const & shared_object_root_name
  • ApiType api_type
  • LoadType load_type = LoadType::try_load
  • std::string const & dpf_client_api = “DPFClientAPI”
Return type:

Function LibraryHandle

Parameters:
  • so::API * api
Return type:

Function LibraryHandle

Parameters:
  • const LibraryHandle &
Return type:

Function LibraryHandle

Parameters:
  • LibraryHandle &&
Return type:

Function ~LibraryHandle

Return type:

Function operator=

Parameters: Return type: LibraryHandle &

Function operator=

Parameters: Return type: LibraryHandle &

Function callAPI

Return type: so::API const *

Function error

Return type: ansys::dpf::DpfError const &

Function libraryDir

Return the path to the directory where the library is loaded. Return type: std::string