Pablo,
Seems so interesting and powerfull, specially becacuse you can use it to index any kind of data.
It is also interesting because it is fairly simple to create
everything DBF/CDX had, but without the drawbacks! database size off
256TB for example, and fields up to 4GB!
also there is no conversion in it, so no nasty ASCII,->ANSI wrapping!
and there are more benefits to it.
Well, the main purpose of ot4xb at PRG level is handle memory structures
so you only need to create your structure class with the ot4xb commands
and just access members just as regular instance members of your object.
Good, so this open up an window for me. one problem tough, there is a vast amount off structures. It looks
like quite some work converting them this way. It would be nice if
there was a way to automatically convert the .H file to a PRG holding
the structures! (how's that for wishful thinking!;) )
This will provide to MyDb() class the functionality to handle your
Db methods and also access to the fields.
This is a good idea!
> It seems that I need wrapping layer in C to make use off it.
There is not C++ name mangling in the exported functions so you can access easily
with DllCall() and some gwst classes to handle the structures 100% with Xbase++ code.
Good! this is nice to hear, I'm not up against a wall!
The other option can be use the C++ TXbClass to build the Xbase++ classes at C/C++ level, the advantadge is that
you can you can build a Xbase++ DLL using the Berkeley DB static lib and just use it in your apps.
This sounds very nice! I would prefer it this way. There is also an
C++ API wrapper, that consist out off objects, and almost no
structures. Maybe this is a starting point into this, but I have no
idea how to connect C++ objects to xbase!
The only thing that will be result into a great speed diference is if you need a custom compare function, the extra
overhead required to call your Xbase function can slow down your database operations.
I see no way around this! That is, beside witting the custom function
in C. (which is not (yet) for me)
I'm currently a bit workload to handle more projects at the same time, but if you want to start and work in the project I will happy to help you and contribute with some source. Maybe can be a new xodc project.
I would love to make this a open project, I'm working on some other
things also. But there is no rush in this project. Howver it would be nice if we can add support for this in DBF-server!
Regards
Sander Elias