Nenhuma descrição

ithewei 347978426e update 6 anos atrás
etc 11ee1aeb6e update 6 anos atrás
.gitignore 9aefc5dc1c update 6 anos atrás
Makefile 347978426e update 6 anos atrás
README.md 927e170407 update 6 anos atrás
base64.cpp c74df3b33d first commit 7 anos atrás
base64.h c74df3b33d first commit 7 anos atrás
h.h b6d76333c6 platform macro 6 anos atrás
hbuf.h dd85a6f2a0 dos2unix 7 anos atrás
hbytearray.h 44833237ea cpplint 7 anos atrás
hdef.h b6d76333c6 platform macro 6 anos atrás
hendian.h b6d76333c6 platform macro 6 anos atrás
herr.cpp 346680947e fix gettid 6 anos atrás
herr.h 6e182c79bb update 6 anos atrás
hfile.h 0ef2847ff3 readall(string&) 6 anos atrás
hframe.cpp b6d76333c6 platform macro 6 anos atrás
hframe.h 2f6c0348f9 update 7 anos atrás
hgl.h dd85a6f2a0 dos2unix 7 anos atrás
hgui.h dd85a6f2a0 dos2unix 7 anos atrás
hifconf.cpp 346680947e fix gettid 6 anos atrás
hifconf.h 11a7033964 add ifconfig 6 anos atrás
hlog.cpp dd85a6f2a0 dos2unix 7 anos atrás
hlog.h dd731e1f96 update 6 anos atrás
hmain.cpp ad7eb9a306 update 6 anos atrás
hmain.h b6d76333c6 platform macro 6 anos atrás
hmutex.h aaf2d56467 update 7 anos atrás
hobj.h 44833237ea cpplint 7 anos atrás
hplatform.h 346680947e fix gettid 6 anos atrás
hproc.h 2c721aa964 OS_MACRO 6 anos atrás
hscope.h 44833237ea cpplint 7 anos atrás
hstring.cpp 44833237ea cpplint 7 anos atrás
hstring.h 44833237ea cpplint 7 anos atrás
hsysinfo.h b6d76333c6 platform macro 6 anos atrás
hthread.h 346680947e fix gettid 6 anos atrás
hthreadpool.h dd85a6f2a0 dos2unix 7 anos atrás
htime.cpp b6d76333c6 platform macro 6 anos atrás
htime.h b6d76333c6 platform macro 6 anos atrás
hvar.h 44833237ea cpplint 7 anos atrás
hversion.h 44833237ea cpplint 7 anos atrás
iniparser.cpp 9b948f676c update 7 anos atrás
iniparser.h dd85a6f2a0 dos2unix 7 anos atrás
main.cpp.tmpl b6d76333c6 platform macro 6 anos atrás
singleton.h 44833237ea cpplint 7 anos atrás
win32_getopt.h 756752be2e update 7 anos atrás

README.md

Intro

hw 是一套跨平台c++工具集,类名以H开头

platform

  • gcc
  • mingw
  • msvc

required

  • c++11

Module

  • h.h:总头文件
  • hversion.h: 版本
  • hdef.h: 宏定义
  • hplatform.h: 平台相关
  • hendian.h: 大小端
  • hlog.h: 日志
  • herr.h: 错误码
  • htime.h: 时间
  • hstring.h: 字符串
  • hfile.h: 文件类
  • hthread.h:线程
  • hthreadpool.h:线程池
  • hmutex.h:同步锁
  • hobj.h: 对象基类
  • hvar.h: var变量
  • hbuf.h: 缓存类
  • hscope.h: 作用域RAII机制
  • hmain.h: main_ctx: arg env
  • hproc.h: 子进程/线程类
  • hsysinfo.h: 系统信息
  • hifconf.h: ifconfig实现
  • singleton.h: 单例模式
  • iniparser.h: ini解析

other

  • Makefile: 通用Makefile模板
  • main.cpp.tmpl: 通用main.cpp模板

BUILD

mv main.cpp.tmpl main.cpp
make DIRS="."