- Types.h: 添加 #pragma once 防止重复包含 - CMakeLists.txt: C++ 标准 17 → 20 - App/CMakeLists.txt: 移除重复的 C++11 覆盖,统一继承根 CMake 标准 - Axis.cpp: 添加 #include <string> 显式包含
21 lines
334 B
C++
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;
|
|
}
|
|
} |