Basic class for storage of data associated with single DTSC packets, a.k.a. parts.  
 More...
#include <dtsc.h>
Basic class for storage of data associated with single DTSC packets, a.k.a. parts. 
      
        
          | char * DTSC::Part::getData | ( |  | ) |  | 
      
 
Returns the data of a part. 
 
 
      
        
          | char* DTSC::Part::getData | ( |  | ) |  | 
      
 
 
      
        
          | short DTSC::Part::getDuration | ( |  | ) |  | 
      
 
 
      
        
          | short DTSC::Part::getDuration | ( |  | ) |  | 
      
 
Retruns the duration of a part. 
 
 
      
        
          | long DTSC::Part::getOffset | ( |  | ) |  | 
      
 
returns the offset of a part 
 
 
      
        
          | long DTSC::Part::getOffset | ( |  | ) |  | 
      
 
 
      
        
          | long DTSC::Part::getSize | ( |  | ) |  | 
      
 
 
      
        
          | long DTSC::Part::getSize | ( |  | ) |  | 
      
 
Returns the payloadsize of a part. 
 
 
      
        
          | void DTSC::Part::setDuration | ( | short | newDuration | ) |  | 
      
 
Sets the duration of a part. 
 
 
      
        
          | void DTSC::Part::setDuration | ( | short | newDuration | ) |  | 
      
 
 
      
        
          | void DTSC::Part::setOffset | ( | long | newOffset | ) |  | 
      
 
 
      
        
          | void DTSC::Part::setOffset | ( | long | newOffset | ) |  | 
      
 
Sets the offset of a part. 
 
 
      
        
          | void DTSC::Part::setSize | ( | long | newSize | ) |  | 
      
 
 
      
        
          | void DTSC::Part::setSize | ( | long | newSize | ) |  | 
      
 
Sets the payloadsize of a part. 
 
 
      
        
          | void DTSC::Part::toPrettyString | ( | std::ostream & | str, | 
        
          |  |  | int | indent = 0 | 
        
          |  | ) |  |  | 
      
 
 
      
        
          | void DTSC::Part::toPrettyString | ( | std::ostream & | str, | 
        
          |  |  | int | indent = 0 | 
        
          |  | ) |  |  | 
      
 
Converts a part to a human readable string. 
- Parameters
- 
  
    | str | The stringstream to append to |  | indent | the amount of indentation needed |  
 
 
 
Data storage for this Part. 
- 3 bytes: MSB storage of the payload size of this packet in bytes.
- 2 bytes: MSB storage of the duration of this packet in milliseconds.
- 4 bytes: MSB storage of the presentation time offset of this packet in milliseconds. 
 
 
The documentation for this class was generated from the following files: