bool Create(HDFGroup &parentGroup) { parentGroup.AddGroup("MovieInfo"); if (movieInfoGroup.Initialize(parentGroup.group, "MovieInfo") == 0) { return 0; } idArray.Create(movieInfoGroup, "ID"); nameArray.Create(movieInfoGroup, "Name"); return true; }
void StoreFrameRate(int movieIndex, float frameRate) { if (movieIndex < 0) { cout << "ERROR. Invalid movie index " << movieIndex << endl; exit(1); } if (!frameRateArray.IsInitialized()) { if (!movieInfoGroup.ContainsObject("FrameRate")) { frameRateArray.Create(movieInfoGroup, "FrameRate"); } else { frameRateArray.Initialize(movieInfoGroup, "FrameRate"); } } frameRateArray.WriteToPos(&frameRate, 1, movieIndex); }