CFx SDK Documentation  2022 SP0
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
#define TOOLKIT_EXPORT
Definition: DbExport.h:40
int OdInt32
OdResult
Definition: OdResult.h:29
DataLinkGetSourceContext
Definition: DbDataLink.h:76
@ kDataLinkGetSourceContextFileWatcher
Definition: DbDataLink.h:80
@ kDataLinkGetSourceContextOther
Definition: DbDataLink.h:81
@ kDataLinkGetSourceContextUnknown
Definition: DbDataLink.h:77
@ kDataLinkGetSourceContextXrefManager
Definition: DbDataLink.h:79
@ kDataLinkGetSourceContextEtransmit
Definition: DbDataLink.h:78
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
@ kUpdateOptionUpdateRowHeight
Definition: DbDataLink.h:64
@ kUpdateOptionSkipFormat
Definition: DbDataLink.h:63
@ kUpdateOptionOverwriteContentModifiedAfterUpdate
Definition: DbDataLink.h:68
@ kUpdateOptionOverwriteFormatModifiedAfterUpdate
Definition: DbDataLink.h:69
@ kUpdateOptionIncludeXrefs
Definition: DbDataLink.h:71
@ kUpdateOptionAllowSourceUpdate
Definition: DbDataLink.h:66
@ kUpdateOptionNone
Definition: DbDataLink.h:62
@ kUpdateOptionSkipFormatAfterFirstUpdate
Definition: DbDataLink.h:72
@ kUpdateOptionUpdateColumnWidth
Definition: DbDataLink.h:65
@ kUpdateOptionForceFullSourceUpdate
Definition: DbDataLink.h:67
@ kUpdateOptionForPreview
Definition: DbDataLink.h:70
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