I’m exploring a piece of software making use of Oracle API and as far as I can see often object methods expect as an argument a ‘OCCI context’ or a ‘OCCI environment’ values.
An example is a constructor of an Account object:
Account( oracle::occi::Environment* env );
later overloaded with
Account( void* oraCtx );
I can understand that somehow they have to do with sort of a ‘connection handler’, but I’d like to know more.
I googled around but I couldn’t find anything clear enough for me, it seems every doc starts from the assumption you already know Oracle API.
Thanks.
OCCI Environmentlets you define your own memory management functions whichOCCIwill later use.When you create an
environment, you pass the pointers to your ownmalloc,reallocandfree:Contextis just a pointer to anEnvironmentthat is passed to these functions whenOCCIcalls them.