cgal/Packages/cgal_window/include/CGAL/LEDA/file.h

88 lines
2.8 KiB
C++

// ======================================================================
//
// 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 <baesken@informatik.uni-trier.de>
// revision : 1.0.3
// revision_date : 25 June 2001
// author(s) : Matthias Baesken, Algorithmic Solutions
//
// coordinator : Matthias Baesken, Trier (<baesken@informatik.uni-trier.de>)
// ======================================================================
#ifndef __CGAL_WINDOW_FILE__
#define __CGAL_WINDOW_FILE__
#if defined(CGAL_USE_CGAL_HEADERS)
#include <CGAL/basic.h>
#endif
#include <CGAL/LEDA/basic.h>
#include <list>
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<std::string> get_directories(std::string dir);
/*{\Xfuncl returns the list of names of all sub-directories in
directory |dir|. }*/
extern __exportF std::list<std::string> get_files(std::string dir);
/*{\Xfuncl returns the list of names of all regular files in
directory |dir|. }*/
extern __exportF std::list<std::string> 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<std::string> 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