systemkit.h

来自「粗糙集应用软件」· C头文件 代码 · 共 41 行

H
41
字号
//-------------------------------------------------------------------
// Author........: Aleksander 豩rn
// Date..........:
// Description...:
// Revisions.....:
//===================================================================

#ifndef __SYSTEMKIT_H__
#define __SYSTEMKIT_H__

#include <copyright.h>

#include <kernel/basic/string.h>

//-------------------------------------------------------------------
// Class.........: SystemKit
// Author........: Aleksander 豩rn
// Date..........:
// Description...:
// Revisions.....:
//===================================================================

class SystemKit {
public:

  //- Miscellaneous system calls.....................................
  static String GetTimestamp();
  static String GetUser();

  //- File system stuff..............................................
  static bool   ChangeDirectory(const String &directory);
  static bool   CreateDirectory(const String &directory);
	static bool   GetTimestamp(const String &filename, String &timestamp, int type = 0);

	//- Encryption stuff...............................................
	static String Encrypt(const String &decrypted, long key);
	static String Decrypt(const String &encrypted, long key);

};

#endif

⌨️ 快捷键说明

复制代码Ctrl + C
搜索代码Ctrl + F
全屏模式F11
增大字号Ctrl + =
减小字号Ctrl + -
显示快捷键?