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

unix_system.hxx

Go to the documentation of this file.
00001 //  $Id: unix_system.hxx,v 1.6 2003/01/11 19:07:48 grumbel Exp $
00002 // 
00003 //  Construo - A wire-frame construction game
00004 //  Copyright (C) 2002 Ingo Ruhnke <[email protected]>
00005 //
00006 //  This program is free software; you can redistribute it and/or
00007 //  modify it under the terms of the GNU General Public License
00008 //  as published by the Free Software Foundation; either version 2
00009 //  of the License, or (at your option) any later version.
00010 //
00011 //  This program is distributed in the hope that it will be useful,
00012 //  but WITHOUT ANY WARRANTY; without even the implied warranty of
00013 //  MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
00014 //  GNU General Public License for more details.
00015 // 
00016 //  You should have received a copy of the GNU General Public License
00017 //  along with this program; if not, write to the Free Software
00018 //  Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA  02111-1307, USA.
00019 
00020 #ifndef HEADER_CONSTRUO_UNIX_SYSTEM_HXX
00021 #define HEADER_CONSTRUO_UNIX_SYSTEM_HXX
00022 
00023 #include <string>
00024 #include "system_context.hxx"
00025 
00028 class UnixSystem : public SystemContext
00029 {
00030 private:
00031   unsigned int start_time;
00032   std::string construo_rc_path;
00033   
00034 public:
00035   UnixSystem ();
00036   virtual ~UnixSystem ();
00037   unsigned int get_time ();
00038   void sleep (unsigned long);
00039   std::string get_construo_rc_path();
00040   std::string get_user_realname();
00041   std::string get_user_email();
00042 
00043   FILE* open_input_file(const std::string& filename);
00044   FILE* open_output_file(const std::string& filename);
00045 
00046   unsigned int get_mtime (const std::string& filename);
00047 
00048   FileType get_file_type(const std::string& filename);
00049   std::vector<std::string> read_directory(const std::string& pathname);
00050 
00051   std::string translate_filename (const std::string&);
00052 };
00053 
00054 #endif
00055 
00056 /* EOF */

Generated on Thu Jul 24 10:24:31 2003 for Construo by doxygen1.3-rc3