|
[Sponsors] |
April 22, 2008, 10:55 |
Is it possible to get access t
|
#1 |
Senior Member
Dragos
Join Date: Mar 2009
Posts: 648
Rep Power: 20 |
Is it possible to get access to the private variable "dict_" in a smart way? The only idea that I have is to rewrite the classes MRFZone and MRFZones...which is not very smart
Or how can I read the constant/MRFZones file into an IOdictionary? If I try the classic way: IOdictionary mrfDict)</blockquote> ); const wordList mrfPatches = mrfDict.lookup("patches");</blockquote> I get an error saying that "patches" is not found in the MRFZones file. Any suggestions? Dragos |
|
April 23, 2008, 04:59 |
Hi Dragos
Is it just the "p
|
#2 |
Senior Member
Join Date: Mar 2009
Posts: 248
Rep Power: 18 |
Hi Dragos
Is it just the "patches" for which you are getting the error. Did you try reading in the other variables such as origin, axis etc. Another option can be adding a member function to the MRFZone class which will returns you the dict_ variable. Regards Jaswi |
|
April 23, 2008, 05:20 |
Hi Jaswi,
I didn't try to loo
|
#3 |
Senior Member
Dragos
Join Date: Mar 2009
Posts: 648
Rep Power: 20 |
Hi Jaswi,
I didn't try to lookup for origin or axis because I didn't believe they will work if finding patches didn't work. As a work around I wrote a new set of MRFZone*.{H,C} with a public member function that returns the requested variables (see on wiki: computeTorq). But as I said also above this is not an elegant solution. Dragos |
|
|
|