ardour
Public Member Functions | Private Attributes | List of all members
TestSMF Class Reference

#include <SMFTest.hpp>

Inheritance diagram for TestSMF:
Evoral::SMF< Time >

Public Member Functions

std::string path () const
 
int open (const std::string &path) THROW_FILE_ERROR
 
void close () THROW_FILE_ERROR
 
int read_event (uint32_t *delta_t, uint32_t *size, uint8_t **buf) const
 
- Public Member Functions inherited from Evoral::SMF< Time >
 SMF ()
 
virtual ~SMF ()
 
void seek_to_start () const
 
uint16_t ppqn () const
 
bool is_empty () const
 
bool eof () const
 
Time last_event_time () const
 
void begin_write ()
 
void append_event_delta (uint32_t delta_t, const Event< Time > &ev)
 
void end_write () THROW_FILE_ERROR
 
void flush ()
 
int flush_header ()
 
int flush_footer ()
 
 SMF ()
 
virtual ~SMF ()
 
int open (const std::string &path, int track=1) THROW_FILE_ERROR
 
int create (const std::string &path, int track=1, uint16_t ppqn=19200) THROW_FILE_ERROR
 
void close () THROW_FILE_ERROR
 
void seek_to_start () const
 
int seek_to_track (int track)
 
int read_event (uint32_t *delta_t, uint32_t *size, uint8_t **buf, event_id_t *note_id) const
 
uint16_t num_tracks () const
 
uint16_t ppqn () const
 
bool is_empty () const
 
void begin_write ()
 
void append_event_delta (uint32_t delta_t, uint32_t size, const uint8_t *buf, event_id_t note_id)
 
void end_write (std::string const &) THROW_FILE_ERROR
 
void flush ()
 
double round_to_file_precision (double val) const
 

Private Attributes

std::string _path
 

Additional Inherited Members

- Static Public Member Functions inherited from Evoral::SMF< Time >
static bool test (const std::string &path)
 
- Protected Member Functions inherited from Evoral::SMF< Time >
int open (const std::string &path) THROW_FILE_ERROR
 
void close () THROW_FILE_ERROR
 
int read_event (uint32_t *delta_t, uint32_t *size, uint8_t **buf) const
 

Detailed Description

Definition at line 30 of file SMFTest.hpp.

Member Function Documentation

void TestSMF::close ( )
inline

Definition at line 39 of file SMFTest.hpp.

int TestSMF::open ( const std::string &  path)
inline

Definition at line 34 of file SMFTest.hpp.

std::string TestSMF::path ( ) const
inline

Definition at line 32 of file SMFTest.hpp.

int TestSMF::read_event ( uint32_t *  delta_t,
uint32_t *  size,
uint8_t **  buf 
) const
inline

Definition at line 43 of file SMFTest.hpp.

Member Data Documentation

std::string TestSMF::_path
private

Definition at line 49 of file SMFTest.hpp.


The documentation for this class was generated from the following file: