I am fairly new to AAF and have been messing around with InfoDumper on OSX. Things are going well and I am learning a lot. I am stuck with one thing and I am hoping that someone can lend a hand. Here is some code from InfoDumper (starting at line 1373):
os << "Mobs: " << endl;
// Enumerate accross all Mobs
// For now dump as object
checkResult(dumpObject (pObject, pDict, dumpFlags, 0, os));
This code will loop through the Mob using the IEnumAAFMobsSP smart pointer. This makes sense and works find. But what I would like to do is display only CompositionMobs. I have made this happen by comparing the Def name for CompositionMob but I would like to do comparisons using something other than name, like IID's. Can this be done? I tried messing around with aafSearchCrit_t's but could not figure out how to use it. I have found the values of aafSearchCrit_t in the header files but still have not been able make it work properly (at all). Are there any code samples out there or can someone whip out some quick code as an example. Thank you very much for any suggestions.
You were on the right lines when you tried aafSearchCrit_t. In your code, you have 3 lines like this:-
Just change the first 2 lines to say this:-
mobCrit.searchTag = kAAFByMobKind;
mobCrit.tags.mobKind = kAAFCompMob;
I think that should be enough to make it work.
Thank You. This did the trick.
Log in to post a comment.
Sign up for the SourceForge newsletter:
You seem to have CSS turned off.
Please don't fill out this field.