From 237e92abca440ad69c3e27df79f192fd02871a47 Mon Sep 17 00:00:00 2001 From: Brandon Date: Tue, 26 May 2026 11:00:24 -0700 Subject: [PATCH 1/9] ASITiger: use #pragma once instead of header guard --- DeviceAdapters/ASITiger/ASIBase.h | 5 +--- DeviceAdapters/ASITiger/ASICRISP.h | 5 +--- DeviceAdapters/ASITiger/ASIClocked.h | 5 +--- DeviceAdapters/ASITiger/ASIDac.h | 5 +--- DeviceAdapters/ASITiger/ASIDacXYStage.h | 5 +--- DeviceAdapters/ASITiger/ASIFWheel.h | 5 +--- DeviceAdapters/ASITiger/ASIHub.h | 7 +----- DeviceAdapters/ASITiger/ASILED.h | 5 +--- DeviceAdapters/ASITiger/ASILens.h | 5 +--- DeviceAdapters/ASITiger/ASIPLogic.h | 5 +--- DeviceAdapters/ASITiger/ASIPeripheralBase.h | 8 +------ DeviceAdapters/ASITiger/ASIPiezo.h | 5 +--- DeviceAdapters/ASITiger/ASIPmt.h | 5 +--- DeviceAdapters/ASITiger/ASIScanner.h | 5 +--- DeviceAdapters/ASITiger/ASITiger.h | 4 +--- DeviceAdapters/ASITiger/ASITigerComm.h | 26 +++++++++------------ DeviceAdapters/ASITiger/ASIXYStage.h | 12 ++++------ DeviceAdapters/ASITiger/ASIZStage.h | 5 +--- 18 files changed, 31 insertions(+), 91 deletions(-) diff --git a/DeviceAdapters/ASITiger/ASIBase.h b/DeviceAdapters/ASITiger/ASIBase.h index e77e597e6..d5be7795c 100644 --- a/DeviceAdapters/ASITiger/ASIBase.h +++ b/DeviceAdapters/ASITiger/ASIBase.h @@ -20,8 +20,7 @@ // AUTHOR: Jon Daniels (jon@asiimaging.com) 09/2013 // -#ifndef ASIBASE_H -#define ASIBASE_H +#pragma once #include "MMDevice.h" #include "DeviceBase.h" @@ -125,5 +124,3 @@ class ASIBase : public TDeviceBase { this->SetErrorText(ERR_INVALID_ADDRESS, g_Msg_ERR_INVALID_ADDRESS); } }; - -#endif // ASIBASE_H diff --git a/DeviceAdapters/ASITiger/ASICRISP.h b/DeviceAdapters/ASITiger/ASICRISP.h index a8b5727e6..fbe8cf648 100644 --- a/DeviceAdapters/ASITiger/ASICRISP.h +++ b/DeviceAdapters/ASITiger/ASICRISP.h @@ -20,8 +20,7 @@ // AUTHOR: Jon Daniels (jon@asiimaging.com) 09/2013 // -#ifndef ASICRISP_H -#define ASICRISP_H +#pragma once #include "ASIPeripheralBase.h" #include "MMDevice.h" @@ -135,5 +134,3 @@ class CCRISP : public ASIPeripheralBase { // std::optional allows the table to be late-initialized while keeping its members const for immutability. std::optional commands_; }; - -#endif // ASICRISP_H diff --git a/DeviceAdapters/ASITiger/ASIClocked.h b/DeviceAdapters/ASITiger/ASIClocked.h index 72b9898d9..798b1af4c 100644 --- a/DeviceAdapters/ASITiger/ASIClocked.h +++ b/DeviceAdapters/ASITiger/ASIClocked.h @@ -20,8 +20,7 @@ // AUTHOR: Jon Daniels (jon@asiimaging.com) 09/2013 // -#ifndef ASICLOCKED_H -#define ASICLOCKED_H +#pragma once #include "ASIPeripheralBase.h" #include "MMDevice.h" @@ -76,5 +75,3 @@ class CPortSwitch : public CClocked { int Initialize(); }; - -#endif // ASICLOCKED_H diff --git a/DeviceAdapters/ASITiger/ASIDac.h b/DeviceAdapters/ASITiger/ASIDac.h index d5a29e0db..51dcb9caa 100644 --- a/DeviceAdapters/ASITiger/ASIDac.h +++ b/DeviceAdapters/ASITiger/ASIDac.h @@ -20,8 +20,7 @@ // AUTHOR: Vikram Kopuri (vik@asiimaging.com) 08/2019 // -#ifndef ASIDAC_H -#define ASIDAC_H +#pragma once #include "ASIPeripheralBase.h" #include "MMDevice.h" @@ -109,5 +108,3 @@ class CDAC : public ASIPeripheralBase bool ttl_trigger_enabled_; std::vector sequence_; // carries data in volts }; - -#endif // ASIDAC_H diff --git a/DeviceAdapters/ASITiger/ASIDacXYStage.h b/DeviceAdapters/ASITiger/ASIDacXYStage.h index 91a3adda2..a6cee0601 100644 --- a/DeviceAdapters/ASITiger/ASIDacXYStage.h +++ b/DeviceAdapters/ASITiger/ASIDacXYStage.h @@ -20,8 +20,7 @@ // AUTHOR: Brandon Simpson (brandon@asiimaging.com) 2/2022 // -#ifndef ASIDACXYSTAGE_H -#define ASIDACXYSTAGE_H +#pragma once #include "ASIPeripheralBase.h" #include "MMDevice.h" @@ -166,5 +165,3 @@ class CDACXYStage : public ASIPeripheralBase std::vector sequenceX_; std::vector sequenceY_; }; - -#endif // ASIDACXYSTAGE_H diff --git a/DeviceAdapters/ASITiger/ASIFWheel.h b/DeviceAdapters/ASITiger/ASIFWheel.h index 32118f2df..53c5e7525 100644 --- a/DeviceAdapters/ASITiger/ASIFWheel.h +++ b/DeviceAdapters/ASITiger/ASIFWheel.h @@ -20,8 +20,7 @@ // AUTHOR: Jon Daniels (jon@asiimaging.com) 09/2013 // -#ifndef ASIFWHEEL_H -#define ASIFWHEEL_H +#pragma once #include "ASIPeripheralBase.h" #include "MMDevice.h" @@ -62,5 +61,3 @@ class CFWheel : public ASIPeripheralBase std::string wheelNumber_; static std::string selectedWheel_; // which wheel is currently selected, shared among all instances of this class }; - -#endif // ASIFWHEEL_H diff --git a/DeviceAdapters/ASITiger/ASIHub.h b/DeviceAdapters/ASITiger/ASIHub.h index c4ba1b5b2..798b9b7f7 100644 --- a/DeviceAdapters/ASITiger/ASIHub.h +++ b/DeviceAdapters/ASITiger/ASIHub.h @@ -20,8 +20,7 @@ // AUTHOR: Jon Daniels (jon@asiimaging.com) 09/2013 // -#ifndef ASIHUB_H -#define ASIHUB_H +#pragma once #include "ASIBase.h" #include "MMDevice.h" @@ -169,7 +168,3 @@ class ASIHub : public ASIBase std::map deviceMap_; // to implement properties shared between devices // key is the device name, value is the Tiger address (normally a single character, see note about addressChar_ in ASIPeripheralBase }; - - - -#endif // ASIHUB_H diff --git a/DeviceAdapters/ASITiger/ASILED.h b/DeviceAdapters/ASITiger/ASILED.h index a9a891c82..ec4263e75 100644 --- a/DeviceAdapters/ASITiger/ASILED.h +++ b/DeviceAdapters/ASITiger/ASILED.h @@ -20,8 +20,7 @@ // AUTHOR: Jon Daniels (jon@asiimaging.com) 05/2014 // -#ifndef ASILED_H -#define ASILED_H +#pragma once #include "ASIPeripheralBase.h" #include "MMDevice.h" @@ -57,5 +56,3 @@ class CLED : public ASIPeripheralBase bool stablight_; int UpdateOpenIntensity(); }; - -#endif // ASILED_H diff --git a/DeviceAdapters/ASITiger/ASILens.h b/DeviceAdapters/ASITiger/ASILens.h index 290e2fd1e..4e5d2f992 100644 --- a/DeviceAdapters/ASITiger/ASILens.h +++ b/DeviceAdapters/ASITiger/ASILens.h @@ -21,8 +21,7 @@ // Modified for Tunable lens by Vik (vik@asiimaging.com) 05/2017 // -#ifndef ASILENS_H -#define ASILENS_H +#pragma once #include "ASIPeripheralBase.h" #include "MMDevice.h" @@ -118,5 +117,3 @@ class CLens : public ASIPeripheralBase bool ttl_trigger_enabled_; std::vector sequence_; }; - -#endif // ASILENS_H diff --git a/DeviceAdapters/ASITiger/ASIPLogic.h b/DeviceAdapters/ASITiger/ASIPLogic.h index 9fa01d96a..af8738e73 100644 --- a/DeviceAdapters/ASITiger/ASIPLogic.h +++ b/DeviceAdapters/ASITiger/ASIPLogic.h @@ -20,8 +20,7 @@ // AUTHOR: Jon Daniels (jon@asiimaging.com) 05/2014 // -#ifndef ASIPLOGIC_H -#define ASIPLOGIC_H +#pragma once #include "ASIPeripheralBase.h" #include "MMDevice.h" @@ -104,5 +103,3 @@ class CPLogic : public ASIPeripheralBase int RefreshCurrentPosition(); int RefreshEditCellPropertyValues(); }; - -#endif // ASIPLOGIC_H diff --git a/DeviceAdapters/ASITiger/ASIPeripheralBase.h b/DeviceAdapters/ASITiger/ASIPeripheralBase.h index f88f0a369..15fb32ddc 100644 --- a/DeviceAdapters/ASITiger/ASIPeripheralBase.h +++ b/DeviceAdapters/ASITiger/ASIPeripheralBase.h @@ -20,17 +20,14 @@ // AUTHOR: Jon Daniels (jon@asiimaging.com) 09/2013 // -#ifndef ASIPERIPHERALBASE_H -#define ASIPERIPHERALBASE_H +#pragma once #include "ASITiger.h" #include "ASIBase.h" #include "ASIHub.h" - // See ASIBase.h for an explanation of how this class works. - template