Changes for the MacOS port contributed by Darrell Walisser.

This commit is contained in:
curt
1999-04-27 19:27:45 +00:00
parent 5bddbd0ca9
commit 9221604424
3 changed files with 32 additions and 6 deletions
+21 -2
View File
@@ -51,7 +51,7 @@ FGPath::FGPath() {
// create a path based on "path"
FGPath::FGPath( const string p ) {
path = fix_path( p );
set( p );
}
@@ -60,7 +60,13 @@ FGPath::~FGPath() {
}
// append to the existing path
// set path
void FGPath::set( const string p ) {
path = fix_path( p );
}
// append another piece to the existing path
void FGPath::append( const string p ) {
string part = fix_path( p );
@@ -73,3 +79,16 @@ void FGPath::append( const string p ) {
path += part;
}
}
// concatenate a string to the end of the path without inserting a
// path separator
void FGPath::concat( const string p ) {
string part = fix_path( p );
if ( path.size() == 0 ) {
path = part;
} else {
path += part;
}
}