1 /* 2 * Copyright 2002. Vladimir Prus 3 * Distributed under the Boost Software License, Version 1.0. 4 * (See accompanying file LICENSE_1_0.txt or copy at 5 * http://www.boost.org/LICENSE_1_0.txt) 6 */ 7 8 /* 9 * cwd.h - manages the current working folder information 10 */ 11 12 #ifndef CWD_H 13 #define CWD_H 14 15 #include "config.h" 16 #include "object.h" 17 18 #include <string> 19 20 21 /* cwd() - returns the current working folder */ 22 OBJECT * cwd( void ); 23 namespace b2 24 { 25 const std::string & cwd_str(); 26 } 27 28 /* cwd_init() - initialize the cwd module functionality 29 * 30 * The current working folder can not change in Boost Jam so this function 31 * gets the current working folder information from the OS and stores it 32 * internally. 33 * 34 * Expected to be called at program startup before the program's current 35 * working folder has been changed 36 */ 37 void cwd_init( void ); 38 39 /* cwd_done() - cleans up the cwd module functionality */ 40 void cwd_done( void ); 41 42 #endif 43