37 KLaola( const myFile &file);
40 bool isOk() { return ok;}
46 virtual ~OLENode() {};
47 virtual unsigned handle() const = 0;
48 virtual TQString name() const = 0;
52 virtual bool isDirectory() const = 0;
62 virtual TQString readClassStream() const = 0;
65 virtual TQString describe() const = 0;
72 typedef TQPtrList<OLENode> NodeList;
73 NodeList parseRootDir();
74 NodeList parseCurrentDir();
75 const NodeList currentPath() const;
76 const NodeList find( const TQString &name, bool onlyCurrentDir= false);
77 bool enterDir( const OLENode *node);
83 myFile stream( const OLENode *node);
84 myFile stream( unsigned handle);
87 KLaola( const KLaola &);
88 const KLaola &operator=( const KLaola &);
89 static const int s_area;
91 unsigned char read8( int i) const;
92 unsigned short read16( int i) const;
93 unsigned int read32( int i) const;
97 void readBigBlockDepot();
98 void readSmallBlockDepot();
99 void readSmallBlockFile();
101 void readPPSEntry( int pos, const int handle);
102 void createTree( const int handle, const short index);
103 const unsigned char *readBBStream( int start, bool setmaxSblock= false);
104 const unsigned char *readSBStream( int start) const;
105 int nextBigBlock( int pos) const;
106 int nextSmallBlock( int pos) const;
110 void testIt(TQString prefix = "");
135 class Node: public OLENode {
137 Node(KLaola *laola) { m_laola = laola; }
139 unsigned handle() const { return m_handle; }
140 TQString name() const;
141 bool isDirectory() const { return (type == DIRECTORY) || (type == ROOT_ENTRY); }
142 TQString readClassStream() const;
143 TQString describe() const;
166 NodeList m_currentPath;
176 typedef TQPtrList<TreeNode> SubTree;
177 TQPtrList<SubTree> m_nodeTree;
182 unsigned char *bigBlockDepot;
183 unsigned char *smallBlockDepot;
184 unsigned char *smallBlockFile;
186 unsigned int maxblock;
187 unsigned int maxSblock;
188 unsigned int num_of_bbd_blocks;
189 unsigned int root_startblock;
190 unsigned int sbd_startblock;
191 unsigned int *bbd_list;
|