Skip to content

File ProducerList.h

File List > include > ProducerList.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_PRODUCERLIST_H
#define FLIR_SPINNAKER_PRODUCERLIST_H

#include "Interface/IProducerList.h"

namespace Spinnaker
{
    class SPINNAKER_API ProducerList : public IProducerList
    {
      public:
        /*
         * Default Constructor
         */
        ProducerList(void);

        /*
         * Virtual Destructor
         */
        virtual ~ProducerList(void);

        /*
         * Copy Constructor
         */
        ProducerList(const ProducerList& prod);

        ProducerList& operator=(const ProducerList& prod);

        ProducerPtr operator[](unsigned int index);

        unsigned int GetSize() const;

        ProducerPtr GetByIndex(unsigned int index) const;

        ProducerPtr GetByProducerID(GenICam::gcstring producerID) const;

        void Clear();

        void Add(ProducerPtr prod);

        void Remove(ProducerPtr prod);

        void Append(const ProducerList* list);

      protected:
        friend class SystemImpl;
        friend class ProducerImpl;
    };

} // namespace Spinnaker

#endif // FLIR_SPINNAKER_PRODUCERLIST_H