freeMXF.org

Open discussion about freeMXF.org tools and MXF in general
It is currently Fri Sep 21, 2018 10:25 pm
Board index » MXF Categories » freeMXF.org Tools



Post new topic Reply to topic  [ 2 posts ] 
Author
Search for:
Message

Offline
Board User

Joined: Wed Mar 16, 2011 9:18 pm
Posts: 6

Post Posted: Thu Apr 21, 2011 2:48 pm 
Top  
What is a good method to get a list of the loaded classes, types, ULs from multiple calls to LoadDictionary?

I am loading the dict.xml plus my own dictionary.

I would like to be able to search through the ULs and classes to extract/search the names, lengths, etc....


I dont beleive using LoadDictionary() returns any pointers to a list.

I would prefer to not read in and parse the xml files. Im hoping this is done by mxflib :lol:


thanks

 Profile  

Offline
Insider

Joined: Thu Apr 15, 2004 10:39 am
Posts: 198
Location: Scotland

Post Posted: Thu Apr 28, 2011 1:53 pm 
Top  
There is a list inside MDOType of all the defined classes and properties, called AllTypes, but this is a protected member. There is also map indexing them all by UL called ULLookup (also protected).

Datatypes (i.e. MDType objects) are stored in protected list Types and map ULLookup of MDType.

The best way to locate loaded classes and types is probably to go via the SymbolSpace. Each SymbolSpace is a sub-class of std::map<std::string, ULPtr> giving a conversion from string name to UL. The UL can then be looked up using MDType::Find() and MDOType::Find(). Unless a SymbolSpace is specified in the XML file or the LoadDictionary() call, all types and classes will be added to the default globally defined SymbolSpace called MXFLibSymbols.

There is not currently a way to list the namespaces in use - perhaps that should be added.

 Profile WWW  
Display posts from previous:  Sort by  
Post new topic Reply to topic  [ 2 posts ] 

Jump to:  


Who is online

Users browsing this forum: No registered users and 4 guests

You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot post attachments in this forum
cron
Powered by phpBB © 2000, 2002, 2005, 2007 phpBB Group :: Style based on FI Subice by phpBBservice.nl :: All times are UTC