summaryrefslogtreecommitdiff
path: root/lib
diff options
context:
space:
mode:
authorpixel <pixel>2003-12-04 03:39:28 +0000
committerpixel <pixel>2003-12-04 03:39:28 +0000
commitd843ef0f88d02f685db90b957545b237218a0bcb (patch)
treedf97dd2270ae5b73d092d1a871c9f6400d843836 /lib
parent8b5e08b64cd35602b9010590d1c591ff50674bd4 (diff)
Added DirTree browsing
Diffstat (limited to 'lib')
-rw-r--r--lib/isobuilder.cpp29
1 files changed, 28 insertions, 1 deletions
diff --git a/lib/isobuilder.cpp b/lib/isobuilder.cpp
index e0433e0..cee2b93 100644
--- a/lib/isobuilder.cpp
+++ b/lib/isobuilder.cpp
@@ -17,7 +17,7 @@
* Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
*/
-/* $Id: isobuilder.cpp,v 1.3 2003-12-04 03:35:31 pixel Exp $ */
+/* $Id: isobuilder.cpp,v 1.4 2003-12-04 03:39:28 pixel Exp $ */
#include "isobuilder.h"
@@ -380,6 +380,33 @@ int isobuilder::DirTree::numerate(int n) {
return n;
}
+isobuilder::DirTree * isobuilder::DirTree::Father() {
+ return father;
+}
+
+isobuilder::DirTree * isobuilder::DirTree::Brother() {
+ return brother;
+}
+
+isobuilder::DirTree * isobuilder::DirTree::Child() {
+ return child;
+}
+
+isobuilder::DirTree * isobuilder::DirTree::Find(const String & _name) {
+ DirTree * p = 0;
+
+ if (name == _name)
+ return this;
+
+ if (brother)
+ p = brother->Find(_name);
+
+ if (!p && child)
+ return child->Find(_name);
+
+ return p;
+}
+
isobuilder::isobuilder(Handle * _w, int _mode) : w(_w), sector(0), nsectors(0), basics(false), dmode(_mode) {
Byte sect[2352];
memset(sect, 0, 2352);