[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: color_radio_property implementation
From: |
Przemek Klosowski |
Subject: |
Re: color_radio_property implementation |
Date: |
Wed, 25 Apr 2007 16:30:32 -0400 (EDT) |
| I wanted to keep the java code quite autonomous and usable outside
| octave. So using the property database within octave was not really
| a solution. Moreover, as java and C++ does not share the same memory
| space, it would have been rather complicated and inefficient to have the
| properties in C++/octave and have the java part constantly
getting/converting
| values from C++/octave to java.
Don't know about java and c++ but we used to do that all the time in Tcl and C:
access the 'property database' (Tcl hash tables, which is the fundamental data
type in Tcl) via an API in C, and via the array syntax in Tcl. It helped that
C doesn't have hash arrays so you need to use API anyway, and Tcl-provided
API was actually pleasant to use.
In your case, could java use a get/set function approach that instantiates as
either simple java variable access (when you use it without Octave) or a native
method, calling the C++ API if used with Octave?
- color_radio_property implementation, Shai Ayal, 2007/04/24
- Re: color_radio_property implementation, Michael Goffioul, 2007/04/25
- Re: color_radio_property implementation, John W. Eaton, 2007/04/25
- Re: color_radio_property implementation, Michael Goffioul, 2007/04/25
- Re: color_radio_property implementation, John W. Eaton, 2007/04/25
- Re: color_radio_property implementation, Michael Goffioul, 2007/04/25
- Re: color_radio_property implementation, John W. Eaton, 2007/04/25
- Re: color_radio_property implementation,
Przemek Klosowski <=
- Re: color_radio_property implementation, Michael Goffioul, 2007/04/26
- Re: color_radio_property implementation, Przemek Klosowski, 2007/04/26
- Re: color_radio_property implementation, John W. Eaton, 2007/04/25
- Re: color_radio_property implementation, Shai Ayal, 2007/04/26
- Re: color_radio_property implementation, Quentin Spencer, 2007/04/26
- Re: color_radio_property implementation, Shai Ayal, 2007/04/26
- graphics future (was: Re: color_radio_property implementation), John W. Eaton, 2007/04/26
- Re: graphics future, Daniel J Sebald, 2007/04/26
- Re: graphics future, Daniel J Sebald, 2007/04/26
- Re: graphics future, Shai Ayal, 2007/04/26