Base profile class.
More...
#include <profileBase.h>
|
| ProfileBase (ParserManager *parserManager, const NiFpga_Session &session, const PROFILE_ID &id) |
| Allows the user to access terminals for read/write operations. More...
|
|
template<typename T > |
T | getTerminal () const |
| Returns the specified terminal if it is present in the current profile. More...
|
|
|
template<typename T > |
void | addTerminal (T terminal) |
| Adds a terminal to the profile. More...
|
|
|
std::unordered_map< std::type_index, std::unique_ptr< TerminalsBase > > | m_mapTerminals |
| Associates a Terminal type to the actual instance of the terminal.
|
|
Base profile class.
Allows the user to access terminals for read/write operations. If a terminal group is not in the profile, an irio::errors::TerminalNotImplementedError exception will be thrown.
Definition at line 22 of file profileBase.h.
◆ ProfileBase()
irio::ProfileBase::ProfileBase |
( |
ParserManager * |
parserManager, |
|
|
const NiFpga_Session & |
session, |
|
|
const PROFILE_ID & |
id |
|
) |
| |
|
explicit |
Allows the user to access terminals for read/write operations.
- Parameters
-
parserManager | Pointer to class managing parsing the bitfile and finding its resources |
session | NiFpga_Session to be used in NiFpga related functions |
id | Identification of the profile type |
◆ addTerminal()
template<typename T >
void irio::ProfileBase::addTerminal |
( |
T |
terminal | ) |
|
|
protected |
Adds a terminal to the profile.
- Parameters
-
terminal | The terminal to be added. |
- Template Parameters
-
T | The type of the terminal. |
◆ getTerminal()
template<typename T >
T irio::ProfileBase::getTerminal |
( |
| ) |
const |
Returns the specified terminal if it is present in the current profile.
- Exceptions
-
- Template Parameters
-
- Returns
- Requested terminals
The documentation for this class was generated from the following file: