00001 #ifndef NOTES_LOADER_H 00002 #define NOTES_LOADER_H 00003 00004 #include "RageUtil.h" 00005 #include <set> 00006 00007 class Song; 00008 00009 class NotesLoader 00010 { 00011 protected: 00012 virtual void GetApplicableFiles( CString sPath, CStringArray &out )=0; 00013 00014 set<istring> BlacklistedImages; 00015 00016 public: 00017 virtual ~NotesLoader() { } 00018 const set<istring> &GetBlacklistedImages() const { return BlacklistedImages; } 00019 static void GetMainAndSubTitlesFromFullTitle( const CString sFullTitle, CString &sMainTitleOut, CString &sSubTitleOut ); 00020 virtual bool LoadFromDir( CString sPath, Song &out ) = 0; 00021 virtual void TidyUpData( Song &song, bool cache ) { } 00022 bool Loadable( CString sPath ); 00023 }; 00024 00025 #endif 00026 00027 /* 00028 * (c) 2001-2003 Chris Danford, Glenn Maynard 00029 * All rights reserved. 00030 * 00031 * Permission is hereby granted, free of charge, to any person obtaining a 00032 * copy of this software and associated documentation files (the 00033 * "Software"), to deal in the Software without restriction, including 00034 * without limitation the rights to use, copy, modify, merge, publish, 00035 * distribute, and/or sell copies of the Software, and to permit persons to 00036 * whom the Software is furnished to do so, provided that the above 00037 * copyright notice(s) and this permission notice appear in all copies of 00038 * the Software and that both the above copyright notice(s) and this 00039 * permission notice appear in supporting documentation. 00040 * 00041 * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS 00042 * OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF 00043 * MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT OF 00044 * THIRD PARTY RIGHTS. IN NO EVENT SHALL THE COPYRIGHT HOLDER OR HOLDERS 00045 * INCLUDED IN THIS NOTICE BE LIABLE FOR ANY CLAIM, OR ANY SPECIAL INDIRECT 00046 * OR CONSEQUENTIAL DAMAGES, OR ANY DAMAGES WHATSOEVER RESULTING FROM LOSS 00047 * OF USE, DATA OR PROFITS, WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE OR 00048 * OTHER TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE OR 00049 * PERFORMANCE OF THIS SOFTWARE. 00050 */