[Saga-devel] Context question
Livesey, P (Paul)
paul.livesey at stfc.ac.uk
Wed Jan 21 07:01:30 CST 2009
This is a fairly open question to those in the know.
An adaptor we're writing is going to need a specialized context class.
As far as I can tell writing a new context is easy enough as what we need to do is not too difficult.
The bit that I'm not sure about is how I get my new context used, i.e. only in my one specific adaptor.
What's the procedure for this?
I'll try to explain the problem with an example. The SD has two constructors, one takes a session and one doesn't.
For the constructor that doesn't take a session it create a default session.
One adaptor needs to create a default session with a context in it that contains certain adaptor specific information, based on the user, the rest can just use the standard default session and standard context class.
So how do I make sure that our special adaptor always gets the session and context that it expects?
Regards,
Paul.
--
Scanned by iCritical.
More information about the saga-devel
mailing list