Pleora Technologies Inc. eBUS SDK v6.2.8.5877 API



IPvRegisterInfo Class Referenceabstract

Interface to access basic information about a PvSoftDeviceGEV register. More...

Public Member Functions

virtual ~IPvRegisterInfo ()
 Virtual destructor.
 
virtual const PvStringGetName ()=0
 Returns the register name. More...
 
virtual uint32_t GetAddress () const =0
 Returns the register address. More...
 
virtual size_t GetLength () const =0
 Returns the length of the register, in bytes. More...
 
virtual const void * GetContext () const =0
 Returns the contextual pointer provided at register creation. More...
 
virtual bool IsWritable () const =0
 Indicates whether the register is writable. More...
 
virtual bool IsReadable () const =0
 Indicates whether the register is readable. More...
 

Detailed Description

Interface to access basic information about a PvSoftDeviceGEV register.

This interface can be used to query basic information about a register.

This class cannot be instantiated and there is no use case where you would need to implement this interface.

Member Function Documentation

◆ GetAddress()

uint32_t IPvRegisterInfo::GetAddress ( ) const
pure virtual

Returns the register address.

Returns
Register address.

◆ GetContext()

void * IPvRegisterInfo::GetContext ( ) const
pure virtual

Returns the contextual pointer provided at register creation.

Returns
Const contextual pointer.
Contextual pointer.

◆ GetLength()

size_t IPvRegisterInfo::GetLength ( ) const
pure virtual

Returns the length of the register, in bytes.

Returns
Register length.

◆ GetName()

PvString IPvRegisterInfo::GetName ( )
pure virtual

Returns the register name.

All PvSoftDeviceGEV registers are named. This method allows the user to retrieve this name.

The GigE Vision standard does not require that you name your registers. The name is used internally to provide contextual information about the register in logs or user interfaces.

Returns
Register name.

◆ IsReadable()

bool IPvRegisterInfo::IsReadable ( ) const
pure virtual

Indicates whether the register is readable.

Returns
True if the register is readable.

◆ IsWritable()

bool IPvRegisterInfo::IsWritable ( ) const
pure virtual

Indicates whether the register is writable.

Whether the register is writable (or not) is only enforced when the register is accessed from the GigE Vision controller.

Using the internal APIs it is possible to write to read-only registers. However, take care when doing so: If you do not fully control the custom register, it could cause issues (and is not recommended).

Returns
True if the register is writable.

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

Copyright (c) 2002-2021 Pleora Technologies Inc.
www.pleora.com