THM1176InstrumentManager  1.0
Qt Object abstraction for Metrolab THM1176
THM1176TestUtilities.cpp File Reference

Test THM1176 API: Utility functions. More...

#include "THM1176TestUtilities.h"
#include "Helpers.h"
#include "Exception.h"
Include dependency graph for THM1176TestUtilities.cpp:

Go to the source code of this file.

Functions

bool FetchTHM1176Resource (THM1176_TEST_RESOURCE_MANAGER_CLASS &rResourceManager, tResourceName &rTHM1176)
 Open a connection to the Resource Manager and find a THM1176. More...
 
bool ConnectToTHM1176 (THM1176_TEST_RESOURCE_MANAGER_CLASS *&rpResourceManager, CTHM1176Instrument< THM1176_TEST_INSTRUMENT_CLASS, THM1176_TEST_RESOURCE_MANAGER_CLASS > *&rpTHM1176)
 Connect to a THM1176. More...
 

Detailed Description

Test THM1176 API: Utility functions.

Definition in file THM1176TestUtilities.cpp.

Function Documentation

◆ ConnectToTHM1176()

bool ConnectToTHM1176 ( THM1176_TEST_RESOURCE_MANAGER_CLASS *&  rpResourceManager,
CTHM1176Instrument< THM1176_TEST_INSTRUMENT_CLASS, THM1176_TEST_RESOURCE_MANAGER_CLASS > *&  rpTHM1176 
)

Connect to a THM1176.

Start Resource Manager, call FetchTHM1176Resource, create THM1176 object, and connect to THM1176.

Parameters
[out]rpResourceManagerPointer to Resource Manager object.
[out]rpTHM1176Pointer to THM1176 object.
Returns
True if successful.

Definition at line 41 of file THM1176TestUtilities.cpp.

◆ FetchTHM1176Resource()

bool FetchTHM1176Resource ( THM1176_TEST_RESOURCE_MANAGER_CLASS &  rResourceManager,
tResourceName rTHM1176 
)

Open a connection to the Resource Manager and find a THM1176.

Parameters
[in]rResourceManagerResource Manager
[out]rTHM1176Resource name of first THM1176 found
Returns
True if successful.

Definition at line 15 of file THM1176TestUtilities.cpp.