1 /*---------------------------------------------------------------------------* 2 Project: Horizon 3 File: fslow_IArchive.h 4 5 Copyright (C)2009 Nintendo Co., Ltd. All rights reserved. 6 7 These coded instructions, statements, and computer programs contain 8 proprietary information of Nintendo of America Inc. and/or Nintendo 9 Company Ltd., and are protected by Federal copyright law. They may 10 not be disclosed to third parties or copied or duplicated in any form, 11 in whole or in part, without the prior written consent of Nintendo. 12 13 $Rev: 15940 $ 14 *---------------------------------------------------------------------------*/ 15 16 #ifndef NN_FSLOW_FSLOW_IDIRECTORY_H_ 17 #define NN_FSLOW_FSLOW_IDIRECTORY_H_ 18 19 #include <nn/Result.h> 20 #include <nn/fs/fs_Parameters.h> 21 #include "fslow_Common.h" 22 23 namespace nn { namespace fslow { 24 25 template <class TArchiveTypeInfo> 26 class IDirectory 27 { 28 public: 29 typedef typename TArchiveTypeInfo::DirectoryEntry DirectoryEntry; 30 virtual Result Close() = 0; 31 virtual Result Read(s32* pNumEntries, DirectoryEntry pEntries[], s32 numEntries) = 0; 32 protected: ~IDirectory()33 virtual ~IDirectory() {} 34 }; 35 36 }} 37 38 #endif 39