You cannot select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
41 lines
931 B
C++
41 lines
931 B
C++
#pragma once
|
|
|
|
#include <string>
|
|
#include <vector>
|
|
|
|
#include "nlohmann/json.hpp"
|
|
|
|
using stMotorPositionValue = struct _stMotorPositionValue
|
|
{
|
|
int MotorPositionValueId;
|
|
int PackageInfoId;
|
|
std::string ModuleName;
|
|
std::string MotorName;
|
|
std::string PositionName;
|
|
double CalculatedValue;
|
|
double OffsetValue;
|
|
double SpeedCutOffValue;
|
|
|
|
NLOHMANN_DEFINE_TYPE_INTRUSIVE(_stMotorPositionValue, MotorPositionValueId, ModuleName, MotorName, PositionName, CalculatedValue, OffsetValue, SpeedCutOffValue)
|
|
|
|
};
|
|
|
|
using stModuleMotor = struct _stModuleMotor {
|
|
std::string ModuleName;
|
|
std::vector<stMotorPositionValue> MotorPositionValues;
|
|
|
|
NLOHMANN_DEFINE_TYPE_INTRUSIVE(_stModuleMotor, ModuleName, MotorPositionValues)
|
|
|
|
};
|
|
|
|
using stRuntimeMotorPosition = struct _stRuntimeMotorPosition
|
|
{
|
|
std::string PackageName;
|
|
std::vector<stModuleMotor> Modules;
|
|
|
|
NLOHMANN_DEFINE_TYPE_INTRUSIVE(_stRuntimeMotorPosition, PackageName, Modules)
|
|
|
|
};
|
|
|
|
|