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

batch.h

Go to the documentation of this file.
00001 #ifndef RECORDBATCH_H
00002 #define RECORDBATCH_H
00003 
00004 #include "asset.inc"
00005 #include "channel.inc"
00006 #include "edl.inc"
00007 #include "file.inc"
00008 #include "guicast.h"
00009 #include "mwindow.inc"
00010 #include "record.inc"
00011 #include "recordlabel.inc"
00012 
00013 class Batch
00014 {
00015 public:
00016         Batch(MWindow *mwindow, Record *record);
00017         ~Batch();
00018 
00019         int create_objects();
00020         static char* mode_to_text(int record_mode);
00021         static int text_to_mode(char *text);
00022         Asset* get_current_asset();
00023         char* get_source_text();
00024         Channel* get_current_channel_struct();
00025         void calculate_news();
00026         void create_default_path();
00027         void copy_from(Batch *batch);
00028         void toggle_label(double position);
00029         void start_over();
00030 
00031         MWindow *mwindow;
00032         Record *record;
00033 // List of assets for every file created.
00034 // First asset is the default asset.
00035         ArrayList<Asset*> assets;
00036 // Created during recording if scene to scene.
00037 // Created after recording if NULL
00038         EDL *edl;
00039 
00040         int current_asset;
00041         int recorded;
00042 
00043 // Add new sources for every input device
00044 // Entry in channel table to record from
00045         int channel;
00046 
00047 // Time offset of start of current file from batch start
00048         double file_offset;
00049 // Type of start time to begin at
00050         int start_type;
00051 // Batch is enabled
00052         int enabled;
00053 // Start time of batch
00054         double start_time;
00055         int start_day;
00056 // Number of seconds for all recording except infinite
00057         double duration;
00058 // Flash the color of the display while waiting for start.of batch
00059         int waiting;
00060         RecordLabels *labels;
00061 // Totals for current batch
00062         long total_samples, total_frames;
00063 // Current positions
00064         long current_sample, current_frame;
00065 // Totals for synchronization
00066         long session_samples, session_frames;
00067 
00068 // Info for warning field
00069         int file_exists;
00070 // Record mode #define
00071         int record_mode;
00072         char news[BCTEXTLEN];
00073 };
00074 
00075 #endif

Generated on Sun Jan 8 13:38:50 2006 for Cinelerra-svn by  doxygen 1.4.4