I wanted to get the ScoringInfoV01.mTrackName value inside the method EnterRealTime() from struct ScoringInfoV01 In the InternalsPlugin.hpp, I have already added Code: extern ScoringInfoV01 SInfoV01; and then inside the EnterRealTime() in Example.cpp I have added Code: char *test = SInfoV01.mTrackName WriteToAllExampleOutputFiles("a",test); But this doesn't write anything to the file? What am I doing wrong?
A structure (with data populated) is passed to the following function, just implement your code within that function Code: void ExampleInternalsPlugin::UpdateScoring( const ScoringInfoV01 &info ) And change the following method (in the header file) to return true Code: bool WantsScoringUpdates() { return( false ); }
thanks chris.. i can get the data in that function without any problem.. but i was wondering how to get the data in the enterrealtime function
You cannot. You have to create new attribute: wasInEnterRealtime=false, set it to true in EnterRealtime method end test its value in UpdateScoring for doing a job you want.