代码拉取完成,页面将自动刷新
同步操作将从 leo/supervisor 强制同步,此操作会覆盖自 Fork 仓库以来所做的任何修改,且无法恢复!!!
确定后同步将在后台操作,完成时将刷新页面,请耐心等待。
#ifndef __OMNI_SYSTEM_H_INCLUDED__
#define __OMNI_SYSTEM_H_INCLUDED__
#include <cstdint>
#include <ctime>
#include <functional>
#include <string>
struct DateTime {
int nYear;
int nMonth;
int nDay;
int nWeek;
int nHour;
int nMin;
int nSec;
int nMSec;
DateTime();
DateTime(uint64_t nHRTime);
DateTime(const DateTime & r);
DateTime(int nY, int nM, int nD, int nH, int nMin, int nS);
/**
* Return a high resolution time for serialize.
**/
uint64_t Time();
};
extern uint64_t Tick();
struct Path {
/**
* Check does gaven path exists.
*
* \param sPath Path to check.
* \return True for existing.
**/
static bool Exists(const std::string & sPath);
/**
* Create a path. Parent directory MUST exists!!!
*
* \param sPath Path to create.
* \return True for success.
**/
static bool Create(const std::string & sPath);
/**
* Get current working directory.
**/
static std::string Current();
/**
* Change current working directory.
*
* \param sPath Path to change to.
* \return True for success.
**/
static bool Change(const std::string & sPath);
/**
* Get full path.
*
* \param sPath Path to convert.
* \return Full path
**/
static std::string FullPath(const std::string & sPath);
/**
* Get directory part of a path.
*
* \param sPath Orignal path.
* \return Directory part of this path.
**/
static std::string PurePath(const std::string & sPath);
/**
* Get file name of a path.
*
* \param sPath Orignal path.
* \return file name of this path.
**/
static std::string PureFile(const std::string & sPath);
/**
* Traverse all files under gaven path.
*
* \param sPath Path to traverse.
* \param fOpt Action to do with this file.
* \param bRecursive Should we go into the sub directories.
**/
static void Traverse(const std::string & sPath, std::function<void (const std::string &)> fOpt, bool bRecursive = true);
};
#endif//! __OMNI_SYSTEM_H_INCLUDED__
此处可能存在不合适展示的内容,页面不予展示。您可通过相关编辑功能自查并修改。
如您确认内容无涉及 不当用语 / 纯广告导流 / 暴力 / 低俗色情 / 侵权 / 盗版 / 虚假 / 无价值内容或违法国家有关法律法规的内容,可点击提交进行申诉,我们将尽快为您处理。