Public Types | Public Member Functions | Protected Member Functions | Private Types | Private Member Functions | Static Private Member Functions | Private Attributes
GENAPI_NAMESPACE::CIEEE1212ParserImpl Class Reference

#include <IEEE1212Parser.h>

Inheritance diagram for GENAPI_NAMESPACE::CIEEE1212ParserImpl:
Inheritance graph
[legend]

List of all members.

Public Types

typedef uint8_t Key_t

Public Member Functions

 CIEEE1212ParserImpl (void)
void FinalConstruct ()
 finalizes the construction of the node
uint8_t * GetBuffer ()
 Gets the buffer; if required (re-)allocates memory.
bool GetDescriptor (uint8_t Key, GENICAM_NAMESPACE::gcstring &Value)
bool GetValue (uint8_t Key, uint64_t &Value)
 ~CIEEE1212ParserImpl (void)

Protected Member Functions

virtual void InternalGet (uint8_t *, int64_t, bool Verify=false, bool IgnoreCache=false)
 Retrieves a pointer to a buffer containing the register's contents.
virtual EInterfaceType InternalGetPrincipalInterfaceType () const
 Implementation of IBase::GetPrincipalInterfaceType()
virtual GENICAM_NAMESPACE::gcstring InternalToString (bool Verify=false, bool IgnoreCache=false)
 Get value of the node as string.
virtual bool IsTerminalNode () const
INode implementation
virtual void SetProperty (CProperty &Property)
virtual bool GetProperty (CNodeDataMap *pNodeDataMap, CPropertyID::EProperty_ID_t PropertyID, CNodeData::PropertyVector_t &PropertyList) const
virtual void SetInvalid (INodePrivate::ESetInvalidMode simMode)
 Initializes the object.

Private Types

typedef std::map< Key_t,
GENICAM_NAMESPACE::gcstring
DescriptorMap_t
 map type for textual descriptors
typedef std::map< Key_t, uint32_t > ValueMap_t

Private Member Functions

bool CheckAddressRange (void *pv) const
bool CheckIdentity () const
bool InsertValues (uint32_t *q, bool lookup, Key_t key)
uint32_t * LocateUnitDirectory (uint32_t *pInstance, Key_t key=0xD1)
bool ParseConfRom (Key_t)
bool ParseDescriptor (uint32_t *p, Key_t key)
bool ParseDirectory (uint32_t *p, Key_t searchkey, Key_t mapkey)
bool ParseRootDirectory (uint32_t *p, Key_t key)
bool ParseUnitDependentDirectory (uint32_t *p, Key_t key)
bool ParseUnitDirectory (uint32_t *p, Key_t key)

Static Private Member Functions

static uint64_t UnitIdentifier (const uint32_t BusInfo[])

Private Attributes

uint32_t m_CharSet
 0 = minimal ascii (default)
DescriptorMap_t m_DescMap
 Map with strings found.
uint64_t m_Identity
 Unit Identifier.
uint32_t m_Language
 0 = English (default)
uint8_t * m_pBuffer
 Buffer the register's content is cached in.
uint32_t * m_pUnitDirectory
 Pointer to the Unit Directory.
uint32_t m_UnitId
 Unit Specifier Id, assuming uniqueness.
ValueMap_t m_ValueMap
 Map with numerical values found.

Detailed Description

Parser for a IEEE1212 compatible configuration rom. Allows readonly access to a single unit.

The Unit property defines which unit is selected in the configuration rom. It defaults to the value for DCAM.

Values and Textual descriptors are cached in separate maps, allowing a fast retrieval. If a change of the connected unit is detected, all caches are invalidated. This class is serves the CTxtkey and CIntKey classes as information provider.

Definition at line 63 of file IEEE1212Parser.h.


Member Typedef Documentation

map type for textual descriptors

Definition at line 118 of file IEEE1212Parser.h.

Definition at line 113 of file IEEE1212Parser.h.

typedef std::map< Key_t, uint32_t > GENAPI_NAMESPACE::CIEEE1212ParserImpl::ValueMap_t [private]

Definition at line 116 of file IEEE1212Parser.h.


Constructor & Destructor Documentation


Member Function Documentation

bool GENAPI_NAMESPACE::CIEEE1212ParserImpl::CheckAddressRange ( void *  pv) const [private]

finalizes the construction of the node

