///////////////////////////////////////////////////////////////////////////// // Name: pokemod/Path.h // Purpose: Define a derived class from the std::string for path extensions // Author: Ben Boeckel // Modified by: Ben Boeckel // Created: Tue Feb 20 10:05:30 2007 // Copyright: ©2007 Nerdy Productions // Licence: // This program 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 2 of the License, or // (at your option) any later version. // // This program 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 this program; if not, write to the Free Software Foundation, Inc., // 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA. ///////////////////////////////////////////////////////////////////////////// #ifndef __POKEMOD_PATH__ #define __POKEMOD_PATH__ #include #include #include "String.h" namespace PokeGen { namespace PokeMod { class Path : public String { public: Path(); Path(const char *s); Path(const std::string &s); void Update(); bool DoesExist(); bool HasExtension(const String &ext); bool CopyTo(const String &dest); Path &operator=(const char *path_); }; } } #endif