doubts -
04-24-2005
, 02:35 AM
Hi guyz,
Recently i have read quite a few introductory articles on
OODB.However all of these articles introduced OODB from user's
perspective and not from programmer's.
(I am trying to simulate OODB with flat file storage system,using
C++.Thats actually my academic project.
The functionalities that i have to implement are ofcourse very
limited.)
I have this doubt:
When a user provides class
definition,it can be stored somewhere by the oodb.However later when
user wants to create objects of this particular class,how is it
achieved by the oodb?
Since the main program does not know in advance what the class is, how
can it create objects of that class?(if the class defn. is known in
advance,it is very straight forward to create objects)
Can one embed the new class defn. in the executable file of main
program?
Ofcourse there must be some ways to achieve this.(like copying the
class defn provided by user to some dummy prog.,then compiling that
prog. and then creating obj. of that class)
However i am looking for the simplest solution possible,even if its
very crude or silly or inefficient.Thanks
bye,
ben |