NumeRe v1.1.4
NumeRe: Framework für Numerische Rechnungen
DDE::Connection Class Reference

This class is an implementation of a DDE connection between DDE::Client and DDE::Server. More...

#include <ipc.hpp>

Inheritance diagram for DDE::Connection:
Collaboration diagram for DDE::Connection:

Public Member Functions

 Connection (NumeReWindow *frame)
 
virtual bool OnExecute (const wxString &topic, const void *data, size_t size, wxIPCFormat format) override
 Handles the interprocess communication between two NumeRe instances. More...
 
virtual bool OnDisconnect () override
 Called, when the DDE::Server or the DDE::Client closes the connection. Will pass the gathered commands to the NumeRe main frame. More...
 

Private Attributes

NumeReWindowm_Frame
 
wxArrayString m_ArgV
 
wxString m_fileToLoad
 

Detailed Description

This class is an implementation of a DDE connection between DDE::Client and DDE::Server.

Definition at line 53 of file ipc.hpp.

Constructor & Destructor Documentation

◆ Connection()

DDE::Connection::Connection ( NumeReWindow frame)
inline

Definition at line 56 of file ipc.hpp.

Member Function Documentation

◆ OnDisconnect()

bool DDE::Connection::OnDisconnect ( )
overridevirtual

Called, when the DDE::Server or the DDE::Client closes the connection. Will pass the gathered commands to the NumeRe main frame.

Returns
bool

Definition at line 117 of file ipc.cpp.

References NumeReWindow::EvaluateCommandLine(), m_ArgV, m_fileToLoad, m_Frame, and NumeReWindow::OpenFileByType().

Here is the call graph for this function:

◆ OnExecute()

bool DDE::Connection::OnExecute ( const wxString &  topic,
const void *  data,
size_t  size,
wxIPCFormat  format 
)
overridevirtual

Handles the interprocess communication between two NumeRe instances.

Parameters
topicconst wxString&
dataconst void*
sizesize_t
formatwxIPCFormat
Returns
bool

Definition at line 51 of file ipc.cpp.

References _T, date::format(), m_ArgV, and m_fileToLoad.

Here is the call graph for this function:

Member Data Documentation

◆ m_ArgV

wxArrayString DDE::Connection::m_ArgV
private

Definition at line 62 of file ipc.hpp.

Referenced by OnDisconnect(), and OnExecute().

◆ m_fileToLoad

wxString DDE::Connection::m_fileToLoad
private

Definition at line 63 of file ipc.hpp.

Referenced by OnDisconnect(), and OnExecute().

◆ m_Frame

NumeReWindow* DDE::Connection::m_Frame
private

Definition at line 61 of file ipc.hpp.

Referenced by OnDisconnect().


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