GenApi  3.5.1
Classes | Macros | Functions | Variables
Persistence.h File Reference

Definition of interface IPersistScript and class CFeatureBag. More...

Go to the source code of this file.

Classes

class  CFeatureBag
 Bag holding streamable features of a nodetree. More...
 
class  CFeatureBagger
 Class use to bag features. More...
 

Macros

#define GENAPI_PERSISTENCE_MAGIC   "{05D8C294-F295-4dfb-9D01-096BD04049F4}"
 the magic GUID which indicates that the file or buffer is a GenApi stream created by the CFeatureBag class. Must be the first entry of a file or section.
 
#define GENAPI_PERSISTENCE_MAGIC_FEATUREBAGGER   "{4709CB3C-7322-4460-84C3-DA11DDA09939}"
 the magic GUID which indicates that the file is a GenApi stream file created by the CFeatureBagger class. Must be the first entry of a file.
 

Functions

virtual void PersistFeature (IValue &item, CSelectorSet *selectorSet=NULL)=0
 Stores a feature.
 
std::istream & EatComments (std::istream &is)
 Helper function ignoring lines starting with comment character '#'.
 
char * TrimSpace (char *Name, std::istream &is)
 Helper function cutting off space characters.
 
std::istream & operator>> (std::istream &is, CFeatureBag &FeatureBag)
 reads in persistent data from a stream More...
 
std::ostream & operator<< (std::ostream &os, const CFeatureBag &FeatureBag)
 writes out persistent data to a stream More...
 
std::ostream & operator<< (std::ostream &os, const CFeatureBagger &featureBagger)
 writes out persistent data to a stream More...
 
std::istream & operator>> (std::istream &is, CFeatureBagger &featureBagger)
 reads back persistent data from a stream More...
 

Variables

GENICAM_INTERFACE GENAPI_DECL_ABSTRACT IPersistScript
 Basic interface to persist values to.
 

Function Documentation

◆ operator>>() [1/2]

std::istream& GENAPI_NAMESPACE::operator>> ( std::istream &  is,
CFeatureBag FeatureBag 
)

fills the bag from a stream

◆ operator<<() [1/2]

std::ostream& GENAPI_NAMESPACE::operator<< ( std::ostream &  os,
const CFeatureBag FeatureBag 
)

puts the bag into a stream

◆ operator<<() [2/2]

std::ostream& GENAPI_NAMESPACE::operator<< ( std::ostream &  os,
const CFeatureBagger featureBagger 
)

puts the bags into a stream

◆ operator>>() [2/2]

std::istream& GENAPI_NAMESPACE::operator>> ( std::istream &  is,
CFeatureBagger featureBagger 
)

reads the bags from a stream