DgnLinkHandler.h
Go to the documentation of this file.
1 /*--------------------------------------------------------------------------------------+
2 |
3 | Supplied under applicable software license agreement.
4 |
5 | Copyright (c) 2018 Bentley Systems, Incorporated. All rights reserved.
6 |
7 +---------------------------------------------------------------------------------------*/
8 #pragma once
9 
10 #include "DgnLinks.h"
11 
12 DGNPLATFORM_TYPEDEFS(DgnLinkUserDataHandler)
13 
15 
17 
18 /*=================================================================================**/
24  {
25 private:
26  virtual void MakeClassAbstract() = 0;
27 public:
28 
29 public:
33  DGNPLATFORM_EXPORT ECN::ECSchemaP GetSchema (DgnFileP dgnFile = NULL);
37  DGNPLATFORM_EXPORT ECN::StandaloneECInstancePtr CreateECInstance (WCharCP ecClassName);
38  };
39 
40 /*=================================================================================**/
47  {
48 public:
52  DGNPLATFORM_EXPORT bool CanHandleKey (WCharCP key) const;
53 
57  DGNPLATFORM_EXPORT WCharCP GetKey (DgnLinkTreeLeafCP leaf) const;
58 
63  DGNPLATFORM_EXPORT TempDgnLinkOwner CreateLink (DgnLinkTreeLeafP leaf, WCharCP key = NULL);
64  };
65 
66 /*=================================================================================**/
72  {
73 
74 public:
78  DGNPLATFORM_EXPORT bool CanHandleKey (WCharCP key) const;
79 
83  DGNPLATFORM_EXPORT WString GetKey (DgnLinkTreeBranchCP branch) const;
84 
88  DGNPLATFORM_EXPORT DgnLinkSetPtr CreateLinkSet (DgnLinkTreeBranchP branch) const;
89  };
90 
91 /*=================================================================================**/
97  {
98 
99 public:
104  bool CanHandle (UInt32 appID, UInt32 subID);
105 
110  DgnLinkUserDataPtr CreateUserData (UInt32 appID, UInt32 subID);
111  };
112 
113 
115 
Definition: DgnLinkHandler.h:23
Definition: DgnLinkHandler.h:96
#define END_BENTLEY_DGNPLATFORM_NAMESPACE
Definition: DgnPlatformBaseType.r.h:69
The in-memory representation of a schema as defined by ECSchemaXML.
Definition: ECSchema.h:1375
#define DGNPLATFORM_EXPORT
Definition: DgnPlatform/ExportMacros.h:58
A DgnFile is an in-memory representation of a physical file, regardless of its format.
Definition: DgnFile.h:308
wchar_t const * WCharCP
Definition: Bentley.h:224
uint32_t UInt32
Definition: Bentley.r.h:128
#define NULL
Definition: Bentley.h:157
Definition: DgnLinkHandler.h:71
#define DGNPLATFORM_TYPEDEFS(_name_)
Definition: DgnPlatform.h:73
A shared pointer template for reference-counted objects.
Definition: RefCounted.h:119
#define BEGIN_BENTLEY_DGNPLATFORM_NAMESPACE
Definition: DgnPlatformBaseType.r.h:68
bvector< DgnLinkUserDataHandlerP > DgnLinkUserDataHandlerList
Definition: DgnLinkHandler.h:16
A smart pointer to an object of type T, where the pointee is an object which under ordinary circumsta...
Definition: DgnLinkTree.h:83
Definition: DgnLinkHandler.h:46
A string class that has many of the same capabilities as std::string, plus additional functions such ...
Definition: WString.h:51

Copyright © 2017 Bentley Systems, Incorporated. All rights reserved.