14 namespace DgnHistory {
34 class ElementsAsOfAdapter;
35 class ElementsAsOfUncommittedAdapter;
38 class ElementChangeRecordFilter;
39 struct IRevisionCatalogProcessor;
41 #define ELEMENT_CHANGETYPE_PLACEHOLDER ElementChangeType::Missing
42 #define ELEMENT_CHANGETYPE_NO_CHANGE ElementChangeType::Missing
82 bool m_isPreparedForQuery;
100 bool operator == (RevisionNumbersForFile
const& c2)
const {
return m_file==c2.m_file && m_revs==c2.m_revs;}
150 bool IsPreChangeVersion ()
const;
170 virtual bool AnyClientSideFilter ()
const = 0;
180 virtual bool AnyClientSideFilter ()
const {
return false;}
187 struct ElementQueryResultFilterPipeline : IElementQueryResultFilter
190 IElementQueryResultFilter& m_f1;
191 IElementQueryResultFilter& m_f2;
193 ElementQueryResultFilterPipeline (IElementQueryResultFilter& f1, IElementQueryResultFilter& f2) : m_f1(f1), m_f2(f2) {;}
196 virtual bool AcceptElementQueryResult (ElementQueryResult
const& eq)
198 return m_f1.AcceptElementQueryResult(eq) && m_f2.AcceptElementQueryResult(eq);
200 virtual bool AnyClientSideFilter()
const
202 return m_f1.AnyClientSideFilter() || m_f2.AnyClientSideFilter();
225 struct const_iterator : std::iterator<std::forward_iterator_tag, value_type const>
229 T_Map::const_iterator m_it;
240 const_iterator
begin ()
const;
244 const_iterator
end ()
const;
288 virtual void MakeClassAbstract() = 0;
300 struct const_iterator : std::iterator<std::forward_iterator_tag, value_type const>
304 T_Map::const_iterator m_it;
353 UInt32 ComputeElementCount()
const;
370 virtual void MakeClassAbstract() = 0;
431 static bool ContainsHistory (
DgnFileR);
549 ElementChangeRecordFilter
const* ssfilter =
NULL,
550 bool removeRejectedRevisions =
false
559 bvector<TagDefinition>& tags
640 bool CheckUncommittedChanges (
bool force =
false)
const;
660 bool ignoreVersion =
false
674 WString GetRevisionNumberFormat ()
const;
768 void SetRevisionNumberFormat (
WChar const*);
815 StatusInt CheckFormatVersion (
bool prompt)
const;
T_RevisionNumberVectorType const & GetRevisions() const
Query all of the revisions identified by this object.
Definition: DesignHistory.h:97
Provides access to the design history of a specified file.
Definition: DesignHistory.h:402
bstdmap< ElementId, ElementQueryResult > T_ElementIdToElementQueryResultMapType
Definition: DesignHistory.h:207
A set of revision numbers pertaining to the design history of a specified file.
Definition: DesignHistory.h:76
Definition: DesignHistory.h:225
Can the user change the revision number discontinuously?
Definition: DesignHistory.h:862
wchar_t WChar
Definition: Bentley.h:223
Can the user change revision descriptions in design history?
Definition: DesignHistory.h:854
Automatically upgrade design history to the newest version when modifying?
Definition: DesignHistory.h:856
Can the user change the revision format?
Definition: DesignHistory.h:860
Can the user delete early revisions from design history?
Definition: DesignHistory.h:848
iterator begin()
Definition: stdcxx/bstdmap.h:178
The definition of a tag.
Definition: DesignHistory.h:526
A history revision number.
Definition: DgnHistory.h:26
iterator end()
Definition: stdcxx/bstdmap.h:186
WString tag
[out] tag symbol
Definition: DesignHistory.h:528
ElementQueryResult value_type
Definition: DesignHistory.h:223
ElementQueryResultsForModel value_type
Definition: DesignHistory.h:298
Template to simplify the task of writing a class that implements the reference-counting pattern...
Definition: RefCounted.h:90
Associates a user name and a description with a set of changes recorded in design history...
Definition: DgnHistory.h:104
uint32_t UInt32
Definition: Bentley.r.h:128
#define NULL
Definition: Bentley.h:157
bstdmap & operator=(const bstdmap &__rhs)
Definition: stdcxx/bstdmap.h:170
Documents a set of changes in design history.
Definition: DgnHistory.h:126
struct DgnPlatform::MSElementDescr const * MSElementDescrCP
Definition: DgnPlatform.h:390
bool operator<(const basic_string< _CharT, _Traits, _Allocator > &__lhs, const basic_string< _CharT, _Traits, _Allocator > &__rhs)
Definition: basic_string.h:1326
DgnFileP GetDgnFileP() const
Query the DgnFile that contains the revisions identified by this object.
Definition: DesignHistory.h:93
HistoryCapabilities
History capabilities specific to a file and/or capabilities enabled in the current configuration...
Definition: DesignHistory.h:833
Definition: DesignHistory.h:300
bvector< RevisionNumber > T_RevisionNumberVectorType
Definition: DesignHistory.h:44
A shared pointer template for reference-counted objects.
Definition: RefCounted.h:119
Can the user commit changes to design history?
Definition: DesignHistory.h:842
Copies of elements in a historical state for a given file.
Definition: DesignHistory.h:283
Copies of elements in a historical state for a given model.
Definition: DesignHistory.h:216
Can the user combine revisions?
Definition: DesignHistory.h:840
DgnFileP GetDgnFileP() const
Query the DgnFile to which this applies.
Definition: DesignHistory.h:421
Can the user browse design history?
Definition: DesignHistory.h:844
DVec3d operator*(Transform const &transform, DVec3d const &vector)
operator overload for multiplication of a transform and a vector li>The vector appears on the left as...
Can the user add tags?
Definition: DesignHistory.h:852
bool operator!=(const BentleyAllocator< _Ty > &, const BentleyAllocator< _Other > &)
Definition: BentleyAllocator.h:152
Can the user delete design history?
Definition: DesignHistory.h:846
Interface to filter query results at the element level.
Definition: DesignHistory.h:166
Performs a query to get the historical state of elements.
Definition: DesignHistory.h:366
int StatusInt
Definition: Bentley.h:222
Can the user turn on tracing in design history functions?
Definition: DesignHistory.h:850
bstdmap< ModelId, ElementQueryResultsForModel > T_ModelIdToElementQueryResultsForModelMapType
Definition: DesignHistory.h:275
RevisionNumber revNo
[in] tag value
Definition: DesignHistory.h:529
Can the user initialize design history?
Definition: DesignHistory.h:838
const_iterator iterator
only const iteration is possible
Definition: DesignHistory.h:313
Does the master file format support design history?
Definition: DesignHistory.h:836
bvector< RevisionInfo > T_RevisionInfoVector
Definition: DgnHistory.h:151
Definition: DesignHistoryRestore.h:56
When used as a mask, identifies all capabilities.
Definition: DesignHistory.h:864
Can the user change revision author in design history?
Definition: DesignHistory.h:858
ElementChangeType
The kinds of changes recorded in design history.
Definition: DgnPlatform.h:659
Holds the result of querying design history for the historical version of an element.
Definition: DesignHistory.h:123
A string class that has many of the same capabilities as std::string, plus additional functions such ...
Definition: WString.h:51
bool operator==(const BentleyAllocator< _Ty > &, const BentleyAllocator< _Other > &)
Definition: BentleyAllocator.h:146