X
PrevPrev Go to previous topic
NextNext Go to next topic
Last Post 21 Jun 2022 05:28 AM by  stefan raffseder
static variables in class object
 2 Replies
Sort:
You are not authorized to post a reply.
Author Messages

stefan raffseder



New Member


Posts:1
New Member


--
01 Jun 2022 02:13 AM
    Hello everybody,
    i am very new at idl programming but know the principles of OOP.
    Now i need a class with a few instances where each instance is able to access the same data. I know the concept of static member variables in c++ classes and thought, there would be an equivalent in idl. But i didn't found any. Is there another concept i could use?
    Thanks, carl

    Ben Castellani



    Basic Member


    Posts:130
    Basic Member


    --
    08 Jun 2022 03:34 PM
    There is nothing akin to C++'s static member variables in IDL. The closest thing would be COMMON blocks, but those are global: https://www.l3harrisgeospatial.com/docs/common.html. That would still allow you to share data between class instances.

    stefan raffseder



    New Member


    Posts:1
    New Member


    --
    21 Jun 2022 05:28 AM
    okay, thanks for responding
    You are not authorized to post a reply.