Main Page | Class Hierarchy | Alphabetical List | Class List | Directories | File List | Class Members | File Members

Batch Class Reference

#include <batch.h>

List of all members.

Public Member Functions

 Batch (MWindow *mwindow, Record *record)
 ~Batch ()
int create_objects ()
Assetget_current_asset ()
char * get_source_text ()
Channelget_current_channel_struct ()
void calculate_news ()
void create_default_path ()
void copy_from (Batch *batch)
void toggle_label (double position)
void start_over ()

Static Public Member Functions

static char * mode_to_text (int record_mode)
static int text_to_mode (char *text)

Public Attributes

MWindowmwindow
Recordrecord
ArrayList< Asset * > assets
EDLedl
int current_asset
int recorded
int channel
double file_offset
int start_type
int enabled
double start_time
int start_day
double duration
int waiting
RecordLabelslabels
long total_samples
long total_frames
long current_sample
long current_frame
long session_samples
long session_frames
int file_exists
int record_mode
char news [BCTEXTLEN]


Detailed Description

Definition at line 13 of file batch.h.


Constructor & Destructor Documentation

Batch::Batch MWindow mwindow,
Record record
 

Definition at line 14 of file batch.C.

References assets, channel, current_asset, current_frame, current_sample, duration, edl, enabled, file_exists, file_offset, labels, news, record_mode, recorded, session_frames, session_samples, start_day, start_time, start_type, total_frames, total_samples, and waiting.

Batch::~Batch  ) 
 

Definition at line 43 of file batch.C.

References assets, edl, and labels.


Member Function Documentation

void Batch::calculate_news  ) 
 

Definition at line 81 of file batch.C.

References _, fclose(), Record::file, fopen(), get_current_asset(), Record::get_current_batch(), news, and record.

Referenced by Record::activate_batch(), Record::configure_batches(), RecordPath::handle_event(), Record::new_batch(), Record::open_output_file(), and start_over().

void Batch::copy_from Batch batch  ) 
 

Definition at line 69 of file batch.C.

References channel, duration, enabled, record_mode, start_day, start_time, and start_type.

Referenced by Record::new_batch().

void Batch::create_default_path  ) 
 

Definition at line 103 of file batch.C.

References Record::batches, Record::default_asset, get_current_asset(), Asset::path, and record.

Referenced by Record::new_batch().

int Batch::create_objects  ) 
 

Definition at line 52 of file batch.C.

Referenced by Record::new_batch().

Asset * Batch::get_current_asset  ) 
 

Definition at line 165 of file batch.C.

References assets, and current_asset.

Referenced by calculate_news(), Record::configure_batches(), create_default_path(), Record::delete_output_file(), Record::new_batch(), Record::open_output_file(), RecordThread::run(), Record::run(), RecordGUI::update_batch_tools(), and RecordGUI::update_batches().

Channel * Batch::get_current_channel_struct  ) 
 

Definition at line 171 of file batch.C.

References channel, Record::channeldb, ChannelDB::get(), record, and ChannelDB::size().

Referenced by get_source_text().

char * Batch::get_source_text  ) 
 

Definition at line 181 of file batch.C.

References channel, get_current_channel_struct(), and Channel::title.

Referenced by Record::current_source(), and RecordGUI::update_batch_tools().

char * Batch::mode_to_text int  record_mode  )  [static]
 

Definition at line 145 of file batch.C.

References _.

Referenced by RecordGUI::create_objects(), Record::current_mode(), text_to_mode(), RecordGUI::update_batch_tools(), and RecordGUI::update_batches().

void Batch::start_over  ) 
 

Definition at line 57 of file batch.C.

References calculate_news(), current_frame, current_sample, file_offset, labels, total_frames, and total_samples.

Referenced by Record::start_over().

int Batch::text_to_mode char *  text  )  [static]
 

Definition at line 136 of file batch.C.

References mode_to_text().

Referenced by RecordMode::handle_event().

void Batch::toggle_label double  position  ) 
 

Definition at line 191 of file batch.C.

References labels, and RecordLabels::toggle_label().

Referenced by Record::toggle_label().


Member Data Documentation

ArrayList<Asset*> Batch::assets
 

Definition at line 35 of file batch.h.

Referenced by Batch(), get_current_asset(), RecordPath::handle_event(), Record::init_next_file(), Record::load_defaults(), Record::run(), Record::save_defaults(), and ~Batch().

int Batch::channel
 

Definition at line 45 of file batch.h.

