CFx SDK Documentation 2024 SP0
Loading...
Searching...
No Matches
DbProxyObject.h
Go to the documentation of this file.
1
2// Copyright (C) 2002-2022, Open Design Alliance (the "Alliance").
3// All rights reserved.
4//
5// This software and its documentation and related materials are owned by
6// the Alliance. The software may only be incorporated into application
7// programs owned by members of the Alliance, subject to a signed
8// Membership Agreement and Supplemental Software License Agreement with the
9// Alliance. The structure and organization of this software are the valuable
10// trade secrets of the Alliance and its suppliers. The software is also
11// protected by copyright law and international treaty provisions. Application
12// programs incorporating this software must include the following statement
13// with their copyright notices:
14//
15// This application incorporates Open Design Alliance software pursuant to a license
16// agreement with Open Design Alliance.
17// Open Design Alliance Copyright (C) 2002-2022 by Open Design Alliance.
18// All rights reserved.
19//
20// By use of this software, its documentation or related materials, you
21// acknowledge and accept the above terms.
23
24
25
26
27#ifndef OD_DBPROXY_H
28#define OD_DBPROXY_H
29
30#include "TD_PackPush.h"
31
32#include "DbObject.h"
33#include "IntArray.h"
34#include "DwgDeclareMembers.h"
35
43{
44public:
46
48
50 OdDbDwgFiler* pFiler);
51
52 virtual void dwgOutFields(
53 OdDbDwgFiler* pFiler) const;
54
56 OdDbDxfFiler* pFiler);
57
58 virtual void dxfOutFields(
59 OdDbDxfFiler* pFiler) const;
60
61 virtual OdResult dxfIn(OdDbDxfFiler* filer);
62
80 int proxyFlags() const;
81
85 virtual OdString originalClassName() const;
86
91
96
103 OdTypedIdsArray& objectIds) const;
104
106
107 virtual OdDbObjectPtr subDeepClone(OdDbIdMapping& ownerIdMap, OdDbObject*, bool bPrimary) const ODRX_OVERRIDE;
108
109 virtual OdDbObjectPtr subWblockClone(OdDbIdMapping& ownerIdMap, OdDbObject*, bool bPrimary) const ODRX_OVERRIDE;
110
111 enum
112 {
113 kNoOperation = 0,
114 kEraseAllowed = 0x1,
115 kCloningAllowed = 0x80,
116 kAllButCloningAllowed = 0x1,
117 kAllAllowedBits = 0x81,
118 kMergeIgnore = 0,
119 kMergeReplace = 0x100,
120 kMergeMangleName = 0x200,
121 kDisableProxyWarning = 0x400
122 };
123
127 bool eraseAllowed() const { return GETBIT(proxyFlags(), kEraseAllowed); }
131 bool allButCloningAllowed() const { return (proxyFlags() & kAllAllowedBits) == (kAllAllowedBits ^ kAllButCloningAllowed); }
132
136 bool cloningAllowed() const { return GETBIT(proxyFlags(), kCloningAllowed); }
137
149 bool allOperationsAllowed() const { return (proxyFlags() & kAllAllowedBits) == kAllAllowedBits; }
150
154 bool isR13FormatProxy() const { return GETBIT(proxyFlags(), 32768); }
155
157 bool erasing);
158};
159
164
165#include "TD_PackPop.h"
166
167#endif // OD_DBPROXY_H
168
#define DBIO_EXPORT
Definition: DbExport.h:80
OdSmartPtr< OdDbProxyObject > OdDbProxyObjectPtr
#define ODRX_OVERRIDE
OdResult
Definition: OdResult.h:29
#define GETBIT(flags, bit)
Definition: OdaDefs.h:517
bool eraseAllowed() const
void getReferences(OdTypedIdsArray &objectIds) const
bool isR13FormatProxy() const
bool allButCloningAllowed() const
virtual OdResult dxfIn(OdDbDxfFiler *filer)
virtual void dxfOutFields(OdDbDxfFiler *pFiler) const
virtual OdDbObjectPtr subDeepClone(OdDbIdMapping &ownerIdMap, OdDbObject *, bool bPrimary) const ODRX_OVERRIDE
bool cloningAllowed() const
OdString applicationDescription() const
virtual OdResult subErase(bool erasing)
virtual OdDbObjectPtr subWblockClone(OdDbIdMapping &ownerIdMap, OdDbObject *, bool bPrimary) const ODRX_OVERRIDE
OdDb::DuplicateRecordCloning mergeStyle() const
virtual OdString originalClassName() const
OdString originalDxfName() const
virtual void dwgOutFields(OdDbDwgFiler *pFiler) const
int proxyFlags() const
DWGMAP_DECLARE_MEMBERS(OdDbProxyObject)
virtual OdResult dxfInFields(OdDbDxfFiler *pFiler)
bool allOperationsAllowed() const
virtual OdResult dwgInFields(OdDbDwgFiler *pFiler)
DuplicateRecordCloning
Definition: DbObject.h:128