Reimplemented from GENAPI_NAMESPACE::CRegisterImpl.

Gets the buffer; if required (re-)allocates memory.

virtual bool GENAPI_NAMESPACE::CIEEE1212ParserImpl::GetProperty ( CNodeDataMap *  pNodeDataMap,
CPropertyID::EProperty_ID_t  PropertyID,
CNodeData::PropertyVector_t &  PropertyList 
) const [protected, virtual]

Reimplemented from GENAPI_NAMESPACE::CRegisterImpl.

bool GENAPI_NAMESPACE::CIEEE1212ParserImpl::GetValue ( uint8_t  Key,
uint64_t &  Value 
)
bool GENAPI_NAMESPACE::CIEEE1212ParserImpl::InsertValues ( uint32_t *  q,
bool  lookup,
Key_t  key 
) [private]
virtual void GENAPI_NAMESPACE::CIEEE1212ParserImpl::InternalGet ( uint8_t *  ppBuffer,
int64_t  pLength,
bool  Verify = false,
bool  IgnoreCache = false 
) [protected, virtual]

Retrieves a pointer to a buffer containing the register's contents.

Reimplemented from GENAPI_NAMESPACE::CRegisterImpl.

Implementation of IBase::GetPrincipalInterfaceType()

Reimplemented from GENAPI_NAMESPACE::CRegisterImpl.

Definition at line 74 of file IEEE1212Parser.h.

virtual GENICAM_NAMESPACE::gcstring GENAPI_NAMESPACE::CIEEE1212ParserImpl::InternalToString ( bool  Verify = false,
bool  IgnoreCache = false 
) [protected, virtual]

Get value of the node as string.

Reimplemented from GENAPI_NAMESPACE::CRegisterImpl.

virtual bool GENAPI_NAMESPACE::CIEEE1212ParserImpl::IsTerminalNode ( ) const [protected, virtual]

Reimplemented from GENAPI_NAMESPACE::CNodeImpl.

uint32_t* GENAPI_NAMESPACE::CIEEE1212ParserImpl::LocateUnitDirectory ( uint32_t *  pInstance,
Key_t  key = 0xD1 
) [private]
bool GENAPI_NAMESPACE::CIEEE1212ParserImpl::ParseDescriptor ( uint32_t *  p,
Key_t  key 
) [private]
bool GENAPI_NAMESPACE::CIEEE1212ParserImpl::ParseDirectory ( uint32_t *  p,
Key_t  searchkey,
Key_t  mapkey 
) [private]
bool GENAPI_NAMESPACE::CIEEE1212ParserImpl::ParseRootDirectory ( uint32_t *  p,
Key_t  key 
) [private]
bool GENAPI_NAMESPACE::CIEEE1212ParserImpl::ParseUnitDirectory ( uint32_t *  p,
Key_t  key 
) [private]
virtual void GENAPI_NAMESPACE::CIEEE1212ParserImpl::SetInvalid ( INodePrivate::ESetInvalidMode  simMode) [protected, virtual]

Initializes the object.

Reimplemented from GENAPI_NAMESPACE::CRegisterImpl.

virtual void GENAPI_NAMESPACE::CIEEE1212ParserImpl::SetProperty ( CProperty &  Property) [protected, virtual]

Reimplemented from GENAPI_NAMESPACE::CRegisterImpl.

static uint64_t GENAPI_NAMESPACE::CIEEE1212ParserImpl::UnitIdentifier ( const uint32_t  BusInfo[]) [static, private]

Member Data Documentation

0 = minimal ascii (default)

Definition at line 137 of file IEEE1212Parser.h.

Map with strings found.

Definition at line 148 of file IEEE1212Parser.h.

Unit Identifier.

Definition at line 139 of file IEEE1212Parser.h.

0 = English (default)

Definition at line 138 of file IEEE1212Parser.h.

Buffer the register's content is cached in.

Definition at line 151 of file IEEE1212Parser.h.

Pointer to the Unit Directory.

Definition at line 142 of file IEEE1212Parser.h.

Unit Specifier Id, assuming uniqueness.

Definition at line 136 of file IEEE1212Parser.h.

Map with numerical values found.

Definition at line 145 of file IEEE1212Parser.h.


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


rc_genicam_api
Author(s): Heiko Hirschmueller
autogenerated on Thu Jun 6 2019 18:42:48