File PortNode.h¶
File List > include > SpinGenApi > PortNode.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_PORTNODE_H
#define SPINNAKER_GENAPI_PORTNODE_H
#include "SpinnakerPlatform.h"
#include "Types.h"
#include "Base.h"
#include "INode.h"
#include "IPort.h"
#include "GCString.h"
#include "Node.h"
#include "Pointer.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 PortNode : virtual public IPortConstruct,
virtual public IChunkPort,
virtual public IPortRecorder,
virtual public Node
{
public:
struct NodeImpl;
PortNode();
PortNode(std::shared_ptr<Node::NodeImpl> pValue);
~PortNode();
//-------------------------------------------------------------
// IPort implementation
//-------------------------------------------------------------
virtual void Read(void* pBuffer, int64_t Address, int64_t Length);
virtual void Write(const void* pBuffer, int64_t Address, int64_t Length);
//-------------------------------------------------------------
// IPortConstruct implementation
//-------------------------------------------------------------
void SetPortImpl(IPort* pPort);
virtual EYesNo GetSwapEndianess();
//-------------------------------------------------------------
// IChunkPort implementation
//-------------------------------------------------------------
virtual Spinnaker::GenICam::gcstring GetChunkID() const;
virtual EYesNo CacheChunkData() const;
//-------------------------------------------------------------
// IPortRecorder implementation
//-------------------------------------------------------------
virtual void StartRecording(IPortWriteList* pPortRecorder);
virtual void StopRecording();
//-------------------------------------------------------------
// IPortReplay implementation
//-------------------------------------------------------------
virtual void Replay(IPortWriteList* pPortRecorder, bool Invalidate = true);
virtual void SetReference(INode* pBase);
using Node::SetReference;
virtual void SetReference(IPort* pBase);
virtual void SetReference(IChunkPort* pBase);
std::shared_ptr<Node::NodeImpl> GetPortHandle()
{
return m_pPort;
}
private:
std::shared_ptr<Node::NodeImpl> m_pPort;
};
typedef PortNode CPortRef;
} // namespace GenApi
} // namespace Spinnaker
#ifdef _WIN32
#pragma warning(pop)
#endif
#endif // ifndef SPINNAKER_GENAPI_PORTNODE_H