30#include <GenApi/GenApiVersion.h>
36namespace GENAPI_NAMESPACE
308 static CNodeDataMap *CreateNodeDataFromNodeMap( INodeMap* pNodeMap );
313 uint32_t NumProperties;
318 void GetNodeStatistics(NodeStatistics_t &NodeStatistics);
325 class CNodeMapFactoryImpl;
327 CNodeMapFactoryImpl* m_pImpl;
Portable string vector implementation.
Portable string implementation.
declspec's to be used for GenApi Windows dll
A lock class.
Definition Synch.h:62
The node map factory is used for creating node maps from camera description files.
Definition NodeMapFactory.h:136
void AddInjectionData(CNodeMapFactory &injectionData)
Adds a node map factory representing a camera description file to inject.
CNodeMapFactory(EContentType_t ContentType, const void *pData, size_t DataSize, ECacheUsage_t CacheUsage=CacheUsage_Automatic, bool SuppressStringsOnLoad=false)
Creates the node map factory and simply stores the pointer and the size of the provided camera descri...
void ReleaseCameraDescriptionFileData()
Advanced: Releases any in constructors provided camera description file data buffers or files.
GENICAM_NAMESPACE::gcstring ToXml() const
Outputs the pre-processed node map in XML form (mainly for debug purpose)
static INodeMap * CreateEmptyNodeMap()
Creates an empty node map usable as placeholder, e.g. if certain features are not supported by a modu...
INodeMap * CreateNodeMap(const GENICAM_NAMESPACE::gcstring &DeviceName="Device", bool DoReleaseCameraDescriptionFileData=true)
Creates a node map from the preprocessed memory internal representation of the camera description fil...
CNodeMapFactory ExtractSubtree(const GENICAM_NAMESPACE::gcstring &SubTreeRootNodeName, bool doRenameToRoot=false)
The name of the node that represents the root of the subtree that shall be extracted.
bool IsLoaded() const
Can be used to check whether the LoadAndInject() processing step has been performed....
bool IsCameraDescriptionFileDataReleased() const
Can be used to check whether the ReleaseCameraDescriptionFileData() processing step has been performe...
void LoadAndInject()
Advanced: Loads, Parses, and Injects the camera description files recursively. The result is a memory...
GENICAM_NAMESPACE::gcstring ToString() const
Outputs the pre-processed node map in string form (for debug purpose)
CNodeMapFactory()
Creates an empty node map factory for assigning a non-empty node map factory later.
bool IsEmpty() const
Returns true if nothing is loaded (IsLoaded()) and no source data is available, e....
CNodeMapFactory & operator=(const CNodeMapFactory &)
Creates another reference to the assigned node map factory data. Destroys the "overwritten" node map ...
CNodeMapFactory(const GENICAM_NAMESPACE::gcstring &XmlData, ECacheUsage_t CacheUsage=CacheUsage_Automatic, bool SuppressStringsOnLoad=false)
Creates the node map factory and copies the provided camera description file string.
bool IsPreprocessed() const
Can be used to check whether the Preprocess() processing step has been performed.
INodeMap * CreateNodeMap(CLock &UserProvidedLock, const GENICAM_NAMESPACE::gcstring &DeviceName="Device", bool DoReleaseCameraDescriptionFileData=true)
Creates a node map from the preprocessed memory internal representation of the camera description fil...
static bool ClearCache()
Deletes all preprocessed camera description files from the cache.
void GetSupportedSchemaVersions(GENICAM_NAMESPACE::gcstring_vector &SchemaVersions) const
CNodeMapFactory(const CNodeMapFactory &)
Creates another reference to the node map factory data. No data is copied.
const GENICAM_NAMESPACE::gcstring ApplyStyleSheet(const GENICAM_NAMESPACE::gcstring &StyleSheetFileName)
Applies a style sheet to the pre-processed node map.
virtual ~CNodeMapFactory()
Destroys the node map factory data if all references to the data have been released.
void Preprocess()
Advanced: Creates the preprocessed memory internal representation of the camera description file(s),...
CNodeMapFactory(EContentType_t FileType, const GENICAM_NAMESPACE::gcstring &FileName, ECacheUsage_t CacheUsage=CacheUsage_Automatic, bool SuppressStringsOnLoad=false)
Creates the node map factory and simply stores the full path to the provided camera description file ...
A string class which is a clone of std::string.
Definition GCString.h:51
GENICAM_INTERFACE INodeMap
Interface to access the node map.
Definition INode.h:50
EContentType_t
Lists the processable file types.
Definition NodeMapFactory.h:62
ECacheUsage_t
Lists the cache usage strategies. The cache stores preprocessed camera description xml files providin...
Definition NodeMapFactory.h:48
@ ContentType_ZippedXml
Zipped XML camera description file text.
Definition NodeMapFactory.h:65
@ ContentType_Xml
XML camera description file text.
Definition NodeMapFactory.h:64
@ CacheUsage_Automatic
The use of cache files is determined automatically.
Definition NodeMapFactory.h:49
@ CacheUsage_ForceWrite
Definition NodeMapFactory.h:50
@ CacheUsage_Ignore
Forces the loading and preprocessing of the camera description xml file. No cache file is written.
Definition NodeMapFactory.h:54
@ CacheUsage_ForceRead
Definition NodeMapFactory.h:52