// MatlabInterfacingEngineDoc.h : interface of the CMatlabInterfacingEngineDoc class
//
/////////////////////////////////////////////////////////////////////////////
#if !defined(AFX_MATLABINTERFACINGENGINEDOC_H__92F8637F_ADD3_41EA_B3CF_BD6AF93E336E__INCLUDED_)
#define AFX_MATLABINTERFACINGENGINEDOC_H__92F8637F_ADD3_41EA_B3CF_BD6AF93E336E__INCLUDED_
#if _MSC_VER > 1000
#pragma once
#endif // _MSC_VER > 1000
#include <extern\include\engine.h>
class CMatlabInterfacingEngineView;
class CMatlabInterfacingEngineDoc : public CDocument
{
protected: // create from serialization only
CMatlabInterfacingEngineDoc();
DECLARE_DYNCREATE(CMatlabInterfacingEngineDoc)
// Attributes
public:
// Operations
public:
// Overrides
// ClassWizard generated virtual function overrides
//{{AFX_VIRTUAL(CMatlabInterfacingEngineDoc)
public:
virtual BOOL OnNewDocument();
virtual void Serialize(CArchive& ar);
//}}AFX_VIRTUAL
// Implementation
public:
//
unsigned long statementCounter;
Engine* pEngine;
#define matlabBufferLength 10000
//
char matlabBuffer[matlabBufferLength+1];
CMatlabInterfacingEngineView* pView;
virtual ~CMatlabInterfacingEngineDoc();
#ifdef _DEBUG
virtual void AssertValid() const;
virtual void Dump(CDumpContext& dc) const;
#endif
protected:
// Generated message map functions
protected:
//{{AFX_MSG(CMatlabInterfacingEngineDoc)
// NOTE - the ClassWizard will add and remove member functions here.
// DO NOT EDIT what you see in these blocks of generated code !
//}}AFX_MSG
DECLARE_MESSAGE_MAP()
// Generated OLE dispatch map functions
//{{AFX_DISPATCH(CMatlabInterfacingEngineDoc)
afx_msg BSTR getLastOutput();
afx_msg short evaluateString(LPCTSTR statement);
afx_msg short putScalar(LPCTSTR name, const VARIANT FAR& value);
afx_msg short putArray(LPCTSTR name, const VARIANT FAR& value);
afx_msg short putMatrix(LPCTSTR name, const VARIANT FAR& value);
afx_msg short getScalar(LPCTSTR name, VARIANT FAR* putHere);
afx_msg short getArray(LPCTSTR name, VARIANT FAR* putHere, short FAR* dim);
afx_msg short getMatrix(LPCTSTR name, VARIANT FAR* putHere, short FAR* rows, short FAR* cols);
//}}AFX_DISPATCH
DECLARE_DISPATCH_MAP()
DECLARE_INTERFACE_MAP()
};
/////////////////////////////////////////////////////////////////////////////
//{{AFX_INSERT_LOCATION}}
// Microsoft Visual C++ will insert additional declarations immediately before the previous line.
#endif // !defined(AFX_MATLABINTERFACINGENGINEDOC_H__92F8637F_ADD3_41EA_B3CF_BD6AF93E336E__INCLUDED_)