Go to the documentation of this file.
31 #ifndef GENAPI_NODEMAPREF_H
32 #define GENAPI_NODEMAPREF_H
53 return dynamic_cast<IDestroy *
>(pNodeMap);
66 template<
class TCameraParams>
154 virtual bool _ParseSwissKnifes( GENICAM_NAMESPACE::gcstring_vector *pErrorList = NULL )
const;
176 template<
class TCameraParams>
179 , _DeviceName(DeviceName)
184 template<
class TCameraParams>
187 , _DeviceName(DeviceName)
191 Attach(pNodeMap, DeviceName, pNodeMap ?
new int(0) : NULL);
194 template<
class TCameraParams>
205 template<
class TCameraParams>
209 assert(_Ptr == NULL);
210 assert(_pRefCount == NULL);
213 if (&_DeviceName != &DeviceName)
215 _DeviceName = DeviceName;
228 _pRefCount = pRefCount;
231 TCameraParams::_Initialize(_Ptr);
237 template<
class TCameraParams>
244 int* pRefCount = _pRefCount;
249 _DeviceName =
"Device";
255 assert(*pRefCount > 0);
273 assert(_pRefCount == NULL);
277 template<
class TCameraParams>
284 Attach(pNodeMap, pNodeMap->GetDeviceName(),
new int(0));
290 template<
class TCameraParams>
298 template<
class TCameraParams>
304 template<
class TCameraParams>
311 template<
class TCameraParams>
325 Attach( pNodeMap, _DeviceName,
new int( 0 ) );
328 template<
class TCameraParams>
342 Attach( pNodeMap, _DeviceName,
new int(0));
345 template<
class TCameraParams>
361 Attach( pNodeMap, _DeviceName,
new int( 0 ) );
364 template<
class TCameraParams>
376 Attach( pNodeMap, _DeviceName,
new int( 0 ) );
380 template<
class TCameraParams>
392 Attach( pNodeMap, _DeviceName,
new int( 0 ) );
395 template<
class TCameraParams>
409 Attach( pNodeMap, _DeviceName,
new int( 0 ) );
412 template<
class TCameraParams>
418 template<
class TCameraParams>
422 return _Ptr->GetDeviceName();
426 template<
class TCameraParams>
430 return _Ptr->Poll(ElapsedTime);
434 template<
class TCameraParams>
438 return _Ptr->GetNodes(Nodes);
443 template<
class TCameraParams>
447 return _Ptr->SetSuppressCallbackMode(mode);
452 template<
class TCameraParams>
456 return _Ptr->NewNodeWriteConcatenator();
460 template<
class TCameraParams>
464 return _Ptr->ConcatenatedWrite(pConcatenatedWrite, featureStreaming, pErrorList);
468 template<
class TCameraParams>
472 return _Ptr->GetNode(key);
476 template<
class TCameraParams>
480 return _Ptr->InvalidateNodes();
484 template<
class TCameraParams>
488 return _Ptr->ParseSwissKnifes(pErrorList);
492 template<
class TCameraParams>
496 return _Ptr->Connect(pPort, PortName);
500 template<
class TCameraParams>
504 return _Ptr->Connect(pPort);
508 template<
class TCameraParams>
512 return _Ptr->Connect(pPort, PortName);
516 template<
class TCameraParams>
520 return _Ptr->Connect(pPort);
524 template<
class TCameraParams>
527 return CNodeMapFactory::ClearCache();
589 #endif // ifndef GENAPI_NODEMAPPTR_H
virtual ~CGeneric_XMLLoaderParams()
virtual ~CNodeMapRefT()
Destructor.
Lexical analyzer for CIntSwissKnife.
Empty base class used by class CNodeMapRef as generic template argument.
Definition of template CPointer.
GENICAM_NAMESPACE::gcstring _DeviceName
The name of this device.
@ ContentType_Xml
XML camera description file text.
Definition of interface IDestroy.
virtual void _Poll(int64_t ElapsedTime)
Fires nodes which have a polling time.
virtual CNodeWriteConcatenator * _NewNodeWriteConcatenator() const
Create a new write concatenator object.
static bool _ClearXMLCache()
Clears the cache of the camera description files.
virtual GENICAM_NAMESPACE::gcstring _GetDeviceName() const
Get device name.
A string class which is a clone of std::string.
virtual void _InvalidateNodes() const
Invalidates all nodes.
virtual bool _ConcatenatedWrite(CNodeWriteConcatenator *, bool featureStreaming=true, GENICAM_NAMESPACE::gcstring_vector *pErrorList=NULL)
Execute the transaction.
CNodeMapRef(INodeMap *pNodeMap, const GENICAM_NAMESPACE::gcstring &DeviceName="Device")
Constructor.
Definition of the node map factory.
enum GENAPI_NAMESPACE::_ECallbackSuppressMode ECallbackSuppressMode
typedef for callback suppression mod
central versioning counters
void GetSupportedSchemaVersions(GENICAM_NAMESPACE::gcstring_vector &SchemaVersions) const
Definition of interface INodeMap.
virtual void _Initialize(GENAPI_NAMESPACE::INodeMap *)
Smartpointer template for NodeMaps with create function.
virtual INode * _GetNode(const GENICAM_NAMESPACE::gcstring &key) const
Retrieves the node from the central map by name.
INodeMap * _Ptr
Pointer to the NodeMap.
CNodeMapRefT(const GENICAM_NAMESPACE::gcstring &DeviceName="Device")
Constructor.
CNodeMapRefT & operator=(const CNodeMapRefT &Them)
Assignment.
GENICAM_INTERFACE INodeMap
Interface to access the node map.
GENICAM_INTERFACE GENAPI_DECL_ABSTRACT IDestroy
Interface to destroy an object.
virtual bool _Connect(IPort *pPort, const GENICAM_NAMESPACE::gcstring &PortName) const
Connects a port to a port node with given name.
virtual bool _ParseSwissKnifes(GENICAM_NAMESPACE::gcstring_vector *pErrorList=NULL) const
Parse all Swissknife equations.
GENICAM_INTERFACE GENAPI_DECL_ABSTRACT IPortStacked
Interface for ports.
The node map factory is used for creating node maps from camera description files.
CNodeMapRef & operator=(const CNodeMapRef &Them)
Assignment.
void _LoadXMLFromFile(const GENICAM_NAMESPACE::gcstring &FileName)
Creates the object from a XML file with given file name.
GENICAM_INTERFACE INode
Interface common to all nodes.
GENAPI_DECL IDestroy * CastToIDestroy(INodeMap *pNodeMap)
makes sure the dynamic_cast operator is implemented in the DLL (due to a Linux bug)
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...
virtual void _GetNodes(NodeList_t &Nodes) const
Retrieves all nodes in the node map.
void AddInjectionData(CNodeMapFactory &injectionData)
Adds a node map factory representing a camera description file to inject.
void _LoadXMLFromZIPFile(const GENICAM_NAMESPACE::gcstring &ZipFileName)
Creates the object from a ZIP'd XML file with given file name.
Smartpointer for NodeMaps with create function.
void _Destroy()
Destroys the node map.
CNodeMapRef(const GENICAM_NAMESPACE::gcstring &DeviceName="Device")
Constructor.
#define ACCESS_EXCEPTION
Fires a access exception, e.g. throw ACCESS_EXCEPTION("Not everybody")
CNodeMapRef & operator=(INodeMap *pNodeMap)
Assignment of an INodeMap*.
void _LoadXMLFromZIPData(const void *zipData, size_t zipSize)
Creates the object from a ZIP'd XML file given in a string.
virtual const char * c_str(void) const
virtual void _GetSupportedSchemaVersions(GENICAM_NAMESPACE::gcstring_vector &SchemaVersions) const
Gets a list of supported schema versions.
GENICAM_INTERFACE GENAPI_DECL_ABSTRACT IPort
Interface for ports.
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.
#define RUNTIME_EXCEPTION
Fires a runtime exception, e.g. throw RUNTIME_EXCEPTION("buh!")
CNodeMapRef(const CNodeMapRef &Them)
Copy constructor.
virtual IBoolean & operator=(bool Value)
Set node value.
void _LoadXMLFromString(const GENICAM_NAMESPACE::gcstring &XMLData)
Creates the object from XML data given in a string.
@ ContentType_ZippedXml
Zipped XML camera description file text.
virtual size_t size(void) const
void _LoadXMLFromStringInject(const GENICAM_NAMESPACE::gcstring &TargetXMLDataconst, const GENICAM_NAMESPACE::gcstring &InjectXMLData)
Creates the object from XML data given in a string with injection.
void Attach(INodeMap *pNodeMap, const GENICAM_NAMESPACE::gcstring &DeviceName, int *pRefCount)
virtual void _SetSuppressCallbackMode(ECallbackSuppressMode) const
Set suppress callback mode.
node_vector NodeList_t
a list of node references
Portable string implementation.
rc_genicam_api
Author(s): Heiko Hirschmueller
autogenerated on Wed Dec 4 2024 03:10:11