ansys::dpf::Session Class Reference
Last update: 16.07.2025
ansys::dpf::Session Class Reference
#include <dpf_api.h>
Inheritance diagram for ansys::dpf::Session:

Public Member Functions | |
| Session (Client const *const client) | |
| Session (Session const &) | |
| Session (Session &&)=delete | |
| Session & | operator= (Session const &) |
| Session & | operator= (Session &&)=delete |
| std::string | id () const |
| void | add (Workflow &wf, std::string const &identifier) |
| std::string | add (Workflow &wf) |
| Workflow | getWorkflow (std::string const &identifier) |
| Workflow | getWorkflowByIndex (dp_index index) |
| dp_int | numberOfWorkflow () const |
| void | flushWorkflows () |
| void | addEventHandler (EventHandler &event_handler) |
Public Member Functions inherited from ansys::dpf::DpfTypes | |
| virtual bool | empty () const |
| virtual std::string | describe () const |
| so::API const * | callAPI () const |
| bool | isOnCommonAPI () const |
| bool | getClient (Client &client) const |
| bool | hasBeenMovedLocally () const |
| bool | isSameObject (DpfTypes const &rhs) const |
Detailed Description
Define a DPF session.
Constructor & Destructor Documentation
◆ Session()
| ansys::dpf::Session::Session | ( | Client const *const | client | ) |
Member Function Documentation
◆ add() [1/2]
| std::string ansys::dpf::Session::add | ( | Workflow & | wf | ) |
◆ add() [2/2]
| void ansys::dpf::Session::add | ( | Workflow & | wf, |
| std::string const & | identifier | ||
| ) |
Add a workflow to session.
- Parameters
-
[in] wf Workflow to add. [out] identifier Identifier for workflow.
◆ addEventHandler()
| void ansys::dpf::Session::addEventHandler | ( | EventHandler & | event_handler | ) |
Add event handler to handle status of DPF session.
- Parameters
-
[in] event_handler Handler for session status.
◆ getWorkflow()
| Workflow ansys::dpf::Session::getWorkflow | ( | std::string const & | identifier | ) |
- Returns
- Workflow given by identifier.
- Parameters
-
[in] identifier Identifier of workflow.
◆ getWorkflowByIndex()
- Returns
- Workflow given by index.
- Parameters
-
[in] index Index of workflow.
◆ id()
| std::string ansys::dpf::Session::id | ( | ) | const |
- Returns
- Id of session.
◆ numberOfWorkflow()
| dp_int ansys::dpf::Session::numberOfWorkflow | ( | ) | const |
- Returns
- Number of workflows in session.
Public Member Functions inherited from