[Alephmodular-devel] On CfileDesc and handling navigation
Status: Pre-Alpha
Brought to you by:
brefin
From: Br'fin <br...@ma...> - 2003-02-10 13:36:52
|
I've been using my draft as a guide and piece by piece implementing portions using or replacing bits of the existing API. (For instance, the checked in code now uses iostreams and CFileTypes) And my own build has begun using a simpler version of CFileDesc as the internals to the existing API. Kind of neat having opening a file be in CFile.cpp. With the platform specific bit of converting the platform's internal representation to a name compatible with new std:ifstream being handled by the platform subclass. :) I am, however, having distinct second thoughts about creating a new CFileDesc for each navigation. Seeing how memory management of the various C++ classes is annoying, the prospect of editing a CFileDesc in place is appealing to me more and more. instead of GetParent - new CFileDesc GetNamedChild - new CFileDesc more of clone() - new CFileDesc navigate_up() - modifies current CFileDesc navigate(child) - modifies current CFileDesc -Jeremy Parsons |