class Directory

Class Directory

Public Methods

double calc_total_time (void)
Read the times from the cards in the directory and calculate the total length of the sound sample
static int compare_cards (const void *, const void *)
Used by the qsort routine in end_section to order the cards
Directory (const Directory &)
Copy constructor
Directory ()
Constructor. Allocate directory space and initialize variables.
void end_section (int ecard)
When a section of cards has been read in, sort them according to time values
card_dir* new_card (void)
Add a new card to the card_directory
card_rec* next_active_card (double t)
Return the next active card according to the current time
const Directory& operator= (const Directory &)
Overloaded assignment operator
void reset_active_card (void)
Reset the active card to 0.
~Directory ()
Destructor. Free directory space.

Private Fields

card_dir* directory

Documentation

Class Directory. This class is the actual storage mechanism for the cards from the score file.
Directory()
Constructor. Allocate directory space and initialize variables.

~Directory()
Destructor. Free directory space.

Directory(const Directory &)
Copy constructor

const Directory& operator=(const Directory &)
Overloaded assignment operator

card_dir* new_card(void)
Add a new card to the card_directory. If there is no space for it, allocate more.
Returns:
The address of the new card in the directory

void end_section(int ecard)
When a section of cards has been read in, sort them according to time values

static int compare_cards(const void *, const void *)
Used by the qsort routine in end_section to order the cards
See Also:
end_section

void reset_active_card(void)
Reset the active card to 0.

card_rec* next_active_card(double t)
Return the next active card according to the current time
Returns:
The next active card from the directory.
Parameters:
t - The current time

double calc_total_time(void)
Read the times from the cards in the directory and calculate the total length of the sound sample
Returns:
The sample length in seconds.

card_dir* directory


This class has no child classes.

alphabetic index hierarchy of classes


M4cave Sound Visualization

Contacts

M4cave Reference Manual
Help With Doc++

generated by doc++