Sem descrição

ithewei 7f95f10ec5 add hsocket há 6 anos atrás
etc 9cc79d1e5b update há 6 anos atrás
.gitignore 9aefc5dc1c update há 6 anos atrás
Makefile 507d8f4005 update há 6 anos atrás
README.md 927e170407 update há 6 anos atrás
base64.cpp c74df3b33d first commit há 7 anos atrás
base64.h c74df3b33d first commit há 7 anos atrás
h.h b6d76333c6 platform macro há 6 anos atrás
hbuf.h dd85a6f2a0 dos2unix há 7 anos atrás
hbytearray.h 44833237ea cpplint há 7 anos atrás
hdef.h 85ac09c357 add LIMIT há 6 anos atrás
hendian.h b6d76333c6 platform macro há 6 anos atrás
herr.cpp f1ecb8cdd7 add task_queue há 6 anos atrás
herr.h 660b22362e update há 6 anos atrás
hfile.h 55871b9b03 update há 6 anos atrás
hframe.cpp b6d76333c6 platform macro há 6 anos atrás
hframe.h 2f6c0348f9 update há 7 anos atrás
hgl.h dd85a6f2a0 dos2unix há 7 anos atrás
hgui.h 3c379bfc6c update há 6 anos atrás
hifconf.cpp f1ecb8cdd7 add task_queue há 6 anos atrás
hifconf.h 11a7033964 add ifconfig há 6 anos atrás
hlog.cpp 331e0bfce2 update há 6 anos atrás
hlog.h 331e0bfce2 update há 6 anos atrás
hmain.cpp 9cc79d1e5b update há 6 anos atrás
hmain.h 9cc79d1e5b update há 6 anos atrás
hmutex.h aaf2d56467 update há 7 anos atrás
hobj.h f1ecb8cdd7 add task_queue há 6 anos atrás
hplatform.h 7f95f10ec5 add hsocket há 6 anos atrás
hproc.h 9cc79d1e5b update há 6 anos atrás
hscope.h 01914a717b update há 6 anos atrás
hsocket.cpp 7f95f10ec5 add hsocket há 6 anos atrás
hsocket.h 7f95f10ec5 add hsocket há 6 anos atrás
hstring.cpp 44833237ea cpplint há 7 anos atrás
hstring.h 44833237ea cpplint há 7 anos atrás
hsysinfo.h 7f95f10ec5 add hsocket há 6 anos atrás
htask.h 660b22362e update há 6 anos atrás
hthread.h 346680947e fix gettid há 6 anos atrás
hthreadpool.h dd85a6f2a0 dos2unix há 7 anos atrás
htime.cpp 413fe7318e update há 6 anos atrás
htime.h 3e790590b8 update há 6 anos atrás
hvar.h 44833237ea cpplint há 7 anos atrás
hversion.h 55871b9b03 update há 6 anos atrás
iniparser.cpp 9b948f676c update há 7 anos atrás
iniparser.h dd85a6f2a0 dos2unix há 7 anos atrás
main.cpp.tmpl 9cc79d1e5b update há 6 anos atrás
singleton.h 44833237ea cpplint há 7 anos atrás
task_queue.h f1ecb8cdd7 add task_queue há 6 anos atrás
win32_getopt.h 756752be2e update há 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="."