+
+/**
+ * \brief Print self.
+ * @param indent Indentation string to be prepended during printing.
+ * @param os Stream to print to.
+ */
+void RLEFramesInfo::Print( std::ostream &os, std::string indent )
+{
+ os << std::endl;
+ os << indent
+ << "----------------- RLE frames --------------------------------"
+ << std::endl;
+ os << indent
+ << "Total number of Frames : " << Frames.size()
+ << std::endl;
+ int frameNumber = 0;
+ for(RLEFrameList::iterator it = Frames.begin(); it != Frames.end(); ++it)
+ {
+ os << indent
+ << " frame number :" << frameNumber++
+ << std::endl;
+ (*it)->Print( os, indent + " " );
+ }
+}
+
+void RLEFramesInfo::AddFrame(RLEFrame *frame)
+{
+ Frames.push_back(frame);
+}
+
+RLEFrame *RLEFramesInfo::GetFirstFrame()
+{
+ ItFrames = Frames.begin();
+ if (ItFrames != Frames.end())
+ return *ItFrames;
+ return NULL;
+}
+
+RLEFrame *RLEFramesInfo::GetNexttFrame()
+{
+ gdcmAssertMacro (ItFrames != Frames.end());
+
+ ++ItFrames;
+ if (ItFrames != Frames.end())
+ return *ItFrames;
+ return NULL;
+}
+