1 /* 2 * Copyright 2009, Ingo Weinhold, ingo_weinhold@gmx.de. 3 * Distributed under the terms of the MIT License. 4 */ 5 6 7 #include "PackageSymlink.h" 8 9 #include <stdlib.h> 10 #include <string.h> 11 12 #include "ClassCache.h" 13 14 15 CLASS_CACHE(PackageSymlink); 16 17 18 PackageSymlink::PackageSymlink(Package* package, mode_t mode) 19 : 20 PackageLeafNode(package, mode), 21 fSymlinkPath() 22 { 23 } 24 25 26 PackageSymlink::~PackageSymlink() 27 { 28 } 29 30 31 void 32 PackageSymlink::SetSymlinkPath(const String& path) 33 { 34 fSymlinkPath = path; 35 } 36 37 38 String 39 PackageSymlink::SymlinkPath() const 40 { 41 return fSymlinkPath; 42 } 43