Utility class for saving and restoring camera features to and from a file or string.
More...
#include <pylon/FeaturePersistence.h>
|
static void | Load (const String_t &FileName, GenApi::INodeMap *pNodeMap, bool validate=true) |
| Loads the features from the file to the node map. More...
|
|
static void | Save (const String_t &FileName, GenApi::INodeMap *pNodeMap) |
| Saves the node map to the file. More...
|
|
static void | LoadFromString (const String_t &Features, GenApi::INodeMap *pNodeMap, bool validate=true) |
| Loads the features from the string to the node map. More...
|
|
static void | SaveToString (String_t &Features, GenApi::INodeMap *pNodeMap) |
| Saves the node map to the string. More...
|
|
Utility class for saving and restoring camera features to and from a file or string.
- Note
- When saving features, the behavior of cameras supporting sequencers depends on the current setting of the "SequenceEnable" (some GigE models) or "SequencerConfigurationMode" (USB only) features respectively.
Only if the sequencer is in configuration mode, are the sequence sets exported. Otherwise, the camera features are exported without sequence sets.
static void Pylon::CFeaturePersistence::Load |
( |
const String_t & |
FileName, |
|
|
GenApi::INodeMap * |
pNodeMap, |
|
|
bool |
validate = true |
|
) |
| |
|
static |
Loads the features from the file to the node map.
- Parameters
-
[in] | FileName | Name of the file that contains the node map values. |
[in] | pNodeMap | Pointer to the node map |
[in] | validate | If validate==true, all node values will be validated. In case of an error, a GenICam::RuntimeException will be thrown |
- Error Safety: Throws an exception if loading fails.
static void Pylon::CFeaturePersistence::LoadFromString |
( |
const String_t & |
Features, |
|
|
GenApi::INodeMap * |
pNodeMap, |
|
|
bool |
validate = true |
|
) |
| |
|
static |
Loads the features from the string to the node map.
- Parameters
-
[in] | Features | String containing the node map values. |
[in] | pNodeMap | Pointer to the node map. |
[in] | validate | If validate==true, all node values will be validated. In case of an error, a GenICam::RuntimeException will be thrown. |
- Error Safety: Throws an exception if loading fails.
static void Pylon::CFeaturePersistence::Save |
( |
const String_t & |
FileName, |
|
|
GenApi::INodeMap * |
pNodeMap |
|
) |
| |
|
static |
Saves the node map to the file.
Sequence sets of a camera are automatically saved if SequenceEnable or SequencerConfigurationMode is enabled.
- Parameters
-
[in] | FileName | Name of the file that contains the node map values |
[in] | pNodeMap | Pointer to the node map |
- Error Safety: Throws an exception if saving fails.
static void Pylon::CFeaturePersistence::SaveToString |
( |
String_t & |
Features, |
|
|
GenApi::INodeMap * |
pNodeMap |
|
) |
| |
|
static |
Saves the node map to the string.
Sequence sets of a camera are automatically saved, if SequenceEnable or SequencerConfigurationMode is enabled.
- Parameters
-
[out] | Features | String containing the node map values |
[in] | pNodeMap | Pointer to the node map |
- Error Safety: Throws an exception if saving fails.
The documentation for this class was generated from the following file: