Brak opisu

ithewei d77d7fd7da update 6 lat temu
etc 9cc79d1e5b update 6 lat temu
.gitignore 9aefc5dc1c update 6 lat temu
Makefile 507d8f4005 update 6 lat temu
README.md 927e170407 update 6 lat temu
base64.c bf45b98c3d update 6 lat temu
base64.h bf45b98c3d update 6 lat temu
h.h bf45b98c3d update 6 lat temu
hbuf.h d77d7fd7da update 6 lat temu
hbytearray.h 112117647a update 6 lat temu
hdef.h d77d7fd7da update 6 lat temu
hendian.h b6d76333c6 platform macro 6 lat temu
herr.c bf45b98c3d update 6 lat temu
herr.h bf45b98c3d update 6 lat temu
hfile.h d77d7fd7da update 6 lat temu
hframe.cpp 112117647a update 6 lat temu
hframe.h d77d7fd7da update 6 lat temu
hgl.h dd85a6f2a0 dos2unix 7 lat temu
hgui.h 3c379bfc6c update 6 lat temu
hlog.cpp bf45b98c3d update 6 lat temu
hlog.h bf45b98c3d update 6 lat temu
hmain.cpp bf45b98c3d update 6 lat temu
hmain.h 9cc79d1e5b update 6 lat temu
hmutex.h aaf2d56467 update 7 lat temu
hobj.h f1ecb8cdd7 add task_queue 6 lat temu
hplatform.h d77d7fd7da update 6 lat temu
hproc.h bf45b98c3d update 6 lat temu
hscope.h 01914a717b update 6 lat temu
hsocket.cpp 7f95f10ec5 add hsocket 6 lat temu
hsocket.h 7f95f10ec5 add hsocket 6 lat temu
hstring.cpp 44833237ea cpplint 7 lat temu
hstring.h 44833237ea cpplint 7 lat temu
hsysinfo.h 7f95f10ec5 add hsocket 6 lat temu
htask.h 660b22362e update 6 lat temu
hthread.h 346680947e fix gettid 6 lat temu
hthreadpool.h dd85a6f2a0 dos2unix 7 lat temu
htime.c bf45b98c3d update 6 lat temu
htime.h bf45b98c3d update 6 lat temu
hvar.h 44833237ea cpplint 7 lat temu
hversion.h 55871b9b03 update 6 lat temu
ifconfig.cpp bf45b98c3d update 6 lat temu
ifconfig.h bf45b98c3d update 6 lat temu
iniparser.cpp bf45b98c3d update 6 lat temu
iniparser.h dd85a6f2a0 dos2unix 7 lat temu
main.cpp.tmpl bf45b98c3d update 6 lat temu
singleton.h 44833237ea cpplint 7 lat temu
task_queue.h f1ecb8cdd7 add task_queue 6 lat temu
win32_getopt.h 756752be2e update 7 lat temu

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="."