2013-02-16 18:28:30 +00:00
|
|
|
// This file is part of libZelda.
|
|
|
|
//
|
|
|
|
// libZelda is free software: you can redistribute it and/or modify
|
|
|
|
// it under the terms of the GNU General Public License as published by
|
|
|
|
// the Free Software Foundation, either version 3 of the License, or
|
|
|
|
// (at your option) any later version.
|
|
|
|
//
|
|
|
|
// libZelda is distributed in the hope that it will be useful,
|
|
|
|
// but WITHOUT ANY WARRANTY; without even the implied warranty of
|
|
|
|
// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
|
|
|
// GNU General Public License for more details.
|
|
|
|
//
|
|
|
|
// You should have received a copy of the GNU General Public License
|
|
|
|
// along with libZelda. If not, see <http://www.gnu.org/licenses/>
|
2013-07-21 03:57:20 +00:00
|
|
|
|
2013-01-26 20:19:24 +00:00
|
|
|
#ifndef __MAINPAGE_HPP__
|
|
|
|
#define __MAINPAGE_HPP__
|
|
|
|
|
|
|
|
/*! \mainpage libZelda
|
|
|
|
* \section intro_sec Introduction to libZelda
|
|
|
|
* libZelda is an IO Library which is designed to be powerful, simple,
|
|
|
|
* and infinitely extensible. <br />
|
|
|
|
* <br />
|
|
|
|
* libZelda provides several basic classes that can be used to read from
|
|
|
|
* and write to files, and memory, classes such as Stream, BinaryReader, BinaryWriter,
|
2013-07-21 03:57:20 +00:00
|
|
|
* and TextStream.
|
2013-01-26 20:19:24 +00:00
|
|
|
* \section example_sec BinaryWriter example
|
|
|
|
* \code
|
|
|
|
* #include "BinaryWriter.hpp"
|
|
|
|
* #include "FileNotFoundException.hpp"
|
|
|
|
* #include "Exception.hpp"
|
|
|
|
* int main()
|
|
|
|
* {
|
|
|
|
* try
|
|
|
|
* {
|
|
|
|
* BinaryWriter writer("test.bin");
|
|
|
|
* writer.writeByte('t');
|
|
|
|
* writer.writeInt32(123454321);
|
|
|
|
* writer.save();
|
|
|
|
* }
|
|
|
|
* catch (FileNotFoundException e)
|
|
|
|
* {
|
|
|
|
* std::cout << e.message() << std::endl;
|
|
|
|
* }
|
|
|
|
* catch (Exception e)
|
|
|
|
* {
|
|
|
|
* std::cout << e.message() << std::endl;
|
|
|
|
* }
|
|
|
|
* catch(...)
|
|
|
|
* {
|
|
|
|
* }
|
|
|
|
* return 0;
|
|
|
|
* }
|
|
|
|
* \endcode
|
2013-01-29 21:46:05 +00:00
|
|
|
* \section example_sec BinaryReader example
|
|
|
|
* \code
|
|
|
|
* #include "BinaryReader.hpp"
|
|
|
|
* #include "FileNotFoundException.hpp"
|
|
|
|
* #include "Exception.hpp"
|
|
|
|
* int main()
|
|
|
|
* {
|
|
|
|
* try
|
|
|
|
* {
|
|
|
|
* BinaryReader writer("test.bin");
|
|
|
|
* std::cout << reader.readByte() << std::endl;
|
|
|
|
* std::cout << reader.readInt32() << std::endl;
|
|
|
|
* }
|
|
|
|
* catch (FileNotFoundException e)
|
|
|
|
* {
|
|
|
|
* std::cout << e.message() << std::endl;
|
|
|
|
* }
|
|
|
|
* catch (Exception e)
|
|
|
|
* {
|
|
|
|
* std::cout << e.message() << std::endl;
|
|
|
|
* }
|
|
|
|
* catch(...)
|
|
|
|
* {
|
|
|
|
* }
|
|
|
|
* return 0;
|
|
|
|
* }
|
|
|
|
* \endcode
|
2013-01-26 20:19:24 +00:00
|
|
|
* \section Credits
|
2013-01-29 21:46:05 +00:00
|
|
|
* Chibi Zelda: <a href="http://animewaterfall.deviantart.com/art/Chibi-Zelda-331611090">AnimeWaterFall</a> on Deviantart
|
2013-01-26 20:19:24 +00:00
|
|
|
*/
|
|
|
|
#endif // __MAINPAGE_HPP__
|