Sin descripción

ithewei 2ed649a2be update hace 6 años
etc 11ee1aeb6e update hace 6 años
.gitignore 9aefc5dc1c update hace 6 años
Makefile 2ed649a2be 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 927e170407 update hace 6 años
hbuf.h dd85a6f2a0 dos2unix hace 7 años
hbytearray.h 44833237ea cpplint hace 7 años
hdef.h 0ffba0976a update hace 6 años
hendian.h a5178a4f68 update hace 7 años
herr.cpp dd85a6f2a0 dos2unix hace 7 años
herr.h 6e182c79bb update hace 6 años
hfile.h 0ef2847ff3 readall(string&) hace 6 años
hframe.cpp 2f6c0348f9 update hace 7 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 11a7033964 add ifconfig 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 d191a26e51 update hace 6 años
hmain.h 11ee1aeb6e update hace 6 años
hmutex.h aaf2d56467 update hace 7 años
hobj.h 44833237ea cpplint hace 7 años
hplatform.h 2ed649a2be update hace 6 años
hproc.h 2ed649a2be update hace 6 años
hscope.h 44833237ea cpplint hace 7 años
hstring.cpp 44833237ea cpplint hace 7 años
hstring.h 44833237ea cpplint hace 7 años
hsysinfo.h afaec0ff37 get_meminfo hace 6 años
hthread.h 2ed649a2be update hace 6 años
hthreadpool.h dd85a6f2a0 dos2unix hace 7 años
htime.cpp 35ed758e51 update hace 7 años
htime.h f7f867362a _MSC_VER => _WIN32 hace 7 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 2ed649a2be update 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="."