Referenced by Batch(), copy_from(), Record::get_current_channel(), get_current_channel_struct(), Record::get_editing_channel(), get_source_text(), Record::load_defaults(), ChannelEditThread::run(), Record::save_defaults(), Record::set_channel(), and Record::source_to_text().

int Batch::current_asset
 

Definition at line 40 of file batch.h.

Referenced by Batch(), get_current_asset(), and Record::init_next_file().

long Batch::current_frame
 

Definition at line 64 of file batch.h.

Referenced by Batch(), Record::current_display_position(), RecordVideo::rewind_file(), Record::rewind_file(), RecordVideo::run(), and start_over().

long Batch::current_sample
 

Definition at line 64 of file batch.h.

Referenced by Batch(), Record::current_display_position(), RecordVideo::rewind_file(), Record::rewind_file(), RecordAudio::run(), and start_over().

double Batch::duration
 

Definition at line 57 of file batch.h.

Referenced by Batch(), copy_from(), Record::load_defaults(), Record::save_defaults(), RecordGUI::update_batch_tools(), and RecordGUI::update_batches().

EDL* Batch::edl
 

Definition at line 38 of file batch.h.

Referenced by Batch(), and ~Batch().

int Batch::enabled
 

Definition at line 52 of file batch.h.

Referenced by Batch(), copy_from(), Record::load_defaults(), Record::save_defaults(), and RecordGUI::update_batches().

int Batch::file_exists
 

Definition at line 69 of file batch.h.

Referenced by Batch().

double Batch::file_offset
 

Definition at line 48 of file batch.h.

Referenced by Batch(), Record::batch_video_offset(), Record::current_audio_position(), Record::current_display_position(), Record::current_video_position(), and start_over().

RecordLabels* Batch::labels
 

Definition at line 60 of file batch.h.

Referenced by Batch(), Record::run(), start_over(), toggle_label(), RecordGUI::update_labels(), and ~Batch().

MWindow* Batch::mwindow
 

Definition at line 31 of file batch.h.

char Batch::news[BCTEXTLEN]
 

Definition at line 72 of file batch.h.

Referenced by Batch(), calculate_news(), Record::delete_output_file(), and RecordGUI::update_batches().

Record* Batch::record
 

Definition at line 32 of file batch.h.

Referenced by calculate_news(), create_default_path(), and get_current_channel_struct().

int Batch::record_mode
 

Definition at line 71 of file batch.h.

Referenced by Batch(), copy_from(), RecordMode::handle_event(), Record::load_defaults(), RecordVideo::run(), RecordThread::run(), RecordAudio::run(), Record::save_defaults(), RecordGUI::update_batch_tools(), and RecordGUI::update_batches().

int Batch::recorded
 

Definition at line 41 of file batch.h.

Referenced by Batch(), RecordThread::run(), and Record::run().

long Batch::session_frames
 

Definition at line 66 of file batch.h.

Referenced by Batch(), RecordVideo::rewind_file(), RecordVideo::run(), and RecordThread::run().

long Batch::session_samples
 

Definition at line 66 of file batch.h.

Referenced by Batch(), RecordVideo::rewind_file(), RecordThread::run(), RecordAudio::run(), and RecordAudio::sync_position().

int Batch::start_day
 

Definition at line 55 of file batch.h.

Referenced by Batch(), copy_from(), RecordThread::do_cron(), Record::load_defaults(), Record::save_defaults(), RecordGUI::update_batch_tools(), and RecordGUI::update_batches().

double Batch::start_time
 

Definition at line 54 of file batch.h.

Referenced by Batch(), copy_from(), RecordThread::do_cron(), Record::load_defaults(), Record::save_defaults(), RecordGUI::update_batch_tools(), and RecordGUI::update_batches().

int Batch::start_type
 

Definition at line 50 of file batch.h.

Referenced by Batch(), copy_from(), Record::load_defaults(), and Record::save_defaults().

long Batch::total_frames
 

Definition at line 62 of file batch.h.

Referenced by Batch(), RecordVideo::run(), RecordThread::run(), and start_over().

long Batch::total_samples
 

Definition at line 62 of file batch.h.

Referenced by Batch(), RecordThread::run(), RecordAudio::run(), and start_over().

int Batch::waiting
 

Definition at line 59 of file batch.h.

Referenced by Batch(), and RecordGUI::update_batches().


The documentation for this class was generated from the following files:
Generated on Sun Jan 8 13:39:10 2006 for Cinelerra-svn by  doxygen 1.4.4