Nessuna descrizione

ithewei 6d2a3e35d4 add shift_logfile 6 anni fa
etc 9cc79d1e5b update 6 anni fa
.gitignore 9aefc5dc1c update 6 anni fa
Makefile 507d8f4005 update 6 anni fa
README.md 927e170407 update 6 anni fa
base64.cpp c74df3b33d first commit 7 anni fa
base64.h c74df3b33d first commit 7 anni fa
h.h b6d76333c6 platform macro 6 anni fa
hbuf.h dd85a6f2a0 dos2unix 7 anni fa
hbytearray.h 44833237ea cpplint 7 anni fa
hdef.h 85ac09c357 add LIMIT 6 anni fa
hendian.h b6d76333c6 platform macro 6 anni fa
herr.cpp f1ecb8cdd7 add task_queue 6 anni fa
herr.h 660b22362e update 6 anni fa
hfile.h 55871b9b03 update 6 anni fa
hframe.cpp b6d76333c6 platform macro 6 anni fa
hframe.h 2f6c0348f9 update 7 anni fa
hgl.h dd85a6f2a0 dos2unix 7 anni fa
hgui.h 3c379bfc6c update 6 anni fa
hifconf.cpp f1ecb8cdd7 add task_queue 6 anni fa
hifconf.h 11a7033964 add ifconfig 6 anni fa
hlog.cpp 6d2a3e35d4 add shift_logfile 6 anni fa
hlog.h aa94611993 add log_remain_days 6 anni fa
hmain.cpp 9cc79d1e5b update 6 anni fa
hmain.h 9cc79d1e5b update 6 anni fa
hmutex.h aaf2d56467 update 7 anni fa
hobj.h f1ecb8cdd7 add task_queue 6 anni fa
hplatform.h 9cc79d1e5b update 6 anni fa
hproc.h 9cc79d1e5b update 6 anni fa
hscope.h 01914a717b update 6 anni fa
hstring.cpp 44833237ea cpplint 7 anni fa
hstring.h 44833237ea cpplint 7 anni fa
hsysinfo.h b6d76333c6 platform macro 6 anni fa
htask.h 660b22362e update 6 anni fa
hthread.h 346680947e fix gettid 6 anni fa
hthreadpool.h dd85a6f2a0 dos2unix 7 anni fa
htime.cpp 413fe7318e update 6 anni fa
htime.h 3e790590b8 update 6 anni fa
hvar.h 44833237ea cpplint 7 anni fa
hversion.h 55871b9b03 update 6 anni fa
iniparser.cpp 9b948f676c update 7 anni fa
iniparser.h dd85a6f2a0 dos2unix 7 anni fa
main.cpp.tmpl 9cc79d1e5b update 6 anni fa
singleton.h 44833237ea cpplint 7 anni fa
task_queue.h f1ecb8cdd7 add task_queue 6 anni fa
win32_getopt.h 756752be2e update 7 anni fa

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