摘要: ``` //vov ifndef VSTRING_HPP define VSTRING_HPP include include include template static T vStringToNum(const std::string &str) { std::stringstream ss; 阅读全文
posted @ 2019-04-23 19:51 JohnRed 阅读(308) 评论(0) 推荐(0)
摘要: //vov #ifndef VTIME_HPP #define VTIME_HPP #include <cstdio> #include <ctime> #include <string> #include <chrono> #include <sys/time.h> static const st 阅读全文
posted @ 2019-04-23 19:50 JohnRed 阅读(147) 评论(0) 推荐(0)
摘要: ``` //vov #ifndef VFILE_HPP #define VFILE_HPP #include #include #include #include #include static int vFileExist(const std::string fname) { return access(fname.data(),0)==0?-1:0; } static ... 阅读全文
posted @ 2019-04-23 19:49 JohnRed 阅读(205) 评论(0) 推荐(0)
摘要: ``` //vov #ifndef VBUFFER_HPP #define VBUFFER_HPP #include #include template class vBuffer { std::deque dbuf_; int len_; std::mutex mtx_; public: vBuffer(); vBuffer(int len);... 阅读全文
posted @ 2019-04-23 19:46 JohnRed 阅读(238) 评论(0) 推荐(0)
摘要: ``` //vov #ifndef VLOG_HPP #define VLOG_HPP #include #include #ifndef logv #ifndef VLOGFWRITE #define VLOGFWRITE "./fwrite.vlog" #endif #ifndef VLOGPRINTF #define VLOGP... 阅读全文
posted @ 2019-04-23 19:45 JohnRed 阅读(186) 评论(0) 推荐(0)