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

14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37
#include "VAMatlabConnection.h"
#include "VAMatlabTracking.h"

#include <VANetClient.h>
#include <VACore.h>

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

CVAMatlabConnection::~CVAMatlabConnection()
{
	if( pVAMatlabTracker->IsConnected() )
		pVAMatlabTracker->Uninitialize();

	delete pVAMatlabTracker;
	pVAMatlabTracker = NULL;

	delete pClient;
	pClient = NULL;
}