Sin descripción

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

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