Skip to content

pylon/PylonDataContainer.h#

Contains a class to access multi-component grab results.

Namespaces#

Name
Pylon
Contains definitions of pylon types.

Classes#

Name
class Pylon::CPylonDataContainer
Provides methods for accessing grab results consisting of multiple components.

Source code#

//-----------------------------------------------------------------------------
//  Basler pylon SDK
//  Copyright (c) 2020-2022 Basler AG
//  http://www.baslerweb.com
//  Author:  DV, JS
//-----------------------------------------------------------------------------
#ifndef INCLUDED_PYLONDATACONTAINER_H
#define INCLUDED_PYLONDATACONTAINER_H

#include <pylon/Platform.h>

#ifdef _MSC_VER
#   pragma pack(push, PYLON_PACKING)
#endif /* _MSC_VER */

#include <pylon/PylonBase.h>
#include <pylon/PixelType.h>
#include <pylon/PayloadType.h>



namespace Pylon
{
    // Forward declaration
    class CGrabResultPtr;
    class GrabResult;
    class CPylonDataComponent;

    class PYLONBASE_API CPylonDataContainer
    {
    public:
        explicit CPylonDataContainer( const CGrabResultPtr& ptrGrabResult );


        explicit CPylonDataContainer( const GrabResult& grabResult );


        explicit CPylonDataContainer( const Pylon::String_t& filename );


        CPylonDataContainer();


        CPylonDataContainer( const CPylonDataContainer& rhs );


        ~CPylonDataContainer();


        CPylonDataContainer& operator=( const CPylonDataContainer& rhs );


        size_t GetDataComponentCount() const;


        const CPylonDataComponent GetDataComponent( const size_t index ) const;


        void Save( const Pylon::String_t& filename ) const;

        void Load( const Pylon::String_t& filename );

    private:
        class CPylonDataContainerImpl;
        CPylonDataContainerImpl* m_pImpl;
    };
}

#ifdef _MSC_VER
#   pragma pack(pop)
#endif /* _MSC_VER */

#endif // INCLUDED_PYLONDATACONTAINER_H

Updated on 5 July 2022 at 15:30:01