// ====================================================================== // // Copyright (c) 1999 The CGAL Consortium // // This software and related documentation is part of an INTERNAL release // of the Computational Geometry Algorithms Library (CGAL). It is not // intended for general use. // // ---------------------------------------------------------------------- // // release : $CGAL_Revision: CGAL-2.3-I-75 $ // release_date : $CGAL_Date: 2001/06/21 $ // // file : include/CGAL/LEDA/file.h // package : cgal_window (1.0.3) // maintainer : Matthias Baesken // revision : 1.0.3 // revision_date : 25 June 2001 // author(s) : Matthias Baesken, Algorithmic Solutions // // coordinator : Matthias Baesken, Trier () // ====================================================================== #ifndef __CGAL_WINDOW_FILE__ #define __CGAL_WINDOW_FILE__ #if defined(CGAL_USE_CGAL_HEADERS) #include #endif #include #include namespace CGAL { extern __exportF void message_box(const char* msg, const char* label); extern __exportF std::string set_directory(std::string new_dir); /*{\Xfuncl sets the current working directory to |new_dir| and returns the name of the old cwd. }*/ extern __exportF std::string get_directory(); /*{\Xfuncl returns the name of the current working directory. }*/ extern __exportF std::list get_directories(std::string dir); /*{\Xfuncl returns the list of names of all sub-directories in directory |dir|. }*/ extern __exportF std::list get_files(std::string dir); /*{\Xfuncl returns the list of names of all regular files in directory |dir|. }*/ extern __exportF std::list get_files(std::string dir, std::string pattern); /*{\Xfuncl returns the list of names of all regular files in directory |dir| matching pattern. }*/ extern __exportF std::list get_entries(std::string dir); /*{\Xfuncl returns the list of all entries (directory and files) of directory |dir|. }*/ extern __exportF bool is_directory(std::string fname); /*{\Xfuncl returns true if |fname| is the path name of a directory and false otherwise. }*/ extern __exportF bool is_file(std::string fname); /*{\Xfuncl returns true if |fname| is the path name of a regular file and false otherwise. }*/ extern __exportF bool is_link(std::string fname); /*{\Xfuncl returns true if |fname| is the path name of a symbolic link and false otherwise. }*/ extern __exportF std::string tmp_file_name(); /*{\Xfuncl returns a unique name for a temporary file. }*/ } #endif