Skip to content

File Float.h

File List > GenApiNet > Float.h

Go to the documentation of this file

//=============================================================================
// Copyright (c) 2026 FLIR Integrated Imaging Solutions, Inc. All Rights Reserved.
//
// This software is the confidential and proprietary information of FLIR
// Integrated Imaging Solutions, Inc. ("Confidential Information"). You
// shall not disclose such Confidential Information and shall use it only in
// accordance with the terms of the license agreement you entered into
// with FLIR Integrated Imaging Solutions, Inc. (FLIR).
//
// FLIR MAKES NO REPRESENTATIONS OR WARRANTIES ABOUT THE SUITABILITY OF THE
// SOFTWARE, EITHER EXPRESSED OR IMPLIED, INCLUDING, BUT NOT LIMITED TO, THE
// IMPLIED WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR
// PURPOSE, OR NON-INFRINGEMENT. FLIR SHALL NOT BE LIABLE FOR ANY DAMAGES
// SUFFERED BY LICENSEE AS A RESULT OF USING, MODIFYING OR DISTRIBUTING
// THIS SOFTWARE OR ITS DERIVATIVES.
//=============================================================================

#ifndef FLIR_SPINNAKER_FLOAT_H
#define FLIR_SPINNAKER_FLOAT_H

#include "Node.h"
#include "Value.h"
#include "Register.h"

namespace Spinnaker{ namespace GenApi { interface IFloat; } }

namespace SpinnakerNET
{
    namespace GenApi
    {
#pragma region Float Interface
        public interface class IFloat
            : public SpinnakerNET::GenApi::IValue
        {
            property double Increment
            {
                double __clrcall get(void);
            }

            property double Max
            {
                double __clrcall get(void);
            }

            property double Min
            {
                double __clrcall get(void);
            }

            property SpinnakerNET::GenApi::Representation Representation
            {
                SpinnakerNET::GenApi::Representation __clrcall get(void);
            }

            property double Value
            {
                double __clrcall get(void);
                void __clrcall set(double value);
            }

            property ::System::String ^ Unit
            {
                ::System::String ^ __clrcall get();
            }

            property __int64 DisplayPrecision
            {
                __int64 __clrcall get(void);
            }
        };
#pragma endregion

        public ref class Float
            : public Node
              , public SpinnakerNET::GenApi::IFloat
        {
#pragma region Ctor/Dtor
            public:
                __clrcall Float(SpinnakerNET::GenApi::NodeMap ^map, IntPtr handle);

                __clrcall Float(SpinnakerNET::GenApi::INode ^obj);

                __clrcall !Float(void);

                virtual __clrcall ~Float(void);
#pragma endregion

#pragma region Node Methods
            public:
                virtual void __clrcall FromString(::System::String ^value);

                virtual ::System::String^ __clrcall ToString(void) override;
#pragma endregion

#pragma region Float Methods
            public:
                virtual property double Increment
                {
                    double __clrcall get(void) sealed;
                }

                virtual property double Max
                {
                    double __clrcall get(void) sealed;
                }

                virtual property double Min
                {
                    double __clrcall get(void) sealed;
                }

                virtual property SpinnakerNET::GenApi::Representation Representation
                {
                    SpinnakerNET::GenApi::Representation __clrcall get(void) sealed;
                }

                virtual property double Value
                {
                    double __clrcall get(void) sealed;
                    void __clrcall set(double value) sealed;
                }

                virtual property ::System::String ^ Unit
                {
                    ::System::String ^ __clrcall get() sealed;
                }

                virtual property __int64 DisplayPrecision
                {
                    __int64 __clrcall get() sealed;
                }
#pragma endregion

#pragma region Value Operators
            public:
                static operator double (Float ^obj) { return obj->Value; }

                Float ^ operator = (double value) { Value = value; return this; }
#pragma endregion

#pragma region Member
            private:
                ::Spinnaker::GenApi::IFloat * floatHandle;
#pragma endregion
        };

        public ref class FloatReg
            : public Register
              , public SpinnakerNET::GenApi::IFloat
        {
#pragma region Ctor/Dtor
            public:
                __clrcall FloatReg(SpinnakerNET::GenApi::NodeMap ^map, ::System::IntPtr handle);

                __clrcall FloatReg(SpinnakerNET::GenApi::INode ^obj);

                __clrcall !FloatReg(void);

                virtual __clrcall ~FloatReg(void);
#pragma endregion

#pragma region Node Methods
            public:
                virtual void __clrcall FromString(::System::String ^value) override;

                virtual ::System::String^ __clrcall ToString(void) override;
#pragma endregion

#pragma region Float Methods
            public:
                virtual property double Increment
                {
                    double __clrcall get(void) sealed;
                }

                virtual property double Max
                {
                    double __clrcall get(void) sealed;
                }

                virtual property double Min
                {
                    double __clrcall get(void) sealed;
                }

                virtual property SpinnakerNET::GenApi::Representation Representation
                {
                    SpinnakerNET::GenApi::Representation __clrcall get(void) sealed;
                }

                virtual property double Value
                {
                    double __clrcall get(void) sealed;
                    void __clrcall set(double value) sealed;
                }

                virtual property ::System::String ^ Unit
                {
                    ::System::String ^ __clrcall get() sealed;
                }

                virtual property __int64 DisplayPrecision
                {
                    __int64 __clrcall get() sealed;
                }
#pragma endregion

#pragma region Value Operators
            public:
                static operator double (FloatReg ^obj) { return obj->Value; }

                FloatReg ^ operator = (double value) { Value = value; return this; }
#pragma endregion

#pragma region Member
            private:
                ::Spinnaker::GenApi::IFloat * floatHandle;
#pragma endregion
        };
    }
}
#endif //FLIR_SPINNAKER_FLOAT_H