31 lines
950 B
C++
31 lines
950 B
C++
/***************************************************************************
|
|
* Copyright (c) 2023 Ondsel, Inc. *
|
|
* *
|
|
* This file is part of OndselSolver. *
|
|
* *
|
|
* See LICENSE file for details about copyright. *
|
|
***************************************************************************/
|
|
|
|
#pragma once
|
|
|
|
#include <string>
|
|
|
|
#include "UserFunction.h"
|
|
|
|
namespace MbD {
|
|
class Units;
|
|
|
|
class BasicUserFunction : public UserFunction
|
|
{
|
|
//funcText myUnit units
|
|
public:
|
|
BasicUserFunction(const std::string& expression, double myUnt);
|
|
void initialize();
|
|
|
|
std::string funcText;
|
|
double myUnit;
|
|
std::shared_ptr<Units> units;
|
|
};
|
|
}
|
|
|