Main Page   Modules   Class Hierarchy   Data Structures   File List   Data Fields   Globals  

oscl_file_handle.h

Go to the documentation of this file.
00001 // -*- c++ -*-
00002 // = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = =
00003 
00004 //                     O S C L _ F I L E  _ HANDLE
00005 
00006 // = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = =
00007 
00019 #ifndef OSCL_FILE_HANDLE_H_INCLUDED
00020 #define OSCL_FILE_HANDLE_H_INCLUDED
00021 
00022 #ifndef OSCLCONFIG_IO_H_INCLUDED
00023 #include "osclconfig_io.h"
00024 #endif
00025 
00026 #ifndef OSCL_BASE_H_INCLUDED
00027 #include "oscl_base.h"
00028 #endif
00029 
00030 
00038 typedef FILE* TOsclFileHandle;
00039 
00043 class OsclFileHandle
00044 {
00045     public:
00046         OsclFileHandle(TOsclFileHandle aHandle)
00047                 : iHandle(aHandle)
00048         {}
00049         OsclFileHandle(const OsclFileHandle& aHandle)
00050                 : iHandle(aHandle.iHandle)
00051         {}
00052         TOsclFileHandle Handle()const
00053         {
00054             return iHandle;
00055         }
00056     private:
00057         TOsclFileHandle iHandle;
00058         friend class Oscl_File;
00059 };
00060 
00061 
00062 #endif // OSCL_FILE_HANDLE_H_INCLUDED
00063 

OSCL API
Posting Version: OPENCORE_20090310