CFx SDK Documentation  2020SP3
DbDataLink.h
Go to the documentation of this file.
1 // Copyright (C) 2002-2017, 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 Teigha(R) software pursuant to a license
16 // agreement with Open Design Alliance.
17 // Teigha(R) Copyright (C) 2002-2017 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 
35 namespace OdDb
36 {
38  {
44  };
45 
47  {
52  };
53 
55  {
58  };
59 
61  {
73  };
74 
76  {
82  };
83 };
84 
95 {
96 public:
98 
99  OdDbDataLink(void);
100 
101  OdString name (void) const;
102  void setName (const OdString& sName);
103  OdString description (void) const;
104  void setDescription (const OdString& sDescription);
105  OdString getToolTip (void) const;
106  void setToolTip (const OdString& sToolTip);
107  OdString dataAdapterId (void) const;
108  void setDataAdapterId (const OdString& sAdapterId);
110  void setConnectionString(const OdString& sConnectionString);
113  OdInt32 updateOption (void) const;
114  void setUpdateOption(OdInt32 nOption);
115  // void update (OdDb::UpdateDirection nDir,
116  // OdDb::UpdateOption nOption);
118  OdTimeStamp* pTime,
119  OdString* pErrMessage) const;
120  void setUpdateStatus(const OdString& sErrMessage);
121  bool isValid (void) const;
124  OdStringArray& files) const;
125  // void repathSourceFiles(OdString& sBasePath,
126  // OdDb::PathOption nOption);
127  OdValue getCustomData(const OdString& sKey) const;
128  void setCustomData(const OdString& sKey,
129  const OdValue* pData);
130 
132  OdDbDwgFiler* pFiler);
133  virtual void dwgOutFields(
134  OdDbDwgFiler* pFiler) const;
136  OdDbDxfFiler* pFiler);
137  virtual void dxfOutFields(
138  OdDbDxfFiler* pFiler) const;
139 };
140 
142 
144 
145 #include "TD_PackPop.h"
146 
147 #endif // OD_DBDATALINK_H
OdDb::kUpdateOptionForceFullSourceUpdate
@ kUpdateOptionForceFullSourceUpdate
Definition: DbDataLink.h:67
OdResult
OdResult
Definition: OdResult.h:29
OdDb::kUpdateOptionUpdateColumnWidth
@ kUpdateOptionUpdateColumnWidth
Definition: DbDataLink.h:65
OdString
Definition: OdString.h:95
OdDb::kUpdateDirectionSourceToData
@ kUpdateDirectionSourceToData
Definition: DbDataLink.h:56
OdTimeStamp
Definition: OdTimeStamp.h:42
OdDb::kDataLinkOptionDisableInLongTransaction
@ kDataLinkOptionDisableInLongTransaction
Definition: DbDataLink.h:42
OdValue.h
OdDb::kDataLinkGetSourceContextEtransmit
@ kDataLinkGetSourceContextEtransmit
Definition: DbDataLink.h:78
DbObject.h
StringArray.h
OdDb::kUpdateOptionAllowSourceUpdate
@ kUpdateOptionAllowSourceUpdate
Definition: DbDataLink.h:66
OdDb::kDataLinkHasCustomData
@ kDataLinkHasCustomData
Definition: DbDataLink.h:43
OdDb::kDataLinkOptionAnonymous
@ kDataLinkOptionAnonymous
Definition: DbDataLink.h:40
OdArray< OdDbObjectId, OdMemoryAllocator< OdDbObjectId > >
TD_PackPop.h
OdDb::kUpdateOptionOverwriteContentModifiedAfterUpdate
@ kUpdateOptionOverwriteContentModifiedAfterUpdate
Definition: DbDataLink.h:68
OdDb::kPathOptionAbsolute
@ kPathOptionAbsolute
Definition: DbDataLink.h:50
OdDb::UpdateOption
UpdateOption
Definition: DbDataLink.h:61
OdDb::kUpdateOptionOverwriteFormatModifiedAfterUpdate
@ kUpdateOptionOverwriteFormatModifiedAfterUpdate
Definition: DbDataLink.h:69
OdDb::kUpdateOptionSkipFormatAfterFirstUpdate
@ kUpdateOptionSkipFormatAfterFirstUpdate
Definition: DbDataLink.h:72
OdDb::kDataLinkGetSourceContextOther
@ kDataLinkGetSourceContextOther
Definition: DbDataLink.h:81
OdSmartPtr
Definition: SmartPtr.h:58
OdDb::kUpdateOptionForPreview
@ kUpdateOptionForPreview
Definition: DbDataLink.h:70
OdInt32
int OdInt32
Definition: OdPlatformSettings.h:782
OdDb::kDataLinkGetSourceContextXrefManager
@ kDataLinkGetSourceContextXrefManager
Definition: DbDataLink.h:79
OdValue
Definition: OdValue.h:40
OdDb::kPathOptionRelative
@ kPathOptionRelative
Definition: DbDataLink.h:49
OdDb::kPathOptionNone
@ kPathOptionNone
Definition: DbDataLink.h:48
OdDb::kDataLinkOptionNone
@ kDataLinkOptionNone
Definition: DbDataLink.h:39
OdDbDxfFiler
Definition: DbFiler.h:194
OdDb::kDataLinkOptionPersistCache
@ kDataLinkOptionPersistCache
Definition: DbDataLink.h:41
OdDb::PathOption
PathOption
Definition: DbDataLink.h:47
TD_PackPush.h
OdDb::kPathOptionPathAndFile
@ kPathOptionPathAndFile
Definition: DbDataLink.h:51
OdDb::kDataLinkGetSourceContextFileWatcher
@ kDataLinkGetSourceContextFileWatcher
Definition: DbDataLink.h:80
OdDb::kDataLinkGetSourceContextUnknown
@ kDataLinkGetSourceContextUnknown
Definition: DbDataLink.h:77
OdDb::DataLinkOption
DataLinkOption
Definition: DbDataLink.h:38
OdDb::kUpdateOptionNone
@ kUpdateOptionNone
Definition: DbDataLink.h:62
OdDb::kUpdateOptionSkipFormat
@ kUpdateOptionSkipFormat
Definition: DbDataLink.h:63
OdDb::UpdateDirection
UpdateDirection
Definition: DbDataLink.h:55
OdDb
Definition: Db2dPolyline.h:50
OdDb::kUpdateDirectionDataToSource
@ kUpdateDirectionDataToSource
Definition: DbDataLink.h:57
TOOLKIT_EXPORT
#define TOOLKIT_EXPORT
Definition: DbExport.h:40
OdDb::kUpdateOptionIncludeXrefs
@ kUpdateOptionIncludeXrefs
Definition: DbDataLink.h:71
OdDb::DataLinkGetSourceContext
DataLinkGetSourceContext
Definition: DbDataLink.h:76
OdDb::kUpdateOptionUpdateRowHeight
@ kUpdateOptionUpdateRowHeight
Definition: DbDataLink.h:64
OdDbObject
Definition: DbObject.h:211
OdDbDwgFiler
Definition: DbFiler.h:1031