blob: 29c5ba9d7f8d3bc8a20caf2adb95f3b8896ba77a [file] [log] [blame]
/**
********************************************************************************
* Copyright (c) 2017 Robert Bosch GmbH and others.
*
* This program and the accompanying materials are made
* available under the terms of the Eclipse Public License 2.0
* which is available at https://www.eclipse.org/legal/epl-2.0/
*
* SPDX-License-Identifier: EPL-2.0
*
* Contributors:
* Robert Bosch GmbH - initial API and implementation
********************************************************************************
*/
#ifndef GLOBAL_VARIABLE_ACCESS_H
#define GLOBAL_VARIABLE_ACCESS_H
#include "GlobalVariable.h"
#include <string>
class GlobalVariableAccess
{
private:
GlobalVariable* globalVariable;
std::string accessType;
unsigned line;
unsigned col;
unsigned basicBlockID;
public:
GlobalVariableAccess(GlobalVariable* globalVariable, std::string accessType, unsigned line, unsigned col, unsigned basicBlockID);
GlobalVariable* getGlobalVariable();
std::string getAccessType();
unsigned getLine();
unsigned getColumn();
unsigned getBasicBlockID();
void setGlobalVariable(GlobalVariable* gA);
};
#endif /* GLOBAL_VARIABLE_ACCESS_H */