File.hpp
Go to the documentation of this file.
00001 // ----------------------------------------------------------------------------
00002 //
00003 // $Id$
00004 //
00005 // Copyright 2008, 2009, 2010, 2011  Antonio Franchi and Paolo Stegagno    
00006 //
00007 // This file is part of MIP.
00008 //
00009 // MIP is free software: you can redistribute it and/or modify
00010 // it under the terms of the GNU General Public License as published by
00011 // the Free Software Foundation, either version 3 of the License, or
00012 // (at your option) any later version.
00013 //
00014 // MIP is distributed in the hope that it will be useful,
00015 // but WITHOUT ANY WARRANTY; without even the implied warranty of
00016 // MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
00017 // GNU General Public License for more details.
00018 //
00019 // You should have received a copy of the GNU General Public License
00020 // along with MIP. If not, see <http://www.gnu.org/licenses/>.
00021 //
00022 // Contact info: martin.riedel@tuebingen.mpg.de
00023 //
00024 // ----------------------------------------------------------------------------
00025 
00026 
00031 
00035 
00037 /* @{ */
00038 
00039 #ifndef FILE_HPP_
00040 #define FILE_HPP_
00041 
00042 #include <telekyb_defines/telekyb_defines.hpp>
00043 
00044 // stl
00045 #include <vector>
00046 #include <string>
00047 #include <fstream>
00048 
00049 
00050 namespace TELEKYB_NAMESPACE
00051 {
00052 
00056 class File {
00057         private:
00058                 std::string fileName;
00059                 std::ifstream file;
00060 
00061         public:
00064                 File(const std::string& fileName_, std::ifstream::openmode mode = std::ifstream::in);
00065                 ~File();
00066 
00069                 bool getWords(std::vector<std::string>& wordVector);
00070 };
00071 
00072 
00073 }
00074 
00075 
00076 #endif
00077 
00078 /* @} */
00079 
00080 
00081 
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Friends Defines


telekyb_base
Author(s): Dr. Antonio Franchi and Martin Riedel
autogenerated on Mon Nov 11 2013 11:12:34