RIP Class Reference

Random Index Pack class. More...

#include <rip.h>

List of all members.

Public Member Functions

 RIP ()
 Random Index Pack constructor.
 ~RIP ()
 Random Index Pack destructor.
PartitionInfoPtr AddPartition (PartitionPtr Part, Position Offset=-1, UInt32 SID=0)
 Add a partition at the specified location.
PartitionInfoPtr FindPreviousPartition (Position Pos)
 Locate the previous partition to a given location.
PartitionInfoPtr FindNextPartition (Position Pos)
 Locate the next partition to a given location.
PartitionInfoPtr FindPartition (UInt32 SID, Position StreamOffset)
 Locate the partition most likely to contain the given stream offset for a SID.

Public Attributes

bool isGenerated
 If not generated then the RIP has been read from a file.


Detailed Description

Random Index Pack class.

Holds Random Index Pack data, either loaded from a real Random Index Pack in the file or built by discovering partitions.


Constructor & Destructor Documentation

RIP (  ) 

Random Index Pack constructor.

Sets the pack as generated (as it obviously hasn't been read yet)

~RIP (  ) 

Random Index Pack destructor.


Member Function Documentation

PartitionInfoPtr AddPartition ( PartitionPtr  Part,
Position  Offset = -1,
UInt32  SID = 0 
)

Add a partition at the specified location.

Note:
Replaces any existing entry at the same location

PartitionInfoPtr FindPreviousPartition ( Position  Pos  ) 

Locate the previous partition to a given location.

Finds the nearest partition that is located before a given location

PartitionInfoPtr FindNextPartition ( Position  Pos  ) 

Locate the next partition to a given location.

Finds the nearest partition that is located after a given location

PartitionInfoPtr FindPartition ( UInt32  SID,
Position  StreamOffset 
)

Locate the partition most likely to contain the given stream offset for a SID.

This may or may not be the correct partition depending on what values are know about partitions, so it is up to the caller to verify this.

Note:
If the RIP is incomplete you will get strange results

< Cleared once we have made a guestimate of StreamPosition

< The real, or guestimated, stream offset of the current partition


Member Data Documentation

bool isGenerated

If not generated then the RIP has been read from a file.


The documentation for this class was generated from the following files:
Generated on Mon Apr 2 15:21:01 2007 for MXFLib by  doxygen 1.5.1-p1