79 lines
1.5 KiB
C++
79 lines
1.5 KiB
C++
#ifndef _TMAKEOBJASSOCMSG_H__
|
|
#define _TMAKEOBJASSOCMSG_H__
|
|
|
|
#if _MSC_VER > 1000
|
|
#pragma once
|
|
#endif
|
|
|
|
#ifndef TCHPIPEBASE_DBXSERVICE
|
|
#define TCHPIPEBASE_DBXSERVICE _T("TCHPIPEBASE_DBXSERVICE")
|
|
#endif
|
|
|
|
#include "TDb.h"
|
|
|
|
#ifdef _TCHPIPEBASE_
|
|
#define DLLIMPEXP __declspec(dllexport)
|
|
#else
|
|
#ifdef _TCHPIPEBASE_COM_
|
|
#define DLLIMPEXP
|
|
#else
|
|
#define DLLIMPEXP __declspec(dllimport)
|
|
#endif
|
|
#endif
|
|
|
|
class DLLIMPEXP TMakeObjAssocMsg
|
|
{
|
|
public:
|
|
TMakeObjAssocMsg();
|
|
TMakeObjAssocMsg(const TMakeObjAssocMsg& iMsg);
|
|
virtual ~TMakeObjAssocMsg();
|
|
|
|
void SetInterObjOper(TDb::InterObjOper eOper,int nRes);
|
|
TDb::InterObjOper GetInterObjOper();
|
|
int GetInterObjOperRes();
|
|
|
|
TDb::InterObjOper GetInterObjOper() const;
|
|
int GetInterObjOperRes() const;
|
|
|
|
void SetObject(const AcDbDatabase* pDb,const AcDbObject* pObj);
|
|
AcDbObjectId GetMsgOperateOn();
|
|
AcDbDatabase* GetDb();
|
|
|
|
AcDbObjectId GetMsgOperateOn() const;
|
|
AcDbDatabase* GetDb() const;
|
|
|
|
TMakeObjAssocMsg& operator = (const TMakeObjAssocMsg& iMsg);
|
|
|
|
private:
|
|
|
|
TDb::InterObjOper m_eOper;
|
|
short m_nRes;
|
|
DWORD_PTR m_pDb;
|
|
AcDbSoftPointerId m_idOperateOn;
|
|
};
|
|
|
|
class DLLIMPEXP TMakeObjAssocMsgs
|
|
{
|
|
public:
|
|
|
|
TMakeObjAssocMsgs();
|
|
~TMakeObjAssocMsgs();
|
|
|
|
int append(const TMakeObjAssocMsg& value);
|
|
|
|
TMakeObjAssocMsg at(int index) const;
|
|
|
|
int length() const;
|
|
|
|
void removeAt(int iIndex);
|
|
|
|
TMakeObjAssocMsg operator[](int nIndex) const;
|
|
TMakeObjAssocMsg& operator[](int nIndex);
|
|
|
|
private:
|
|
|
|
CArray<TMakeObjAssocMsg,TMakeObjAssocMsg> m_arObjAssocMsgs;
|
|
};
|
|
|
|
#endif //_TMAKEOBJASSOCMSG_H__
|