Skip to main content
aboutsummaryrefslogtreecommitdiffstats
blob: b75e84e95d4f60cff9b5cc26ff0ed62426575169 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
/*******************************************************************************
 * Copyright (c) 2016 protos software gmbh (http://www.protos.de).
 * All rights reserved. This program and the accompanying materials
 * are made available under the terms of the Eclipse Public License v1.0
 * which accompanies this distribution, and is available at
 * http://www.eclipse.org/legal/epl-v10.html
 *
 * CONTRIBUTORS:
 * 		Jan Belle (initial contribution)
 *
 *******************************************************************************/

#include "common/debugging/MSCFunctionObject.h"
#include "common/debugging/DebuggingService.h"

using namespace etRuntime;

MSCFunctionObject::MSCFunctionObject(const String& objectName, const String& message) :
		m_syncLogger(DebuggingService::getInstance().getSyncLogger()),
		m_targetName(objectName),
		m_sourceName(m_syncLogger.getObjectName().c_str())
{
	m_syncLogger.setObjectName(m_targetName.c_str());
	m_syncLogger.addMessageSyncCall(m_sourceName.c_str(), m_targetName.c_str(), message.c_str());
}

MSCFunctionObject::~MSCFunctionObject() {
	m_syncLogger.setObjectName(m_sourceName.c_str());
	m_syncLogger.addMessageSyncReturn(m_sourceName.c_str(), m_targetName.c_str(), "return");
}

Back to the top