-
René Paris authoredRené Paris authored
Code owners
Assign users and groups as approvers for specific file changes. Learn more.
ParameterModifyAction_base.h 1.14 KiB
/********************************************************************************
* Copyright (c) 2021-2023 Bayerische Motoren Werke Aktiengesellschaft (BMW AG)
* Copyright (c) 2023 Ansys, Inc.
*
* This program and the accompanying materials are made available under the
* terms of the Eclipse Public License 2.0 which is available at
* http://www.eclipse.org/legal/epl-2.0.
*
* SPDX-License-Identifier: EPL-2.0
********************************************************************************/
#pragma once
#include <MantleAPI/Execution/i_environment.h>
#include "Conversion/OscToMantle/ConvertScenarioModifyRule.h"
namespace OpenScenarioEngine::v1_2
{
class ParameterModifyActionBase
{
public:
struct Values
{
OPENSCENARIO::ModifyRule rule;
};
struct Interfaces
{
std::shared_ptr<mantle_api::IEnvironment> environment;
};
ParameterModifyActionBase(Values values, Interfaces interfaces)
: values{std::move(values)},
mantle{std::move(interfaces)} {};
virtual ~ParameterModifyActionBase() = default;
virtual bool Step() = 0;
protected:
Values values;
Interfaces mantle;
};
} // namespace OpenScenarioEngine::v1_2