pylon/FeaturePersistence.h#
Namespaces#
Name |
---|
Pylon Contains definitions of pylon types. |
Classes#
Name | |
---|---|
class | Pylon::CFeaturePersistence Utility class for saving and restoring camera features to and from a file or string. |
Detailed Description#
Pylon::CFeaturePersistence class with static helper functions for loading and saving camera features.
Date: 2007-09-11
Source code#
//-----------------------------------------------------------------------------
// Basler pylon SDK
// Copyright (c) 2009-2022 Basler AG
// http://www.baslerweb.com
// Author: Italo Anzioso
//-----------------------------------------------------------------------------
#ifndef __PYLON_FeaturePersistence_H_090218_090218_IS_INCLUDED__
#define __PYLON_FeaturePersistence_H_090218_090218_IS_INCLUDED__
#if _MSC_VER > 1000
#pragma once
#endif
#include <pylon/Platform.h>
#ifdef _MSC_VER
# pragma pack(push, PYLON_PACKING)
#endif /* _MSC_VER */
#include <GenICamFwd.h>
#include <pylon/stdinclude.h> // Pylon::String_t
#include <pylon/PylonUtility.h> // defines PYLONUTILITY_API
namespace Pylon
{
class PYLONUTILITY_API CFeaturePersistence
{
public:
static void Load( const String_t& FileName,
GenApi::INodeMap* pNodeMap,
bool validate = true
);
static void Save( const String_t& FileName,
GenApi::INodeMap* pNodeMap
);
static void LoadFromString( const String_t& Features,
GenApi::INodeMap* pNodeMap,
bool validate = true
);
static void SaveToString( String_t& Features,
GenApi::INodeMap* pNodeMap
);
private:
CFeaturePersistence( void );
~CFeaturePersistence( void );
};
} // Pylon Namespace
#ifdef _MSC_VER
# pragma pack(pop)
#endif /* _MSC_VER */
#endif //__PYLON_FeaturePersistence_H_090218_090218_IS_INCLUDED__
Updated on 5 July 2022 at 15:30:01