Main Page | Namespace List | Class Hierarchy | Class List | File List | Namespace Members | Class Members | File Members

NotesWriterDWI.h

Go to the documentation of this file.
00001 /* NotesWriterDWI - writes a Song to a .DWI file. */ 00002 00003 #ifndef NOTES_WRITER_DWI_H 00004 #define NOTES_WRITER_DWI_H 00005 00006 #include "song.h" 00007 #include "Steps.h" 00008 #include "NoteTypes.h" 00009 00010 class RageFile; 00011 class NotesWriterDWI 00012 { 00013 CString NotesToDWIString( TapNote cNoteCol1, TapNote cNoteCol2, TapNote cNoteCol3, TapNote cNoteCol4, TapNote cNoteCol5, TapNote cNoteCol6 ); 00014 CString NotesToDWIString( TapNote cNoteCol1, TapNote cNoteCol2, TapNote cNoteCol3, TapNote cNoteCol4 ); 00015 void WriteDWINotesField( RageFile &f, const Steps &out, int start ); 00016 bool WriteDWINotesTag( RageFile &f, const Steps &out ); 00017 CString NotesToDWIString( const TapNote cNoteCols[6] ); 00018 CString OptimizeDWIString( CString holds, CString taps ); 00019 char OptimizeDWIPair( char c1, char c2 ); 00020 00021 public: 00022 bool Write( CString sPath, const Song &out ); 00023 }; 00024 00025 #endif 00026 00027 /* 00028 * (c) 2001-2004 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 */

Generated on Thu Jan 27 20:57:26 2005 for StepMania by doxygen 1.3.7