Jump to content

spdavids

Members
  • Posts

    4
  • Joined

  • Last visited

Posts posted by spdavids

  1. Hi Jon,

    In GOOP4 the singleton template is just a DVR class which restricts the creation of an object to only one instance. For the singleton template you get a protected method(GetInstance) to create/access your object.

    If you go for the simple DVR class you have a public create method to create your objects.

    As far as when to use the two approaches I guess you have already answered it your self a bit. When you only need one instance of a class and global access to it.

    A few occassions when you could use a singleton is for an error class, or a log class or some kind of communication class.

    BR

    Stefan

  2. Hi

    I am going to make at program an want to use GOOP from Symbio.

    But what shall I choose. GOOP 3 or GOOP 4?wacko.gif

    Which is most easy to use and understand?

    regards Bjarne

    Hi Bjarne,

    I would go for GOOP4, which has a new object kernel that uses LabVIEW DVR references.

    Download the free version from http://www.symbio.com/goop/ and install it.

    If you then go to: Tools-->GOOP--Product information there is much information to read which explains differences between GOOP3 and GOOP4.

    Regards

    Stefan.

×
×
  • Create New...

Important Information

By using this site, you agree to our Terms of Use.