#include <sdifframe.h>
Public Methods | |
SDIFFrame () | |
default constructor | |
int | Read (SdifFileT *file, bool &eof) |
int | ReadData (SdifFileT *file) |
int | ReadHeader (SdifFileT *file) |
int | Write (SdifFileT *file) |
int | WriteHeader (SdifFileT *file) |
int | AddMatrix (const SDIFMatrix &aMatrix) |
int | AddMatrixSelected (SdifFileT *file, const SDIFMatrix &aMatrix) |
void | Print () |
see the content of a frame | |
void | PrintHeader () |
see the frame header | |
void | ClearData () |
empty the matrix vector | |
SdifSignature | GetMatrixSelection (SdifFileT *file) const |
bool | MatrixExists (const SdifSignature &sig) const |
check if a matrix type exist in the frame with a SdifSignature | |
bool | MatrixExists (const std::string &signature) const |
check if a matrix type exist in the frame with a string signature | |
SDIFMatrix & | GetMatrix (unsigned int index) throw (Easdif::SDIFMatrixNotAvailable) |
get the matrix number i which is stored in the vector of matrix | |
SDIFMatrix & | GetMatrixWithSig (const SdifSignature sig) throw (SDIFMatrixNotAvailable) |
SDIFMatrix & | GetMatrix (const std::string &signature) throw (SDIFMatrixNotAvailable) |
SdifUInt4 | GetNbMatrix () const |
get the number of matrix in the frame | |
SdifSignature | GetSignature () const |
get the signature of the frame | |
SdifUInt4 | GetStreamID () const |
get the streamID of the frame | |
SdifFloat8 | GetTime () const |
get the time of the frame | |
SdifUInt4 | GetSize () const |
get the size of the frame | |
void | SetHeader (SdifSignature sig, SdifUInt4 streamID, float time) |
Set the frame header. | |
void | SetHeader (const std::string &sig, SdifUInt4 streamID, float time) |
Set the frame header. | |
void | SetNbMatrix (SdifUInt4 nbMatrix) |
Set one element of the frame header : the number of matrix. | |
void | SetSignature (SdifSignature sig) |
Set one element of the frame header : the signature. | |
void | SetSignature (const std::string &signature) |
Set one element of the frame header : the signature with a string. | |
void | SetStreamID (SdifUInt4 streamID) |
Set one element of the frame header : the streamID. | |
void | SetTime (float time) |
Set one element of the frame header : the time. |
SDIFFrame is composed of different methods which permits to manipulate a frame. All the methods with a SdifFileT* parameter are surcharged with SDIFEntity parameter.