Jump to content

tjs157

Members
  • Posts

    2
  • Joined

  • Last visited

tjs157's Achievements

Newbie

Newbie (1/14)

0

Reputation

  1. Has anyone implemented a better example of the singleton pattern than the one that ships with LV. I really don't like the use of a library to hide the class. It requires a method in the library and then one on the class to actually do the work. This seems redundant, I would prefer to see the details of the queue hidden in the class and not require the use of the library. Any ideas??
  2. Hi all, I'm a C++ programmer and have learned to use and enjoy (the bang head on wall too many times way) OOP design principles. I would like to utilize the same ideas with the LVOOP architecture. One of the things I would like to do is create a class that inherits all the properties of the boolean control and add extra functionality. For example in C++ I would create two methods in my new CBooleanAlarm class called <void SetAlarm(bool bAlarm)> and <bool GetAlarm()>. When the application calls SetAlarm with true it would set the boolean red and blink. If SetAlarm was called with false, it would set the boolean green and turn off blinking. When the application calls GetAlarm it would return the current state of the control. I would like to be able to add additional functionality like this to other controls as well so a general approach would be appreciated. What is the best way to approach this in LVOOP? Thanks for your help.
×
×
  • Create New...

Important Information

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