Wasatch.NET 2.4.14
.NET application driver for Wasatch Photonics spectrometers
Loading...
Searching...
No Matches
Public Member Functions | Properties | List of all members
WasatchNET.DriverVBAWrapper Class Reference

A way to get to the static Singleton from languages that don't support static class methods like Driver.getInstance(). More...

Inheritance diagram for WasatchNET.DriverVBAWrapper:
[legend]
Collaboration diagram for WasatchNET.DriverVBAWrapper:
[legend]

Public Member Functions

 DriverVBAWrapper ()
 
IDriver getSingleton ()
 
IDriver getSingleton ()
 

Properties

IDriver instance = Driver.getInstance() [get]
 
- Properties inherited from WasatchNET.IDriverVBAWrapper
IDriver instance [get]
 

Detailed Description

A way to get to the static Singleton from languages that don't support static class methods like Driver.getInstance().

Research indicates that at least some versions of Visual Basic (pre-.NET), as well as Visual Basic for Applications (VBA) limit .NET classes to object creation, instance methods and instance properties. Unfortunately, that means they can't call pure static methods like WasatchNET.Driver.getInstance().

This class is provided as something that any caller can easily create (instantiate), and then access the Driver Singleton via the single exposed "instance" property.

Constructor & Destructor Documentation

◆ DriverVBAWrapper()

WasatchNET.DriverVBAWrapper.DriverVBAWrapper ( )
inline

Member Function Documentation

◆ getSingleton()

IDriver WasatchNET.DriverVBAWrapper.getSingleton ( )
inline

Property Documentation

◆ instance

IDriver WasatchNET.DriverVBAWrapper.instance = Driver.getInstance()
get

The documentation for this class was generated from the following file: