VAMatlabConnection.cpp 1.02 KB
Newer Older
1 2 3 4 5 6
/*
 *  --------------------------------------------------------------------------------------------
 *
 *    VVV        VVV A           Virtual Acoustics (VA) | http://www.virtualacoustics.org
 *     VVV      VVV AAA          Licensed under the Apache License, Version 2.0
 *      VVV    VVV   AAA
7
 *       VVV  VVV     AAA        Copyright 2015-2018
8 9 10 11 12 13
 *        VVVVVV       AAA       Institute of Technical Acoustics (ITA)
 *         VVVV         AAA      RWTH Aachen University
 *
 *  --------------------------------------------------------------------------------------------
 */

14 15 16
#include "VAMatlabConnection.h"
#include "VAMatlabTracking.h"

17 18
#include <VA.h>
#include <VANet.h>
19 20 21 22 23 24 25 26 27 28

CVAMatlabConnection::CVAMatlabConnection()
{
	pClient = IVANetClient::Create();
	pCoreInterface = NULL;
	pVAMatlabTracker = new CVAMatlabTracker;
}

CVAMatlabConnection::~CVAMatlabConnection()
{
Dipl.-Ing. Jonas Stienen's avatar
Dipl.-Ing. Jonas Stienen committed
29
	if( pVAMatlabTracker->IsConnected() )
30 31 32 33 34 35 36 37
		pVAMatlabTracker->Uninitialize();

	delete pVAMatlabTracker;
	pVAMatlabTracker = NULL;

	delete pClient;
	pClient = NULL;
}