Extends the GenApi::IRegister interface with convenience methods.
More...
#include <pylon/ArrayParameter.h>
Extends the GenApi::IRegister interface with convenience methods.
virtual void GenApi::IValue::FromString |
( |
const GenICam::gcstring & |
ValueStr, |
|
|
bool |
Verify = true |
|
) |
| |
|
pure virtualinherited |
Set content of the node as string.
- Parameters
-
ValueStr | The value to set |
Verify | Enables AccessMode and Range verification (default = true) |
Implemented in Pylon::CParameter.
virtual void GenApi::IRegister::Get |
( |
uint8_t * |
pBuffer, |
|
|
int64_t |
Length, |
|
|
bool |
Verify = false , |
|
|
bool |
IgnoreCache = false |
|
) |
| |
|
pure virtualinherited |
Fills a buffer with the register's contents.
- Parameters
-
pBuffer | The buffer receiving the data to read |
Length | The number of bytes to retrieve |
Verify | Enables Range verification (default = false). The AccessMode is always checked |
IgnoreCache | If true the value is read ignoring any caches (default = false) |
Implemented in Pylon::CArrayParameter.
Gets the parameter information.
- Parameters
-
[in] | info | The type information to return. |
- Returns
- Returns the parameter information.
- Thread Safety:
- The method accesses the parameter multiple times. These accesses are not synchronized by a lock.
- Error Safety:
- Throws an exception if no node is attached. Can throw exceptions if the retrieval of the information fails.
Implemented in Pylon::CParameter.
Gets the parameter information if the parameter is attached to a node.
See IsValid().
- Parameters
-
[in] | info | The type information to return. Otherwise returns the default information. This method is useful if you want to display parameter information and handle the case that some parameters are not available for a device. |
- Returns
- Returns the parameter information if the parameter is attached to a node. Otherwise returns the default information.
- Parameters
-
[in] | defaultInfo | The default information returned if the parameter is not attached to a node. |
- Thread Safety:
- The method accesses the parameter multiple times. These accesses are not synchronized by a lock.
- Error Safety:
- Can throw exceptions if the retrieval of the information fails.
Implemented in Pylon::CParameter.
virtual bool Pylon::IValueEx::IsReadable |
( |
| ) |
const |
|
pure virtualinherited |
Indicates whether the parameter is readable.
- Error Safety:
- Does not throw C++ exceptions.
- Returns
- Returns true if the parameter is readable.
Implemented in Pylon::CParameter.
virtual bool Pylon::IValueEx::IsValid |
( |
| ) |
const |
|
pure virtualinherited |
virtual bool Pylon::IValueEx::IsWritable |
( |
| ) |
const |
|
pure virtualinherited |
Indicates whether the parameter is writable.
- Error Safety:
- Does not throw C++ exceptions.
- Returns
- Returns true if the parameter is writable.
Implemented in Pylon::CParameter.
virtual void GenApi::IRegister::Set |
( |
const uint8_t * |
pBuffer, |
|
|
int64_t |
Length, |
|
|
bool |
Verify = true |
|
) |
| |
|
pure virtualinherited |
Set the register's contents.
- Parameters
-
pBuffer | The buffer containing the data to set |
Length | The number of bytes in pBuffer |
Verify | Enables AccessMode and Range verification (default = true) |
Implemented in Pylon::CArrayParameter.
virtual GenICam::gcstring GenApi::IValue::ToString |
( |
bool |
Verify = false , |
|
|
bool |
IgnoreCache = false |
|
) |
| |
|
pure virtualinherited |
Get content of the node as string.
- Parameters
-
Verify | Enables Range verification (default = false). The AccessMode is always checked |
IgnoreCache | If true the value is read ignoring any caches (default = false) |
- Returns
- The value read
Implemented in Pylon::CParameter.
virtual String_t Pylon::IValueEx::ToStringOrDefault |
( |
const String_t & |
defaultValue | ) |
|
|
pure virtualinherited |
Gets the parameter value as string if the parameter is readable.
Otherwise returns the default value.
- Returns
- Returns the parameter value if the parameter is readable. Otherwise returns the default value.
- Parameters
-
[in] | defaultValue | The default value returned if the parameter is not readable. |
- Thread Safety:
- The method accesses the parameter multiple times. These accesses are not synchronized by a lock.
- Error Safety:
- Can throw exceptions if reading the value fails.
Implemented in Pylon::CParameter.
The documentation for this struct was generated from the following file: