该楼层疑似违规已被系统折叠 隐藏此楼查看此楼
#ifndef _FILEMANAGER_H_#define _FILEMANAGER_H_
#include /////////////////////////////////////////////////////////////////////////////// Data Definition
// Function statustypedef int status;
#define ERROR -1
#define FAIL 0
#define OK 1
// Constant
#define NAMESIZE128
#define PATHSIZE128
#define TIMESIZE128
#define STACKSIZE128
typedef struct Time{
int year;
int month;
int day;
int hour;
int minute;
int second;
}
fileTime;
typedef struct File{
charname[NAMESIZE];
unsigned intattrib;
longsize;
fileTimecreationTime;
fileTimeeditTime;
fileTimefinalAccessTime;
charpath[PATHSIZE];
struct File*fileParent;
struct File*leftChild;
struct File*rightBrother;
}
file, folder,*folderHandle;
struct MSG{unsigned int MsgType;}MSG;
struct Exception{signed int ERROR;}EXPTION;
typedef struct stack{
folderHandle currentHandle[STACKSIZE];
int top;
int bottom;
}stack;
本文档详细介绍了文件管理系统(File Manager)的结构,包括数据定义如文件、文件夹、时间结构等,以及关键操作状态类型和常量。它展示了文件属性、时间戳、目录结构及堆栈数据结构的定义。
2326

被折叠的 条评论
为什么被折叠?



