Files
LinuxMotion/MotionLib/Src/Axis.cpp
T
chen 818041201b fix: 修复 Types.h 缺少头文件保护导致的重复定义错误
- Types.h: 添加 #pragma once 防止重复包含
- CMakeLists.txt: C++ 标准 17 → 20
- App/CMakeLists.txt: 移除重复的 C++11 覆盖,统一继承根 CMake 标准
- Axis.cpp: 添加 #include <string> 显式包含
2026-07-03 03:52:40 +00:00

21 lines
334 B
C++

/**
* @file Axis.cpp
* @author
* @brief
* @version 0.1
* @date 2026-07-02
*
* @copyright Copyright (c) 2026
*
*/
#include <string>
#include "Types.h"
#include "Axis.h"
namespace plcopen {
Axis::Axis(UINT axisNo, std::string name) {
ref_.axisNo = axisNo;
ref_.axisName = std::move(name);
ref_.axis = this;
}
}