Skip to content
体验新版
项目
组织
正在加载...
登录
切换导航
打开侧边栏
小代码2016
tinyxml2-study
提交
ace7f1ef
tinyxml2-study
项目概览
小代码2016
/
tinyxml2-study
通知
1
Star
0
Fork
0
代码
文件
提交
分支
Tags
贡献者
分支图
Diff
Issue
0
列表
看板
标记
里程碑
合并请求
0
DevOps
流水线
流水线任务
计划
Wiki
1
Wiki
分析
仓库
DevOps
项目成员
Pages
tinyxml2-study
项目概览
项目概览
详情
发布
仓库
仓库
文件
提交
分支
标签
贡献者
分支图
比较
Issue
0
Issue
0
列表
看板
标记
里程碑
合并请求
0
合并请求
0
Pages
DevOps
DevOps
流水线
流水线任务
计划
分析
分析
仓库分析
DevOps
Wiki
1
Wiki
成员
成员
收起侧边栏
关闭侧边栏
动态
分支图
创建新Issue
流水线任务
提交
Issue看板
前往新版Gitcode,体验更适合开发者的 AI 搜索 >>
提交
ace7f1ef
编写于
2月 02, 2023
作者:
小代码2016
浏览文件
操作
浏览文件
下载
电子邮件补丁
差异文件
khl_xml: 版本号
上级
19e7aab8
变更
8
隐藏空白更改
内联
并排
Showing
8 changed file
with
95 addition
and
3 deletion
+95
-3
.vscode/settings.json
.vscode/settings.json
+4
-2
CMakeLists.txt
CMakeLists.txt
+3
-1
dox/note/tinyxml2.plantuml
dox/note/tinyxml2.plantuml
+9
-0
include/khl_xml/khl_xml.h
include/khl_xml/khl_xml.h
+1
-0
include/khl_xml/khl_xml_common.h
include/khl_xml/khl_xml_common.h
+6
-0
include/khl_xml/khl_xml_version.h
include/khl_xml/khl_xml_version.h
+29
-0
include/khl_xml/khl_xml_version.h.in
include/khl_xml/khl_xml_version.h.in
+29
-0
test/test_khl_xml.cpp
test/test_khl_xml.cpp
+14
-0
未找到文件。
.vscode/settings.json
浏览文件 @
ace7f1ef
...
...
@@ -45,6 +45,8 @@
"xstring"
:
"cpp"
,
"xtr1common"
:
"cpp"
,
"xutility"
:
"cpp"
,
"format"
:
"cpp"
}
"format"
:
"cpp"
,
"*.in"
:
"plaintext"
},
"editor.rulers"
:
[
120
]
}
\ No newline at end of file
CMakeLists.txt
浏览文件 @
ace7f1ef
# 该项目所需 cmake 的最小版本, 如果 cmake 版本小于设置的版本, cmake 将停止处理并报错
cmake_minimum_required
(
VERSION 3.25
)
project
(
khl_xml CXX
)
project
(
khl_xml
VERSION 1.0.0 LANGUAGES
CXX
)
set
(
CMAKE_CXX_STANDARD 14
)
set
(
CMAKE_CXX_STANDARD_REQUIRED True
)
...
...
@@ -33,6 +33,8 @@ endif()
# 生成配置文件
configure_file
(
${
CMAKE_SOURCE_DIR
}
/include/khl_xml_config/khl_xml_config.hpp.in
${
CMAKE_SOURCE_DIR
}
/include/khl_xml_config/khl_xml_config.hpp
)
# 版本号文件
configure_file
(
${
CMAKE_SOURCE_DIR
}
/include/khl_xml/khl_xml_version.h.in
${
CMAKE_SOURCE_DIR
}
/include/khl_xml/khl_xml_version.h
)
# khl_xml 库名称
set
(
khl_xml_lib_name khl_xml
)
...
...
dox/note/tinyxml2.plantuml
0 → 100644
浏览文件 @
ace7f1ef
@startuml tinyxml2
class Person
class Student
Person <|-- Student
@enduml
include/khl_xml/khl_xml.h
浏览文件 @
ace7f1ef
#ifndef _KHL_MATH_H_
#define _KHL_MATH_H_
#include "khl_xml/khl_xml_version.h"
#include "khl_xml/khl_xml_node.h"
// C/C++ 跨平台时预处理判断平台环境
...
...
include/khl_xml/khl_xml_common.h
浏览文件 @
ace7f1ef
...
...
@@ -31,4 +31,10 @@
#else
# error "Unknown compiler"
#endif
#endif // _KHL_XML_COMMON_H_
include/khl_xml/khl_xml_version.h
0 → 100644
浏览文件 @
ace7f1ef
#ifndef _KHL_XML_VERSION_H_
#define _KHL_XML_VERSION_H_
#include <string>
#define KHL_XML_MAJOR_VERSION 1
#define KHL_XML_MINOR_VERSION 0
#define KHL_XML_PATCH_VERSION 0
constexpr
int
khl_xml_major_version
=
1
;
constexpr
int
khl_xml_minor_version
=
0
;
constexpr
int
khl_xml_patch_version
=
0
;
namespace
khl
{
namespace
xml
{
inline
std
::
string
getKhlXmlVersio
()
{
return
std
::
to_string
(
khl_xml_major_version
)
+
"."
+
std
::
to_string
(
khl_xml_minor_version
)
+
"."
+
std
::
to_string
(
khl_xml_patch_version
)
;
}
}
}
#endif // _KHL_XML_VERSION_H_
include/khl_xml/khl_xml_version.h.in
0 → 100644
浏览文件 @
ace7f1ef
#ifndef _KHL_XML_VERSION_H_
#define _KHL_XML_VERSION_H_
#include <string>
#define KHL_XML_MAJOR_VERSION @khl_xml_VERSION_MAJOR@
#define KHL_XML_MINOR_VERSION @khl_xml_VERSION_MINOR@
#define KHL_XML_PATCH_VERSION @khl_xml_VERSION_PATCH@
constexpr int khl_xml_major_version = @khl_xml_VERSION_MAJOR@;
constexpr int khl_xml_minor_version = @khl_xml_VERSION_MINOR@;
constexpr int khl_xml_patch_version = @khl_xml_VERSION_PATCH@;
namespace khl
{
namespace xml
{
inline std::string getKhlXmlVersio()
{
return std::to_string(khl_xml_major_version)
+ "."
+ std::to_string(khl_xml_minor_version)
+ "."
+ std::to_string(khl_xml_patch_version) ;
}
}
}
#endif // _KHL_XML_VERSION_H_
\ No newline at end of file
test/test_khl_xml.cpp
0 → 100644
浏览文件 @
ace7f1ef
#include "doctest/doctest.h"
#include "spdlog/spdlog.h"
#include "khl_xml/khl_xml.h"
#include "khl_xml_config/khl_xml_config.hpp"
TEST_CASE
(
"test_khl_xml"
)
{
spdlog
::
info
(
"versino: {}"
,
khl
::
xml
::
getKhlXmlVersio
());
CHECK
(
true
);
}
\ No newline at end of file
编辑
预览
Markdown
is supported
0%
请重试
或
添加新附件
.
添加附件
取消
You are about to add
0
people
to the discussion. Proceed with caution.
先完成此消息的编辑!
取消
想要评论请
注册
或
登录