00001 /***************************************************************************** 00002 * Author: Valient Gough <vgough@pobox.com> 00003 * 00004 ***************************************************************************** 00005 * Copyright (c) 2001, Valient Gough 00006 * 00007 * This library is free software; you can distribute it and/or modify it under 00008 * the terms of the GNU Lesser General Public License (LGPL), as published by 00009 * the Free Software Foundation; either version 2.1 of the License, or (at your 00010 * option) any later version. 00011 * 00012 * This library is distributed in the hope that it will be useful, but WITHOUT 00013 * ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or 00014 * FITNESS FOR A PARTICULAR PURPOSE. See the LGPL in the file COPYING for more 00015 * details. 00016 * 00017 */ 00018 00019 #ifndef _relsh_cd_incl_ 00020 #define _relsh_cd_incl_ 00021 00022 #include <rel/TypeStream.h> 00023 #include <rel/VMap.h> 00024 00025 // C interfaces. 00026 // get cwd 00027 std::string relsh_getcwd(); 00028 rel::VMapPtr relsh_getcwdMap(); 00029 00030 // set cwd 00031 bool relsh_setcwd(const std::string &newPath); 00032 00033 // operation style interfaces, which can be placed in a map. 00034 00035 // modify the state of the relsh instance 00036 rel::OpaqueValue relsh_cd(const rel::TypeStream *args); 00037 00038 // display the current working directory of the relsh instance 00039 rel::OpaqueValue relsh_pwd(const rel::TypeStream *args); 00040 00041 #endif