31 #ifndef GENAPI_NODEMAPREF_H 32 #define GENAPI_NODEMAPREF_H 53 return dynamic_cast<IDestroy *
>(pNodeMap);
66 template<
class TCameraParams>
151 virtual bool _ParseSwissKnifes( GENICAM_NAMESPACE::gcstring_vector *pErrorList = NULL )
const;
173 template<
class TCameraParams>
181 template<
class TCameraParams>
188 Attach(pNodeMap, DeviceName, pNodeMap ?
new int(0) : NULL);
191 template<
class TCameraParams>
202 template<
class TCameraParams>
206 assert(
_Ptr == NULL);
228 TCameraParams::_Initialize(
_Ptr);
234 template<
class TCameraParams>
252 assert(*pRefCount > 0);
274 template<
class TCameraParams>
281 Attach(pNodeMap, pNodeMap->GetDeviceName(),
new int(0));
287 template<
class TCameraParams>
295 template<
class TCameraParams>
301 template<
class TCameraParams>
308 template<
class TCameraParams>
322 template<
class TCameraParams>
336 template<
class TCameraParams>
352 template<
class TCameraParams>
365 template<
class TCameraParams>
377 template<
class TCameraParams>
391 template<
class TCameraParams>
397 template<
class TCameraParams>
401 return _Ptr->GetDeviceName();
405 template<
class TCameraParams>
409 return _Ptr->Poll(ElapsedTime);
413 template<
class TCameraParams>
417 return _Ptr->GetNodes(Nodes);
421 template<
class TCameraParams>
425 return _Ptr->NewNodeWriteConcatenator();
429 template<
class TCameraParams>
433 return _Ptr->ConcatenatedWrite(pConcatenatedWrite, featureStreaming, pErrorList);
437 template<
class TCameraParams>
441 return _Ptr->GetNode(key);
445 template<
class TCameraParams>
449 return _Ptr->InvalidateNodes();
453 template<
class TCameraParams>
457 return _Ptr->ParseSwissKnifes(pErrorList);
461 template<
class TCameraParams>
465 return _Ptr->Connect(pPort, PortName);
469 template<
class TCameraParams>
473 return _Ptr->Connect(pPort);
477 template<
class TCameraParams>
481 return _Ptr->Connect(pPort, PortName);
485 template<
class TCameraParams>
489 return _Ptr->Connect(pPort);
493 template<
class TCameraParams>
554 #endif // ifndef GENAPI_NODEMAPPTR_H The node map factory is used for creating node maps from camera description files.
void _LoadXMLFromFile(const GENICAM_NAMESPACE::gcstring &FileName)
Creates the object from a XML file with given file name.
virtual INode * _GetNode(const GENICAM_NAMESPACE::gcstring &key) const
Retrieves the node from the central map by name.
virtual void _Poll(int64_t ElapsedTime)
Fires nodes which have a polling time.
virtual size_t size(void) const
CNodeMapRef(const GENICAM_NAMESPACE::gcstring &DeviceName="Device")
Constructor.
Definition of interface IDestroy.
Empty base class used by class CNodeMapRef as generic template argument.
void AddInjectionData(CNodeMapFactory &injectionData)
Adds a node map factory representing a camera description file to inject.
void _LoadXMLFromFileInject(const GENICAM_NAMESPACE::gcstring &TargetFileName, const GENICAM_NAMESPACE::gcstring &InjectFileName)
Creates the object from a XML target and an inject file with given file name.
Zipped XML camera description file text.
virtual bool _ConcatenatedWrite(CNodeWriteConcatenator *, bool featureStreaming=true, GENICAM_NAMESPACE::gcstring_vector *pErrorList=NULL)
Execute the transaction.
CNodeMapRef & operator=(INodeMap *pNodeMap)
Assignment of an INodeMap*.
void _Destroy()
Destroys the node map.
CNodeMapRef(const CNodeMapRef &Them)
Copy constructor.
static bool ClearCache()
Deletes all preprocessed camera description files from the cache.
GENICAM_INTERFACE INodeMap
Interface to access the node map.
GENAPI_DECL IDestroy * CastToIDestroy(INodeMap *pNodeMap)
makes sure the dynamic_cast operator is implemented in the DLL (due to a Linux bug) ...
virtual void _GetNodes(NodeList_t &Nodes) const
Retrieves all nodes in the node map.
#define RUNTIME_EXCEPTION
Fires a runtime exception, e.g. throw RUNTIME_EXCEPTION("buh!")
virtual bool _Connect(IPort *pPort, const GENICAM_NAMESPACE::gcstring &PortName) const
Connects a port to a port node with given name.
central versioning counters
CNodeMapRef(INodeMap *pNodeMap, const GENICAM_NAMESPACE::gcstring &DeviceName="Device")
Constructor.
GENICAM_INTERFACE GENAPI_DECL_ABSTRACT IPortStacked
Interface for ports.
INodeMap * _Ptr
Pointer to the NodeMap.
node_vector NodeList_t
a list of node references
void _LoadXMLFromStringInject(const GENICAM_NAMESPACE::gcstring &TargetXMLDataconst, const GENICAM_NAMESPACE::gcstring &InjectXMLData)
Creates the object from XML data given in a string with injection.
#define ACCESS_EXCEPTION
Fires a access exception, e.g. throw ACCESS_EXCEPTION("Not everybody")
Smartpointer template for NodeMaps with create function.
virtual void _Initialize(GENAPI_NAMESPACE::INodeMap *)
void _LoadXMLFromString(const GENICAM_NAMESPACE::gcstring &XMLData)
Creates the object from XML data given in a string.
Definition of interface INodeMap.
GENICAM_INTERFACE GENAPI_DECL_ABSTRACT IDestroy
Interface to destroy an object.
virtual bool _ParseSwissKnifes(GENICAM_NAMESPACE::gcstring_vector *pErrorList=NULL) const
Parse all Swissknife equations.
virtual GENICAM_NAMESPACE::gcstring _GetDeviceName() const
Get device name.
Definition of the node map factory.
virtual void _InvalidateNodes() const
Invalidates all nodes.
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...
void _LoadXMLFromZIPData(const void *zipData, size_t zipSize)
Creates the object from a ZIP'd XML file given in a string.
void _LoadXMLFromZIPFile(const GENICAM_NAMESPACE::gcstring &ZipFileName)
Creates the object from a ZIP'd XML file with given file name.
void Attach(INodeMap *pNodeMap, const GENICAM_NAMESPACE::gcstring &DeviceName, int *pRefCount)
GENICAM_NAMESPACE::gcstring _DeviceName
The name of this device.
Definition of template CPointer.
GENICAM_INTERFACE GENAPI_DECL_ABSTRACT IPort
Interface for ports.
virtual CNodeWriteConcatenator * _NewNodeWriteConcatenator() const
Create a new write concatenator object.
A string class which is a clone of std::string.
static bool _ClearXMLCache()
Clears the cache of the camera description files.
Portable string implementation.
XML camera description file text.
CNodeMapRef & operator=(const CNodeMapRef &Them)
Assignment.
GENICAM_INTERFACE INode
Interface common to all nodes.
void GetSupportedSchemaVersions(GENICAM_NAMESPACE::gcstring_vector &SchemaVersions) const
virtual ~CNodeMapRefT()
Destructor.
CNodeMapRefT(const GENICAM_NAMESPACE::gcstring &DeviceName="Device")
Constructor.
CNodeMapRefT & operator=(const CNodeMapRefT &Them)
Assignment.
virtual const char * c_str(void) const
Lexical analyzer for CIntSwissKnife.
Smartpointer for NodeMaps with create function.
virtual void _GetSupportedSchemaVersions(GENICAM_NAMESPACE::gcstring_vector &SchemaVersions) const
Gets a list of supported schema versions.