其他语言

本类阅读TOP10

·基于Solaris 开发环境的整体构思
·使用AutoMake轻松生成Makefile
·BCB数据库图像保存技术
·GNU中的Makefile
·射频芯片nRF401天线设计的分析
·iframe 的自适应高度
·BCB之Socket通信
·软件企业如何实施CMM
·入门系列--OpenGL最简单的入门
·WIN95中日志钩子(JournalRecord Hook)的使用

分类导航
VC语言Delphi
VB语言ASP
PerlJava
Script数据库
其他语言游戏开发
文件格式网站制作
软件工程.NET开发
ice Slice语言 定义一个分布式文件系统

作者:未知 来源:月光软件站 加入时间:2005-5-13 月光软件站

//名称:远程文件系统
//


module Filesystem
{
//-------------------数据类型--------------------------------------------------------
 sequence<byte> RFSStream;//文件读写系列
 struct RFSNode
 {
     string Name;//文件或者目录的名称
     bool   type;//1=文件 0= 目录
 };   
 sequence<RFSNode> RFSNodeList;//文件目录列表
 
//------------------异常处理----------------------------------------------------------
    exception RFSError
    {
     string reason;
    };
//------------------接口实现----------------------------------------------------------
    interface RFSFileSystem
    {           //_________用户标识______文件名称_______要读写的块 ______读写的内容_________异常处理   
       
       void FileRead  (string UserID,string FileName,int BlockNO,out RFSStream FStream) throws RFSError;
       
       void FileWrite (string UserID,string FileName,int BlockNO,    RFSStream FStream) throws RFSError;       
   
       void FileDel   (string UserID,string FileName)  throws RFSError;      
                                                 
       void FileRename(string UserID,string FileName,string NewName ) throws RFSError;
       
       void FileCopy  (string UserID,string FileName,string NewName ) throws RFSError;
       
       void FileMove  (string UserID,string FileName,string NewName ) throws RFSError;
       
       
       void DirCreate (string UserID,string DirName )                 throws RFSError;
       
       void DirDel    (string UserID,string DirName )                 throws RFSError;
       
       void DirRename (string UserID,string DirName ,string NewName)  throws RFSError;
     
       void DirMove   (string UserID,string DirName ,string NewName)  throws RFSError;

 void DirList   (string UserID,string DirName ,out RFSNodeList DFList)  throws RFSError;
      
       string login   (string username,string password);
    };
//----------------------------------------------------------------------------
   

   
};




相关文章

相关软件