ansys::dpf::core Class Reference
Last update: 10.07.2023
ansys::dpf::core Class Reference
#include <dpf_api.h>
Static Public Member Functions | |
static DpfError | applyContext (Context const &context) |
static DpfError | releaseDpf () |
static DpfError | releaseDpf (Client const *const client) |
static DpfError | applyContext (Context const &context, Client const *const client) |
static DpfError | loadDpfPlugin (std::string const &plugin_path, std::string const &plugin_name, std::string const &symbol="LoadOperators") |
static DpfError | loadDpfPlugin (std::string const &plugin_path, std::string const &plugin_name, Client const *const client) |
static DpfError | loadDpfPlugin (std::string const &plugin_path, std::string const &plugin_name, std::string const &symbol, Client const *const client) |
static Operator | assertInstantiate (std::string const &identifier) |
static Operator | assertInstantiate (std::string const &identifier, OperatorConfig const &config) |
static OperatorConfig | defaultOperatorConfig (std::string const &op_identifier, Client const *const client=nullptr) |
static OperatorSpecification | getOperatorSpecification (std::string const &identifier, Client const *const client=nullptr) |
static void | recordOperator (OperatorMainFunction f, std::string const &operator_identifier, AbstractCore *core=nullptr) |
static void | recordOperator (OperatorMainFunction f, std::string const &operator_identifier, OperatorSpecification const &spec, AbstractCore *=nullptr) |
template<typename StructureT > | |
static void | recordOperator () |
template<typename StructureT > | |
static void | recordOperatorAtCore (AbstractCore *core) |
static void | recordOperatorWithNewName (std::string const &exising_identifier, std::string const &new_identifier, AbstractCore *=nullptr) |
static Workflow | workflowById (int id) |
static Workflow | workflowById (int id, Client const *const client) |
static Operator | operatorById (int id) |
static Workflow | workflowFromTemplate (std::string const &template_identifier) |
static bool | workflowTemplateExists (std::string const &template_identifier) |
static void | prepareServerShutdown (Client *const client) |
static void | releaseServer (Client *const client) |
static std::vector< std::string > | availableOperators () |
static std::vector< std::string > | availableOperators (Client *const client) |
static dataIdentifierInDatabase | recordInDatabase (databaseIdentifier const &key, DpfTypes &data) |
static dataIdentifierInDatabase | recordInDatabase (DpfTypes &data) |
static void | releaseFromDatabase (dp_id id, Client const *const client, bool async=false) |
static RuntimeCoreConfig | getRuntimeCoreConfig () |
static RuntimeCoreConfig | getRuntimeCoreConfig (Client *const client) |
static RuntimeClientConfig | getRuntimeClientConfig () |
Detailed Description
Groups all DataProcessingFramework core controls and utilities, like loading the core, loading libraries, protected instantiation, settings control.
Member Function Documentation
◆ applyContext() [1/2]
Defines the settings that will be used to load DPF's plugins. A DPF xml file can be used.
- Returns
- Status of call.
◆ applyContext() [2/2]
|
static |
Defines the settings that will be used to load DPF's plugins. A DPF xml file can be used.
- Returns
- Status of call.
- Parameters
-
[in] client Client instance designating the IP, port and protocol to use.
◆ assertInstantiate() [1/2]
|
static |
◆ assertInstantiate() [2/2]
|
static |
- Parameters
-
[in] identifier Operator to instantiate. [in] config Additional configuration information.
◆ availableOperators() [1/2]
|
static |
Returns all the availbale operators names.
◆ availableOperators() [2/2]
|
static |
Returns all the availbale operators names for a given client.
- Parameters
-
[in] client Client instance designating the IP, port and protocol to use.
◆ defaultOperatorConfig()
|
static |
- Returns
- Default configuration of given operator.
- Parameters
-
[in] op_identifier Operator for which to get configuration. [in] client Client on which to get the operator's config from. Default is nullptr.
- Examples
- OperatorsApis.cpp.
◆ getOperatorSpecification()
|
static |
◆ getRuntimeClientConfig()
|
static |
- Returns
- the RuntimeClientConfig used to set Client runtime configuration options
◆ getRuntimeCoreConfig() [1/2]
|
static |
- Returns
- the RuntimeCoreConfig used to set DataProcessingCore runtime configuration options
◆ getRuntimeCoreConfig() [2/2]
|
static |
- Returns
- the RuntimeCoreConfig used to set DataProcessingCore runtime configuration options
- Parameters
-
[in] client Client instance designating the IP, port and protocol to use.
◆ loadDpfPlugin() [1/3]
|
static |
Loads specified DPF plugin.
- Returns
- Status of call.
- Parameters
-
[in] plugin_path Full path to plugin. [in] plugin_name Identifying name for plugin. [in] client Client instance designating the IP, port and protocol to use.
◆ loadDpfPlugin() [2/3]
|
static |
Loads specified DPF plugin.
- Returns
- Status of call.
- Parameters
-
[in] plugin_path Full path to plugin. [in] plugin_name Identifying name for plugin. [in] symbol Type of load. [in] client Client instance designating the IP, port and protocol to use.
◆ loadDpfPlugin() [3/3]
|
static |
Loads specified DPF plugin.
- Returns
- Status of call.
- Parameters
-
[in] plugin_path Full path to plugin. [in] plugin_name Identifying name for plugin. [in] symbol Type of load.
- Examples
- Example.cpp.
◆ operatorById()
|
static |
◆ prepareServerShutdown()
|
static |
Send a prepare shutdown request (cleanup process) to a specified server.
- Parameters
-
[in] client Client instance designating the IP, port and protocol to use.
◆ recordInDatabase()
|
static |
- Parameters
-
[in] data Remote Data to record
◆ recordOperator() [1/3]
|
inlinestatic |
Record a new operator based on defined type.
◆ recordOperator() [2/3]
|
static |
Record a new operator.
- Parameters
-
[in] f Function to perform operator. [in] operator_identifier Unique identifier for operator.
◆ recordOperator() [3/3]
|
static |
Record a new operator.
- Parameters
-
[in] f Function to perform operator. [in] operator_identifier Unique identifier for operator. [in] spec Definition of inputs and outputs.
◆ recordOperatorWithNewName()
|
static |
◆ releaseDpf() [1/2]
|
static |
Clears the available Operators and Releases licenses when necessary.
- Returns
- Status of call.
◆ releaseDpf() [2/2]
Clears the available Operators and Releases licenses when necessary.
- Returns
- Status of call.
- Parameters
-
[in] client Client instance designating the IP, port and protocol to use.
◆ releaseFromDatabase()
|
static |
suppress the entity from the server's database.
- Parameters
-
[in] id its Id on the server. [in] client Client instance designating the IP, port and protocol to use.
◆ releaseServer()
|
static |
@detailsremoves the handle on the server should be used only if the server was started by this client instance
- Parameters
-
[in] client Client instance designating the IP, port and protocol to use.
◆ workflowById() [1/2]
|
static |
- Returns
- Worflow registered in the registry (with Workflow::record) with its id.
- Parameters
-
[in] id Workflow id created by Workflow::record.
- Examples
- DataApis.cpp.
◆ workflowById() [2/2]
◆ workflowFromTemplate()
|
static |
◆ workflowTemplateExists()
|
static |
- Returns
- true if template identifier exists
- Parameters
-
[in] template_identifier Workflow template identifier.