Quantcast
Channel: MicroStation Programming Forum - Recent Threads
Viewing all articles
Browse latest Browse all 7260

RE: [CONNECT C++] ElementAgenda, IElementSet

$
0
0

[quote user="Paul Connelly"]Build an IElementSet by implementing the interface on some collection of element(s)[/quote]

Something like this?

struct MyCollection : IElementSet
{
   size_t index;
   bvector<MyClassInheritsFromElementHandle> data;
   MyCollection () : index (0) {}
   virtual bool GetFirst (ElementHandleR eh) override { index= 0; eh = data [index]; }
   virtual bool GetNext  (ElementHandleR eh) override { eh = data [++index]; }
};

Viewing all articles
Browse latest Browse all 7260

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>