CFx SDK Documentation 2024 SP0
Loading...
Searching...
No Matches
DbDataLink.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#ifndef OD_DBDATALINK_H
27#define OD_DBDATALINK_H
28
29#include "DbObject.h"
30#include "OdValue.h"
31#include "StringArray.h"
32
33#include "TD_PackPush.h"
34
35namespace OdDb
36{
38 {
44 };
45
47 {
52 };
53
55 {
58 };
59
61 {
63 // FELIX_CHANGE_BEGIN
67 // FELIX_CHANGE_END
78 };
79
81 {
87 };
88};
89
98{
99public:
101
103
104 OdString name (void) const;
105 void setName (const OdString& sName);
106 OdString description (void) const;
107 void setDescription (const OdString& sDescription);
108 OdString getToolTip (void) const;
109 void setToolTip (const OdString& sToolTip);
111 void setDataAdapterId (const OdString& sAdapterId);
113 void setConnectionString(const OdString& sConnectionString);
116 OdInt32 updateOption (void) const;
119 void getUpdateStatus(OdDb::UpdateDirection* pDir, OdTimeStamp* pTime, OdString* pErrMessage) const;
120 void setUpdateStatus(const OdString& sErrMessage);
121 bool isValid (void) const;
125 void repathSourceFiles(OdString& sBasePath, OdDb::PathOption nOption);
127 OdValue getCustomData(const OdString& sKey) const;
128 void setCustomData(const OdString& sKey, const OdValue* pData);
129 OdDbObjectPtr subWblockClone(OdDbIdMapping& idMap, OdDbObject* owner, bool bPrimary) const;
130
132 virtual void dwgOutFields(OdDbDwgFiler* pFiler) const;
134 virtual void dxfOutFields(OdDbDxfFiler* pFiler) const;
135};
136
138
140
141
142//*************************************************************************
143// OdDbDataLinkManager
144//*************************************************************************
145class OdDbDataLinkManagerImpl;
146
151{
152public:
154
156
160 const OdString& description, const OdString& connectionString);
161
163
165
166 int dataLinkCount(void) const;
167
168 int getDataLink(OdDbObjectIdArray& dataLinks) const;
169
171
172 void removeDataLink(const OdString& sKey, OdDbObjectId& idDataLink);
173
174 void removeDataLink(const OdDbObjectId& idDataLink);
175
178
180protected:
181 OdDbDataLinkManager(OdDbDataLinkManagerImpl* pValImpl);
182 OdDbDataLinkManagerImpl* m_pImpl;
183 friend class OdDbSystemInternals;
184};
185
187
192{
193public:
194 //FELIX_CHANGE_BEGIN Compile swig wrapper fix
195 virtual void dataLinkUpdate( OdDbDataLink* pDataLink, OdDb::UpdateDirection nDir, OdDb::UpdateOption nOption, OdError* pError = nullptr ) = 0;
196 virtual void repathSourceFiles( OdString& sBasePath, OdDb::PathOption nOptionm, OdString& path, OdError* pError = nullptr ) = 0;
197 //FELIX_CHANGE_END
198
200};
201
203
204#include "TD_PackPop.h"
205
206#endif // OD_DBDATALINK_H
#define DBENT_EXPORT
Definition: DbExport.h:67
#define DBDIM_EXPORT
Definition: DbExport.h:72
int OdInt32
OdResult
Definition: OdResult.h:29
GLuint const GLchar * name
Definition: gles2_ext.h:265
DataLinkGetSourceContext
Definition: DbDataLink.h:81
@ kDataLinkGetSourceContextFileWatcher
Definition: DbDataLink.h:85
@ kDataLinkGetSourceContextOther
Definition: DbDataLink.h:86
@ kDataLinkGetSourceContextUnknown
Definition: DbDataLink.h:82
@ kDataLinkGetSourceContextXrefManager
Definition: DbDataLink.h:84
@ kDataLinkGetSourceContextEtransmit
Definition: DbDataLink.h:83
DataLinkOption
Definition: DbDataLink.h:38
@ kDataLinkHasCustomData
Definition: DbDataLink.h:43
@ kDataLinkOptionDisableInLongTransaction
Definition: DbDataLink.h:42
@ kDataLinkOptionPersistCache
Definition: DbDataLink.h:41
@ kDataLinkOptionNone
Definition: DbDataLink.h:39
@ kDataLinkOptionAnonymous
Definition: DbDataLink.h:40
UpdateDirection
Definition: DbDataLink.h:55
@ kUpdateDirectionSourceToData
Definition: DbDataLink.h:56
@ kUpdateDirectionDataToSource
Definition: DbDataLink.h:57
UpdateOption
Definition: DbDataLink.h:61
@ kUpdateOptionKeepFormats
Definition: DbDataLink.h:65
@ kUpdateOptionUpdateRowHeight
Definition: DbDataLink.h:69
@ kUpdateOptionSkipFormat
Definition: DbDataLink.h:68
@ kUpdateOptionOverwriteContentModifiedAfterUpdate
Definition: DbDataLink.h:73
@ kUpdateOptionOverwriteFormatModifiedAfterUpdate
Definition: DbDataLink.h:74
@ kUpdateOptionConvertFormulasAndFormats
Definition: DbDataLink.h:64
@ kUpdateOptionIncludeXrefs
Definition: DbDataLink.h:76
@ kUpdateOptionKeepFormulas
Definition: DbDataLink.h:66
@ kUpdateOptionAllowSourceUpdate
Definition: DbDataLink.h:71
@ kUpdateOptionNone
Definition: DbDataLink.h:62
@ kUpdateOptionSkipFormatAfterFirstUpdate
Definition: DbDataLink.h:77
@ kUpdateOptionUpdateColumnWidth
Definition: DbDataLink.h:70
@ kUpdateOptionForceFullSourceUpdate
Definition: DbDataLink.h:72
@ kUpdateOptionForPreview
Definition: DbDataLink.h:75
PathOption
Definition: DbDataLink.h:47
@ kPathOptionNone
Definition: DbDataLink.h:48
@ kPathOptionAbsolute
Definition: DbDataLink.h:50
@ kPathOptionRelative
Definition: DbDataLink.h:49
@ kPathOptionPathAndFile
Definition: DbDataLink.h:51
OpenMode
Definition: DbObjectId.h:54