khl_xml 1.0.0
载入中...
搜索中...
未找到
khl_xml.h
1#ifndef _KHL_XML_H_
2#define _KHL_XML_H_
3
4#include "khl_xml/khl_xml_version.h"
8
9// C/C++ 跨平台时预处理判断平台环境
10// 参考: https://www.cnblogs.com/Forgenvueory/p/12757271.html
11#if defined(WIN32) || defined(_WIN32) || defined(__WIN32__) || defined(__NT__)
12 #ifdef _WIN64
13 #ifdef _DEBUG
14 #pragma comment(lib,__FILE__"\\..\\..\\..\\lib\\khl_xmld.lib")
15 #else
16 #pragma comment(lib,__FILE__"\\..\\..\\..\\lib\\khl_xml.lib")
17 #endif
18 #else
19 //define something for Windows (32-bit only)
20 #endif
21#elif __APPLE__
22 #include <TargetConditionals.h>
23 #if TARGET_IPHONE_SIMULATOR
24 // iOS Simulator
25 #elif TARGET_OS_IPHONE
26 // iOS device
27 #elif TARGET_OS_MAC
28 // Other kinds of Mac OS
29 #else
30 # error "Unknown Apple platform"
31 #endif
32#elif __linux__
33 // linux
34#elif __unix__ // all unices not caught above
35 // Unix
36#elif defined(_POSIX_VERSION)
37 // POSIX
38#else
39# error "Unknown compiler"
40#endif
41#endif // _KHL_XML_H_
xml 文档类
所有 xml 节点的基类
通用函数