/* * Copyright (C) 2007-2014 Xagasoft, All rights reserved. * * This file is part of the Xagasoft Build and is released under the * terms of the license contained in the file LICENSE. */ #ifndef FILE_MGR_H #define FILE_MGR_H #include #include #include class FileMgr : public Bu::Singleton { friend class Bu::Singleton; private: FileMgr(); virtual ~FileMgr(); public: int open( const Bu::String &sPath, int iMode ); Bu::File &get( int iId ); void close( int iId ); private: typedef Bu::Hash FileHash; FileHash hFile; int iNextId; }; #endif