About   |   Getting Started   |   Downloads   |   Documentation   |   Forum


Post Reply 
 
Thread Rating:
  • 0 Votes - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
document dictionary
07-13-2016, 10:52 AM
Post: #1
document dictionary
Could someone provide some simple sample code for accessing a document's dictionary, storing a few persistent settings (floats and bools), and retrieving them again? I do understand that I need to track notifiers for when documents are created, opened, closed, etc.

I found that a document's dictionary is accessible via the SDK's document suite, but found no dictionary member in the CORE document class. Does a default dictionary already exist, and is it acceptable practice for more than one plugin to store data there?

Any guidance would be very much appreciated. -- rj
Find all posts by this user
Quote this message in a reply
07-14-2016, 07:18 AM
Post: #2
RE: document dictionary
I found the dictionary function in the CurrentDocument class (maybe a future version of doxygen will have a more robust search), which should get me started. Creating my own dictionary within the document dictionary strikes me as a responsible approach, but (full disclosure) dictionaries is an area I've never explored before. I've never been able to find more than technical data on dictionaries so I hope my adventures here don't turn into a menace to other people's data. ;-)
Find all posts by this user
Quote this message in a reply
07-14-2016, 02:31 PM
Post: #3
RE: document dictionary
(07-14-2016 07:18 AM)Rick Johnson Wrote:  Creating my own dictionary within the document dictionary strikes me as a responsible approach ...

Yep, that's the right thing to do. Make sure you give your subdictionary a reasonably unique name (e.g. with some prefix based on your plugin name).
Find all posts by this user
Quote this message in a reply
Post Reply 


Forum Jump:


User(s) browsing this thread: 1 Guest(s)