Skip to content

File ValueNode.h

File List > include > SpinGenApi > ValueNode.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 SPINNAKER_GENAPI_VALUENODE_H
#define SPINNAKER_GENAPI_VALUENODE_H

#include "SpinnakerPlatform.h"
#include "Types.h"
#include "Base.h"
#include "INode.h"
#include "IValue.h"
#include "GCString.h"
#include "Node.h"

#ifdef _WIN32
#pragma warning(push)
#pragma warning(disable : 4251) // XXX needs to have dll-interface to be used by clients of class YYY
#pragma warning(disable : 4250) // C4250 - 'class1' : inherits 'class2::member' via dominance
#pragma warning(disable : 4275) // warning C4275: non dll-interface struct 'Spinnaker::GenApi::IValue' used as base for
                                // dll-interface class 'Spinnaker::GenApi::Value'
#endif

namespace Spinnaker
{
    namespace GenApi
    {
        //*************************************************************
        // IValue interface
        //*************************************************************

        class SPINNAKER_API ValueNode : virtual public IValue, virtual public Node
        {
          public:
            struct NodeImpl;
            ValueNode();

            ValueNode(std::shared_ptr<Node::NodeImpl> pValue);

            ~ValueNode();

            virtual INode* GetNode();

            virtual GenICam::gcstring ToString(bool Verify = false, bool IgnoreCache = false);

            virtual void FromString(const GenICam::gcstring& ValueStr, bool Verify = true);

            virtual bool IsValueCacheValid() const;

            virtual void SetReference(INode* pBase);

            virtual bool IsValueUpdated()
            {
                return true;
            }

          private:
            std::shared_ptr<Node::NodeImpl> m_pIValue;
        };

        typedef ValueNode CValueRef;

    } // namespace GenApi
} // namespace Spinnaker

#ifdef _WIN32
#pragma warning(pop)
#endif

#endif // ifndef SPINNAKER_GENAPI_VALUENODE_H