IntegrationManager.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 
11 #include <Bentley/bvector.h>
12 
14 /*=================================================================================**/
30 struct DgnPlatformIntegration;
31 struct DgnPlatformIntegrationList;
32 struct IntegrationManager;
33 
35  {
41  };
42 
44  {
47  };
48 
50  {
56  };
57 
59  {
62  };
63 
64  /*=================================================================================**/
70  {
71 private:
72  virtual void MakeClassAbstract() = 0;
73 public:
74 
75 public:
76  DGNPLATFORM_EXPORT WString GetIntegrationKey() const;
77  DGNPLATFORM_EXPORT WString GetProductName() const;
78  DGNPLATFORM_EXPORT WString GetVersionString() const;
79  DGNPLATFORM_EXPORT WString GetPath() const;
90  DGNPLATFORM_EXPORT OpenRepositoryStatus OpenSession (WCharP repositoryName=NULL, long respositoryNameLength=0,
91  WCharCP userName=NULL, WCharCP password=NULL, bool useSingleSignOn=true,
92  bool allowDialogPrompt=true, unsigned long parentWindow=NULL);
95  DGNPLATFORM_EXPORT void CloseSession (WCharCP repositoryName=NULL);
96 
99  DGNPLATFORM_EXPORT OpenRepositoryStatus ConnectToExistingSession ();
100 
104 
105  };
106 
108 typedef bvector<DgnPlatformIntegrationPtr> T_DgnPlatformIntegrationPtrVec;
110 
111  /*=================================================================================**/
117  {
118  typedef T_DgnPlatformIntegrationPtrVec::const_iterator const_iterator;
119  typedef T_DgnPlatformIntegrationPtrVec::iterator iterator;
120  typedef T_DgnPlatformIntegrationPtrVec::size_type size_type;
121 
122 private:
123  virtual void MakeClassAbstract() = 0;
124 public:
125 public:
128 
131 
133 
136  DGNPLATFORM_EXPORT void Clear ();
138  } ;
139 
140  /*=================================================================================**/
146  {
147 public:
151  };
T_DgnPlatformIntegrationPtrVec::iterator iterator
Definition: IntegrationManager.h:119
An element was added to the file.
IntegratedApplicationType
Definition: IntegrationManager.h:58
#define END_BENTLEY_DGNPLATFORM_NAMESPACE
Definition: DgnPlatformBaseType.r.h:69
wchar_t * WCharP
Definition: Bentley.h:225
iterator begin()
Definition: stdcxx/bstdmap.h:178
An IntegrationManager queries the registry for all installed DgnPlatformIntegration modules...
Definition: IntegrationManager.h:145
iterator end()
Definition: stdcxx/bstdmap.h:186
#define DGNPLATFORM_EXPORT
Definition: DgnPlatform/ExportMacros.h:58
wchar_t const * WCharCP
Definition: Bentley.h:224
Definition: IntegrationManager.h:51
#define NULL
Definition: Bentley.h:157
LocateIntegrationStatus
Definition: IntegrationManager.h:43
A DgnPlatformIntegration can initialize an integration, open or close a DMS session, and return the integration module's DgnDocumentManager.
Definition: IntegrationManager.h:69
OpenRepositoryStatus
Definition: IntegrationManager.h:34
A shared pointer template for reference-counted objects.
Definition: RefCounted.h:119
Definition: IntegrationManager.h:61
T_DgnPlatformIntegrationPtrVec::size_type size_type
Definition: IntegrationManager.h:120
T_DgnPlatformIntegrationPtrVec::const_iterator const_iterator
Definition: IntegrationManager.h:118
Definition: IntegrationManager.h:45
#define BEGIN_BENTLEY_DGNPLATFORM_NAMESPACE
Definition: DgnPlatformBaseType.r.h:68
A DgnPlatformIntegrationList is a collection of DgnPlatformIntegrations.
Definition: IntegrationManager.h:116
Concrete class that can be used to implement the reference-counting pattern.
Definition: RefCounted.h:109
Definition: IntegrationManager.h:36
size_type size() const
Definition: stdcxx/bstdmap.h:214
LoadIntegrationStatus
Definition: IntegrationManager.h:49
A string class that has many of the same capabilities as std::string, plus additional functions such ...
Definition: WString.h:51
DgnDocumentManager provides services to create, find, open, and save files, either to/from the local ...
Definition: DgnDocumentManager.h:860
Definition: IntegrationManager.h:60

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