All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Groups Pages
Public Member Functions | Friends | List of all members
GenApi::CFeatureBag Class Reference

Bag holding streamable features of a nodetree. More...

#include <GenApi/Persistence.h>

Inheritance diagram for GenApi::CFeatureBag:
Inheritance graph
[legend]

Public Member Functions

virtual void SetInfo (gcstring &Info)
 sets information about the node map
 
virtual void PersistFeature (IValue &item)
 Stores a feature.
 
bool LoadFromBag (INodeMap *pNodeMap, bool Verify=true, gcstring_vector *pErrorList=NULL)
 For Verify=true the list of names in the feature bag is replayed again. More...
 
int64_t StoreToBag (INodeMap *pNodeMap, const int MaxNumPersistSkriptEntries=-1)
 Stores the streamable nodes to this feature bag. More...
 
bool operator== (const CFeatureBag &FeatureBag) const
 compares the content of two feature bags
 

Friends

std::istream & operator>> (std::istream &is, CFeatureBag &FeatureBag)
 fills the bag from a stream
 
std::ostream & operator<< (std::ostream &os, const CFeatureBag &FeatureBag)
 puts the bag into a stream
 

Detailed Description

Bag holding streamable features of a nodetree.

Member Function Documentation

bool GenApi::CFeatureBag::LoadFromBag ( INodeMap pNodeMap,
bool  Verify = true,
gcstring_vector *  pErrorList = NULL 
)

For Verify=true the list of names in the feature bag is replayed again.

Loads the features from the bag to the node tree

Parameters
pNodeMapThe node map
VerifyIf true, all streamable features are read back
pErrorListIf an error occurs during loading the error message is stored in the list and the loading continues

If a node is a selector it's value is set to the value from the feature bag If not the value is read from the camera and compared with the value from the feature bag.

int64_t GenApi::CFeatureBag::StoreToBag ( INodeMap pNodeMap,
const int  MaxNumPersistSkriptEntries = -1 
)

Stores the streamable nodes to this feature bag.

Parameters
pNodeMapThe node map to persist
MaxNumPersistSkriptEntriesThe max number of entries in the container; -1 means unlimited
Returns
number of entries in the bag

The documentation for this class was generated from the following file:

pylon 5.0.9
Copyright © 2006-2017 Basler AG (Tue May 30 2017 17:24:58)