1 /*---------------------------------------------------------------------------* 2 Project: Horizon 3 File: fs_IPositionable.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: 12449 $ 14 *---------------------------------------------------------------------------*/ 15 16 #ifndef NN_FS_FS_IPOSITIONABLE_H_ 17 #define NN_FS_FS_IPOSITIONABLE_H_ 18 19 #include <nn/fs/fs_Parameters.h> 20 21 namespace nn { 22 namespace fs { 23 24 class IPositionable 25 { 26 protected: ~IPositionable()27 virtual ~IPositionable() {}; 28 29 public: 30 31 virtual Result TrySeek(s64 position, PositionBase base) = 0; 32 virtual void Seek(s64 position, PositionBase base) = 0; 33 34 virtual Result TryGetPosition(s64* pOut) const = 0; 35 virtual s64 GetPosition() const = 0; 36 37 virtual Result TrySetPosition(s64 position) = 0; 38 virtual void SetPosition(s64 position) = 0; 39 40 virtual Result TryGetSize(s64* pOut) const = 0; 41 virtual s64 GetSize() const = 0; 42 43 }; 44 45 } 46 } 47 48 #endif /* NN_FS_FS_IPOSITIONABLE_H_ */ 49